|
@@ -1,6 +1,6 @@
|
|
|
Name: pyparsing
|
|
|
-Version: 2.4.7
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 3.0.9
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: An object-oriented approach to text processing
|
|
|
Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
Group: programming
|
|
@@ -16,35 +16,21 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
-BuildRequires: python-devel
|
|
|
-BuildRequires: python-setuptools
|
|
|
-BuildRequires: python2-rpm-macros
|
|
|
-
|
|
|
BuildRequires: python3-devel
|
|
|
BuildRequires: python3-setuptools
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
+BuildRequires: python3-pip
|
|
|
+BuildRequires: python3-flit
|
|
|
+BuildRequires: dos2unix
|
|
|
|
|
|
%description
|
|
|
pyparsing is a module that can be used to easily and directly configure syntax
|
|
|
definitions for any number of text parsing applications.
|
|
|
|
|
|
|
|
|
-%package -n python-pyparsing
|
|
|
-Summary: An object-oriented approach to text processing
|
|
|
-Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
-Group: programming
|
|
|
-Requires: python
|
|
|
-Provides: pyparsing = %{version}-%{release}
|
|
|
-Obsoletes: pyparsing < %{version}
|
|
|
-
|
|
|
-%description -n python-pyparsing
|
|
|
-pyparsing is a module that can be used to easily and directly configure syntax
|
|
|
-definitions for any number of text parsing applications.
|
|
|
-
|
|
|
-
|
|
|
-%package -n python3-pyparsing
|
|
|
+%package -n python3-pyparsing
|
|
|
Summary: An object-oriented approach to text processing
|
|
|
-Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
+Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
Group: programming
|
|
|
Requires: python3
|
|
|
|
|
@@ -54,58 +40,33 @@ definitions for any number of text parsing applications.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -qc -n pyparsing-%{version}
|
|
|
-mv pyparsing-%{version} python2
|
|
|
-cp -a python2 python3
|
|
|
-
|
|
|
-pushd python2
|
|
|
-perl -pi -e 's/\r//' LICENSE
|
|
|
-perl -pi -e 's/\r//' CHANGES
|
|
|
-perl -pi -e 's/\r//' README*
|
|
|
-cp -a LICENSE CHANGES README* docs examples ../
|
|
|
-popd
|
|
|
+%setup -n pyparsing-%{version}
|
|
|
+dos2unix -k examples/*
|
|
|
|
|
|
|
|
|
%build
|
|
|
-pushd python2
|
|
|
-%py2_build
|
|
|
-popd
|
|
|
-pushd python3
|
|
|
-%py3_build
|
|
|
-popd
|
|
|
-
|
|
|
+%pip3_build_wheel
|
|
|
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-pushd python2
|
|
|
-%py2_install
|
|
|
-popd
|
|
|
-pushd python3
|
|
|
-%py3_install
|
|
|
-popd
|
|
|
+%pip3_install_wheel
|
|
|
+#%{__python3} -m pip install -I --disable-pip-version-check --no-build-isolation --no-cache-dir --no-deps --no-clean --verbose --root %{buildroot} .
|
|
|
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
-%files -n python-pyparsing
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%license LICENSE
|
|
|
-%doc CHANGES README* docs examples
|
|
|
-%{python2_sitelib}/pyparsing*egg-info
|
|
|
-%{python2_sitelib}/pyparsing.py*
|
|
|
-
|
|
|
%files -n python3-pyparsing
|
|
|
%defattr(-,root,root,-)
|
|
|
%license LICENSE
|
|
|
%doc CHANGES README* docs examples
|
|
|
-%{python3_sitelib}/pyparsing*egg-info
|
|
|
-%{python3_sitelib}/pyparsing.py*
|
|
|
-%{python3_sitelib}/__pycache__/pyparsing.*
|
|
|
+%{python3_sitelib}/pyparsing*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Oct 22 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.9-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.7-2
|
|
|
- rebuilt with rpm-4.16.
|
|
|
|