[packages/pyp2rpm] new, version 1.0.1

glen glen at pld-linux.org
Sun Mar 17 01:45:11 CET 2013


commit 20e722016f2375763cd621072cbcc22478cec331
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 17 02:44:30 2013 +0200

    new, version 1.0.1
    
    based on fedora package
    6e2a556138b968ecda2f299c5dcc1b7044a53a97

 pyp2rpm.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/pyp2rpm.spec b/pyp2rpm.spec
new file mode 100644
index 0000000..b7737ac
--- /dev/null
+++ b/pyp2rpm.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+
+Summary:	Convert Python packages to RPM .spec files
+Name:		pyp2rpm
+Version:	1.0.1
+Release:	1
+License:	Applications
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/p/pyp2rpm/%{name}-%{version}.tar.gz
+# Source0-md5:	1e9a514d8dab9782f699ded2eb268237
+# to get tests:
+# git clone git at bitbucket.org:bkabrda/pyp2rpm.git && cd pyp2rpm
+# git checkout v1.0.1 && tar czf pyp2rpm-1.0.1-tests.tgz tests/
+Source1:	%{name}-%{version}-tests.tgz
+URL:		https://pypi.python.org/pypi/pyp2rpm
+BuildRequires:	python-devel
+BuildRequires:	python-distribute
+BuildRequires:	python-flexmock >= 0.9.3
+BuildRequires:	python-jinja2
+BuildRequires:	python-pytest
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-jinja2
+Requires:	python-setuptools
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Convert Python packages to RPM .spec.
+
+Users can provide their own templates for rendering the package
+metadata. Both the package source and metadata can be extracted from
+PyPI or from local filesystem (local file doesn't provide that much
+information though).
+
+%prep
+%setup -q -a1
+# Remove bundled egg-info
+rm -r %{name}.egg-info
+
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+PYTHONPATH=$(pwd) py.test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%attr(755,root,root) %{_bindir}/pyp2rpm
+%{py_sitescriptdir}/%{name}
+%{py_sitescriptdir}/%{name}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pyp2rpm.git/commitdiff/20e722016f2375763cd621072cbcc22478cec331



More information about the pld-cvs-commit mailing list