]> git.pld-linux.org Git - packages/python-zope.testing.git/commitdiff
- noarch package auto/th/python-zope.testing-4.7-3
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 9 Mar 2021 21:31:29 +0000 (22:31 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 9 Mar 2021 21:31:29 +0000 (22:31 +0100)
- rel 3

python-zope.testing.spec

index e909e5981b31be4d59fb2fb952d5ca7ed4ea9a44..bf154cec25edcf6d9b9a98c7fe3ab92c6d9f0323 100644 (file)
@@ -11,7 +11,7 @@ Summary:      Support for different testing frameworks
 Summary(pl.UTF-8):     Obsługa różnych szkieletów testowych
 Name:          python-%{module}
 Version:       4.7
-Release:       2
+Release:       3
 License:       ZPL v2.1
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/zope-testing/
@@ -32,6 +32,7 @@ BuildRequires:        rpmbuild(macros) >= 1.714
 Requires:      python-modules >= 1:2.7
 Requires:      python-zope-base
 Obsoletes:     Zope-Testing
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -74,19 +75,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
 %py_install \
-       --install-purelib=%{py_sitedir}
+       --install-purelib=%{py_sitescriptdir}
 
 %py_postclean
 # tests
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/zope/testing/{test_renormalizing,tests}.py*
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/zope/testing/{test_renormalizing,tests}.py*
 %endif
 
 %if %{with python3}
 %py3_install \
-       --install-purelib=%{py3_sitedir}
+       --install-purelib=%{py3_sitescriptdir}
 
 # tests
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/zope/testing/{test_renormalizing,tests}.py*
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/zope/testing/{test_renormalizing,tests}.py*
 %endif
 
 %clean
@@ -96,16 +97,16 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
-%{py_sitedir}/zope/testing
-%{py_sitedir}/zope.testing-%{version}-py*.egg-info
-%{py_sitedir}/zope.testing-%{version}-py*-nspkg.pth
+%{py_sitescriptdir}/zope/testing
+%{py_sitescriptdir}/zope.testing-%{version}-py*.egg-info
+%{py_sitescriptdir}/zope.testing-%{version}-py*-nspkg.pth
 %endif
 
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
-%{py3_sitedir}/zope/testing
-%{py3_sitedir}/zope.testing-%{version}-py*.egg-info
-%{py3_sitedir}/zope.testing-%{version}-py*-nspkg.pth
+%{py3_sitescriptdir}/zope/testing
+%{py3_sitescriptdir}/zope.testing-%{version}-py*.egg-info
+%{py3_sitescriptdir}/zope.testing-%{version}-py*-nspkg.pth
 %endif
This page took 0.122824 seconds and 4 git commands to generate.