diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/ug-setting-location-efl.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packaging/ug-setting-location-efl.spec b/packaging/ug-setting-location-efl.spec index 48755ac..aff1381 100644 --- a/packaging/ug-setting-location-efl.spec +++ b/packaging/ug-setting-location-efl.spec @@ -1,3 +1,5 @@ +%bcond_with wayland + Name: ug-setting-location-efl Summary: UG setting location EFL Version: 0.3.46 @@ -15,7 +17,7 @@ BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(capi-location-manager) BuildRequires: edje-bin BuildRequires: cmake -BuildRequires: gettext-tools +BuildRequires: gettext-tools Requires(post): /sbin/ldconfig Requires(post): /usr/bin/vconftool requires(postun): /sbin/ldconfig @@ -29,7 +31,12 @@ cp %{SOURCE1001} . %build export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed -Wl,--hash-style=both" -LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +LDFLAGS="$LDFLAGS" %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ +%if %{with wayland} + -DWAYLAND_SUPPORT=On +%else + -DWAYLAND_SUPPORT=Off +%endif make %{?jobs:-j%jobs} @@ -37,7 +44,7 @@ make %{?jobs:-j%jobs} %make_install -%post +%post /sbin/ldconfig mkdir -p /usr/ug/bin/ mkdir -p /usr/ug/res/locale/ |