]> git.pld-linux.org Git - packages/python-PyPDF2.git/blobdiff - python-PyPDF2.spec
rebuild with tests and docs
[packages/python-PyPDF2.git] / python-PyPDF2.spec
index 2132919f0866385eb03917c8c63dd95e09a598be..3fd1f540f35e2c178751ec43628d240efae8ad2a 100644 (file)
@@ -10,7 +10,7 @@ Summary:      A Pure-Python library built as a PDF toolkit
 Summary(pl.UTF-8):     Czysto Pythonowa biblioteka narzÄ™dzi dla PDF
 Name:          python-%{module}
 Version:       1.26.0
-Release:       1
+Release:       8
 License:       BSD
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/%{module}-%{version}.tar.gz
@@ -97,19 +97,16 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %py_install
 %py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
 
-%if %{with python2}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
 cp -a Sample_Code/* $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
 find $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version} -name '*.py' \
        | xargs sed -i '1s|^#!.*python\b|#!%{__python}|'
 %endif
+
 %if %{with python3}
+%py3_install
+
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 cp -a Sample_Code/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 find $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version} -name '*.py' \
This page took 0.160468 seconds and 4 git commands to generate.