add findutils as deps 40/159740/2 accepted/tizen/unified/20171113.092531 submit/tizen/20171113.023154
authorMyoungJune Park <mj2004.park@samsung.com>
Mon, 13 Nov 2017 01:49:25 +0000 (10:49 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Mon, 13 Nov 2017 02:27:50 +0000 (11:27 +0900)
Change-Id: I93a7ef2ad322d3098e5dc1748bdbb00921912fe7
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
packaging/tizen-locale.spec

index 050f8ca13ae610c48def8282083c8939f2e1081f..b6fc0d6ef0e284d7afe87d06cd86e6fdf14b6391 100644 (file)
@@ -11,6 +11,7 @@ Source11: tizen-build-locale-archive
 Source12: tzdata-update
 
 BuildRequires: tzdata >= 2003a
+Requires: findutils
 Requires: coreutils
 Requires: tzdata
 #Requires: glibc-common
@@ -66,10 +67,10 @@ make -f %{SOURCE10} IN=localedata/SUPPORTED OUT=%{buildroot}/usr/share/i18n/SUPP
 
 %postun
 
-%posttrans 
-/bin/ls /usr/lib/locale/ | /bin/grep _ | /usr/bin/xargs -I {} /bin/rm -rf /usr/lib/locale/{}
-/bin/rm -rf /usr/lib/locale/C.UTF-8
-/bin/find /usr/share/locale/ -name libc.mo | /bin/grep -v en_GB | /usr/bin/xargs -I {} /bin/rm {}
+%posttrans
+ls /usr/lib/locale/ | /bin/grep _ | /usr/bin/xargs -I {} /bin/rm -rf /usr/lib/locale/{}
+rm -rf /usr/lib/locale/C.UTF-8
+find /usr/share/locale/ -name libc.mo | /bin/grep -v en_GB | /usr/bin/xargs -I {} /bin/rm {}
 
 %clean
 rm -rf "$RPM_BUILD_ROOT"