|
@@ -1,20 +1,22 @@
|
|
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
-
|
|
|
|
Name: pyparsing
|
|
Name: pyparsing
|
|
-Version: 1.5.0
|
|
|
|
-Release: 4%{?_dist_release}
|
|
|
|
|
|
+Version: 2.3.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: An object-oriented approach to text processing
|
|
Summary: An object-oriented approach to text processing
|
|
Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
|
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
License: MIT
|
|
License: MIT
|
|
-URL: http://pyparsing.wikispaces.com/
|
|
|
|
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
-Source1: pyparsing-LICENSE
|
|
|
|
|
|
+URL: https://github.com/pyparsing/pyparsing/
|
|
|
|
+Source0: https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-2.3.0.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
|
|
+BuildRequires: python-setuptools
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python3-devel
|
|
|
|
+BuildRequires: python3-setuptools
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -23,29 +25,87 @@ Distribution: Vine Linux
|
|
pyparsing is a module that can be used to easily and directly configure syntax
|
|
pyparsing is a module that can be used to easily and directly configure syntax
|
|
definitions for any number of text parsing applications.
|
|
definitions for any number of text parsing applications.
|
|
|
|
|
|
|
|
+%package -n python-pyparsing
|
|
|
|
+Summary: An object-oriented approach to text processing
|
|
|
|
+Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+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
|
|
|
|
+Summary: An object-oriented approach to text processing
|
|
|
|
+Summary(ja): オブジェクト指向のテキストパース用 Python モジュール
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: python3
|
|
|
|
+
|
|
|
|
+%description -n python3-pyparsing
|
|
|
|
+pyparsing is a module that can be used to easily and directly configure syntax
|
|
|
|
+definitions for any number of text parsing applications.
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
|
|
|
|
+%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* htmldoc examples HowToUsePyparsing.html ../
|
|
|
|
+cp pyparsingClassDiagram.JPG ../pyparsingClassDiagram.jpg
|
|
|
|
+cp pyparsingClassDiagram.PNG ../pyparsingClassDiagram.png
|
|
|
|
+popd
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__python} setup.py build
|
|
|
|
-mv pyparsingClassDiagram.PNG pyparsingClassDiagram.png
|
|
|
|
-install -p -m 0644 %{SOURCE1} $RPM_BUILD_DIR/%{name}-%{version}/LICENSE
|
|
|
|
|
|
+pushd python2
|
|
|
|
+%py_build
|
|
|
|
+popd
|
|
|
|
+pushd python3
|
|
|
|
+%py3_build
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
+pushd python2
|
|
|
|
+%py_install
|
|
|
|
+popd
|
|
|
|
+pushd python3
|
|
|
|
+%py3_install
|
|
|
|
+popd
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%files
|
|
|
|
|
|
+%files -n python-pyparsing
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc CHANGES docs examples HowToUsePyparsing.html htmldoc pyparsingClassDiagram.* README LICENSE
|
|
|
|
|
|
+%license LICENSE
|
|
|
|
+%doc CHANGES README* htmldoc examples
|
|
|
|
+%doc HowToUsePyparsing.html pyparsingClassDiagram.jpg pyparsingClassDiagram.png
|
|
%{python_sitelib}/pyparsing*egg-info
|
|
%{python_sitelib}/pyparsing*egg-info
|
|
%{python_sitelib}/pyparsing.py*
|
|
%{python_sitelib}/pyparsing.py*
|
|
|
|
|
|
|
|
+%files -n python3-pyparsing
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%license LICENSE
|
|
|
|
+%doc CHANGES README* htmldoc examples
|
|
|
|
+%doc HowToUsePyparsing.html pyparsingClassDiagram.jpg pyparsingClassDiagram.png
|
|
|
|
+%{python3_sitelib}/pyparsing*egg-info
|
|
|
|
+%{python3_sitelib}/pyparsing.py*
|
|
|
|
+%{python3_sitelib}/__pycache__/pyparsing.*
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- changed naming-rule.
|
|
|
|
+- added python3 support.
|
|
|
|
+
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.0-4
|
|
* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.0-4
|
|
- rebuild with VineSeed environment
|
|
- rebuild with VineSeed environment
|
|
|
|
|