[packages/python-pyuca] new, version 1.1

glen glen at pld-linux.org
Mon Nov 7 17:47:48 CET 2016


commit 5800286608be06d58c3e9164118973d293899e0f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Nov 7 18:47:18 2016 +0200

    new, version 1.1
    
    created with pyp2rpm

 python-pyuca.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
---
diff --git a/python-pyuca.spec b/python-pyuca.spec
new file mode 100644
index 0000000..bfea124
--- /dev/null
+++ b/python-pyuca.spec
@@ -0,0 +1,87 @@
+#
+# Conditional build:
+%bcond_without	doc	# don't build doc
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module		pyuca
+%define 	egg_name	pyuca
+%define		pypi_name	pyuca
+Summary:	A Python implementation of the Unicode Collation Algorithm
+Name:		python-%{module}
+Version:	1.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	23139a4c470c56e74da1210baf0da6ba
+URL:		http://github.com/jtauber/pyuca
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Python implementation of the Unicode Collation Algorithm.
+
+%package -n python3-%{pypi_name}
+Summary:	A Python implementation of the Unicode Collation Algorithm
+Group:		Libraries/Python
+
+%description -n python3-%{pypi_name}
+A Python implementation of the Unicode Collation Algorithm.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r %{module}.egg-info
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc
+%{py_sitescriptdir}/%{pypi_name}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc
+%{py3_sitescriptdir}/%{pypi_name}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyuca.git/commitdiff/5800286608be06d58c3e9164118973d293899e0f



More information about the pld-cvs-commit mailing list