add %find_lang macro in spec file
authorJongmin Lee <jm105.lee@samsung.com>
Mon, 25 Dec 2017 23:54:40 +0000 (08:54 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 27 Dec 2017 08:58:44 +0000 (17:58 +0900)
Change-Id: I914db2ec3cb3f68fe7c6745c2c5b16b1f12fe2f0

packaging/efl.spec

index f6e78ee..4b36eb6 100644 (file)
@@ -1096,12 +1096,12 @@ Summary:        Default theme for elementary
 %description -n elementary-theme
 Default theme which provides various styles for elementary.
 
-%package -n elementary-locale
+%package -n efl-locale
 Summary:        Translations and Locale for package %{name}
 Group: Translations
 AutoReqProv: 0
 
-%description -n elementary-locale
+%description -n efl-locale
 This package provides translations for package %{name}.
 
 
@@ -1243,6 +1243,7 @@ rm %{buildroot}/usr/share/ecore_x/checkme
 mkdir -p %{buildroot}%{_tmpfilesdir}
 install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/efl.conf
 
+%find_lang %{name}
 
 %post -n eina -p /sbin/ldconfig
 %postun -n eina -p /sbin/ldconfig
@@ -1323,7 +1324,6 @@ mv %{_libdir}/libelementary.so.%{version} %{_libdir}/libelementary.so.%{version}
 %files -n %{name}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
-%exclude %{_datadir}/locale/*/*/*.mo
 %license licenses/COPYING.LGPL
 %{_libdir}/libefl.so.*
 /usr/share/eolian/include/efl-1/*.eot
@@ -2082,7 +2082,7 @@ mv %{_libdir}/libelementary.so.%{version} %{_libdir}/libelementary.so.%{version}
 %exclude /usr/share/icons/Enlightenment-X
 %exclude /usr/share/elementary/test*
 
-#%files -n elementary-locale -f %{name}.lang
-#%license COPYING
-#%defattr(-,root,root,-)
+%files -n efl-locale -f %{name}.lang
+%license COPYING
+%defattr(-,root,root,-)