]> git.pld-linux.org Git - packages/python-django-rest-framework.git/commitdiff
package locale files auto/th/python-django-rest-framework-3.5.4-1
authorElan Ruusamäe <glen@delfi.ee>
Sun, 23 Apr 2017 15:10:09 +0000 (18:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 23 Apr 2017 15:10:09 +0000 (18:10 +0300)
python-django-rest-framework.spec

index 4e9cc89bf30a06591f32484dd928b2eb0d24b2a0..a1905b88c4bf5378389da57b3409c760b51dcef7 100644 (file)
@@ -19,6 +19,7 @@ Source0:      https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_na
 Group:         Libraries/Python
 URL:           http://www.django-rest-framework.org/
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(find_lang) >= 1.39
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires: python-modules
@@ -81,6 +82,7 @@ find . -name *.po -exec rm -f '{}' \;
 %endif
 
 %install
+rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 %py_postclean
@@ -90,13 +92,7 @@ find . -name *.po -exec rm -f '{}' \;
 %py3_install
 %endif
 
-%if 1
-# find-lang doesn't work, even with --all-name
-> django_py2.lang
-> django_py3.lang
-%else
-
-%find_lang django
+%find_lang django --all-name
 
 # separate into files for python2.7 and 3.x
 %if %{with python2}
@@ -105,7 +101,6 @@ grep "python%{py_ver}" django.lang > django_py2.lang
 %if %{with python3}
 grep "python%{py3_ver}" django.lang > django_py3.lang
 %endif
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -124,8 +119,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{py_sitescriptdir}/%{module}/locale
 %dir %{py_sitescriptdir}/%{module}/locale/??/
 %dir %{py_sitescriptdir}/%{module}/locale/??/LC_MESSAGES
-%dir %{py_sitescriptdir}/%{module}/locale/??_??/
-%dir %{py_sitescriptdir}/%{module}/locale/??_??/LC_MESSAGES
+%dir %{py_sitescriptdir}/%{module}/locale/??_*/
+%dir %{py_sitescriptdir}/%{module}/locale/??_*/LC_MESSAGES
 %{py_sitescriptdir}/%{pypi_name}-%{version}-py%{py_ver}.egg-info
 %endif
 
@@ -144,7 +139,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{py3_sitescriptdir}/%{module}/locale
 %dir %{py3_sitescriptdir}/%{module}/locale/??/
 %dir %{py3_sitescriptdir}/%{module}/locale/??/LC_MESSAGES
-%dir %{py3_sitescriptdir}/%{module}/locale/??_??/
-%dir %{py3_sitescriptdir}/%{module}/locale/??_??/LC_MESSAGES
+%dir %{py3_sitescriptdir}/%{module}/locale/??_*/
+%dir %{py3_sitescriptdir}/%{module}/locale/??_*/LC_MESSAGES
 %{py3_sitescriptdir}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info
 %endif
This page took 0.124945 seconds and 4 git commands to generate.