commit b0ae55d0b73792e5d0fc3165788a2b79ae6a6916
Author: Jakub Bogusz <[email protected]>
Date:   Sun Jan 22 19:33:17 2023 +0100

    - updated to 2.2.0 (last available version for python 2.7)

 python-pyRXP.spec | 40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)
---
diff --git a/python-pyRXP.spec b/python-pyRXP.spec
index fe550dd..ce832ab 100644
--- a/python-pyRXP.spec
+++ b/python-pyRXP.spec
@@ -1,6 +1,4 @@
-
-#
-# todo:
+# TODO:
 # - use external rxp
 # - make documentation from rml file instead of downloading it
 #   (need for spec for http://www.reportlab.org/rl_toolkit.html)
@@ -9,19 +7,21 @@
 Summary:       A Python wrapper for the RXP parser
 Summary(pl.UTF-8):     Pythonowy interfejs do analizatora XML RXP
 Name:          python-pyRXP
-Version:       1.16
+# keep 2.x here for python2 support; no accessible sdist found for 2.2.1 or 
2.2.3
+Version:       2.2.0
 Release:       1
 License:       GPL v2
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/pyRXP/
-Source0:       https://www.reportlab.com/ftp/pyRXP-%{version}-daily-unix.tar.gz
-# Source0-md5: 6c883cc6e9ac32585365dd2ae8867d81
+Source0:       
https://files.pythonhosted.org/packages/source/p/pyRXP/pyRXP-%{version}.tar.gz
+# Source0-md5: 97a826803521fd8fade6e2ea3ec0827f
 URL:           https://pypi.org/project/pyRXP/
-BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-devel >= 1:2.7
 BuildRequires: rpm-build >= 4.6
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python-modules >= 1:2.5
+Requires:      python-modules >= 1:2.7
+Obsoletes:     python-pyRXP-examples < 2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,47 +45,29 @@ This package contains documentation files for Python pyRXP 
module.
 %description doc -l pl.UTF-8
 Pakiet zawierający dokumentację dla modułu Pythona pyRXP.
 
-%package examples
-Summary:       Example programs for Python pyRXP module
-Summary(pl.UTF-8):     Programy przykładowe do modułu Pythona pyRXP
-Group:         Development/Languages/Python
-Requires:      %{name} = %{version}-%{release}
-BuildArch:     noarch
-
-%description examples
-This package contains example programs for Python pyRXP module.
-
-%description examples -l pl.UTF-8
-Pakiet zawierający programy przykładowe dla modułu Pythona pyRXP.
-
 %prep
 %setup -q -n pyRXP-%{version}
 
+# missing in sdist
+touch LICENSE.txt
+
 %build
 %py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %py_install
 
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc README.rst
-%attr(755,root,root) %{py_sitedir}/pyRXP.so
 %attr(755,root,root) %{py_sitedir}/pyRXPU.so
 %{py_sitedir}/pyRXP-%{version}-py*.egg-info
 
 %files doc
 %defattr(644,root,root,755)
 %doc docs/*.{gif,html}
-
-%files examples
-%defattr(644,root,root,755)
-%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyRXP.git/commitdiff/b0ae55d0b73792e5d0fc3165788a2b79ae6a6916

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to