Packaging: clean spec file 50/27950/2 accepted/tizen_common accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/common/20150317.155242 accepted/tizen/mobile/20150326.005114 accepted/tizen/tv/20150324.014608 accepted/tizen/wearable/20150323.005708 submit/tizen_common/20150317.151101 submit/tizen_mobile/20150325.000000 submit/tizen_tv/20150320.000002 submit/tizen_tv/20150323.050640 submit/tizen_wearable/20150320.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 23 Sep 2014 12:18:14 +0000 (14:18 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 13 Oct 2014 11:39:16 +0000 (13:39 +0200)
* Use %make_install rpm macro.
* Do not use fdupes on the whole build root.
* Do not explicitely package direcories containing files.

Change-Id: I88b1e52c3c0134a7bda76d17dd82bc774bc9b29f
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/ibus-libpinyin.spec

index 22b3a1e..4877579 100644 (file)
@@ -39,10 +39,10 @@ cp %{SOURCE1001} .
 
 %install
 rm -rf %{buildroot}
-%__make DESTDIR=%{buildroot} install
+%make_install DESTDIR=%{buildroot}
 
 %find_lang %{name}
-%fdupes %{buildroot}
+%fdupes %{buildroot}%{_datadir}
 
 %clean
 rm -rf %{buildroot}
@@ -60,6 +60,5 @@ rm -rf %{buildroot}
 %{_datadir}/ibus-libpinyin/setup
 %{_datadir}/ibus-libpinyin/*.lua
 %{_datadir}/ibus-libpinyin/db/*.db
-%dir %{_datadir}/ibus-libpinyin
-%dir %{_datadir}/ibus-libpinyin/db
 %{_datadir}/ibus/component/*
+