summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-09-17 02:13:38 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-09-17 02:13:44 -0400
commit956bd0d456260111e50a060cbe011c2d58687ef6 (patch)
tree7b1fbb0ee4e5e303b5db55e908b16ef47576d8ff
parent676750069b394781c3a665aeefb391378960c82e (diff)
downloadug-nfc-efl-956bd0d456260111e50a060cbe011c2d58687ef6.tar.gz
ug-nfc-efl-956bd0d456260111e50a060cbe011c2d58687ef6.tar.bz2
ug-nfc-efl-956bd0d456260111e50a060cbe011c2d58687ef6.zip
- install license using %license - use %find_lang - use ldconfig in %post and %postun Change-Id: I41e3161bd6ada5e0343bda6a2e05881339026e11 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
-rw-r--r--packaging/ug-nfc-efl.spec40
1 files changed, 16 insertions, 24 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index 188c5a5..17dbf24 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -6,8 +6,8 @@ Name: ug-nfc-efl
Summary: UI gadget about the nfc
Version: 0.0.8
Release: 0
-Group: TO_BE/FILLED_IN
-License: Flora Software License
+Group: Applications/Network
+License: Flora
Source0: %{name}-%{version}.tar.gz
Source1: libug-setting-nfc-efl.install.in
Source2: libug-share-nfc-efl.install.in
@@ -26,9 +26,6 @@ BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-tools
-Requires(post): /sbin/ldconfig
-Requires(post): /usr/bin/vconftool
-Requires(postun): /sbin/ldconfig
%description
UI gadget about the nfc
@@ -38,7 +35,6 @@ UI gadget about the nfc
%package devel
Summary: ug for nfc setting
-Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
@@ -46,9 +42,6 @@ ug for nfc setting
%package -n ug-share-nfc-efl
Summary: ug for nfc share
-Group: Development/Libraries
-Requires(post): /sbin/ldconfig
-Requires(post): /usr/bin/vconftool
Requires: %{name} = %{version}-%{release}
%description -n ug-share-nfc-efl
@@ -58,43 +51,42 @@ ug for nfc share
%build
mkdir cmake_tmp
cd cmake_tmp
-cmake .. -DCMAKE_INSTALL_PREFIX=%{_ugdir}
+%cmake .. -DCMAKE_INSTALL_PREFIX=%{_ugdir}
make %{?jobs:-j%jobs}
%install
cd cmake_tmp
-rm -rf %{buildroot}
%make_install
cd ..
-mkdir -p %{buildroot}/usr/share/license
mkdir -p %{buildroot}/etc/config/nfc/
-cp -af LICENSE.Flora %{buildroot}/usr/share/license/ug-nfc-efl
-cp -af LICENSE.Flora %{buildroot}/usr/share/license/ug-share-nfc-efl
-%post
+%find_lang ug-setting-nfc-efl
+%find_lang ug-share-nfc-efl
-%post -n ug-share-nfc-efl
+%post -p /sbin/ldconfig
-%postun
+%postun -p /sbin/ldconfig
-%files
+%post -p /sbin/ldconfig -n ug-share-nfc-efl
+
+%postun -p /sbin/ldconfig -n ug-share-nfc-efl
+
+%files -f ug-setting-nfc-efl.lang
%manifest ug-nfc-efl.manifest
%defattr(-,root,root,-)
/usr/ug/lib/libug-setting-nfc-efl*
-/usr/ug/res/locale/*/LC_MESSAGES/ug-setting-nfc-efl*
/usr/ug/res/icons/*
/etc/smack/accesses2.d/ug.setting-nfc-efl.include
-/usr/share/license/ug-nfc-efl
+%license LICENSE.Flora
-%files -n ug-share-nfc-efl
-%manifest ug-nfc-efl.manifest
+%files -n ug-share-nfc-efl -f ug-share-nfc-efl.lang
%defattr(-,root,root,-)
+%manifest ug-nfc-efl.manifest
+%license LICENSE.Flora
/usr/ug/lib/libug-share-nfc-efl*
-/usr/ug/res/locale/*/LC_MESSAGES/ug-share-nfc-efl*
/usr/ug/res/images/*
/usr/ug/res/edje/*
-/usr/share/license/ug-share-nfc-efl
/etc/smack/accesses2.d/ug.share-nfc-efl.include
/etc/config/nfc/*