forked from pool/python-py2pack
Accepting request 83943 from devel:languages:python
- Buildrequire python-Jinja2 instead of python-jinja2 - Removed %clean section, use sane default - Fix non-executable script rpmlint warning OBS-URL: https://build.opensuse.org/request/show/83943 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py2pack?expand=0&rev=20
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 20 14:57:05 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Buildrequire python-Jinja2 instead of python-jinja2
|
||||||
|
- Removed %clean section, use sane default
|
||||||
|
- Fix non-executable script rpmlint warning
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 7 13:17:54 UTC 2011 - saschpe@suse.de
|
Thu Jul 7 13:17:54 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
@@ -11,15 +11,13 @@
|
|||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-py2pack
|
Name: python-py2pack
|
||||||
Version: 0.3.20
|
Version: 0.3.20
|
||||||
Release: 3
|
Release: 0
|
||||||
Url: http://github.com/saschpe/py2pack
|
Url: http://github.com/saschpe/py2pack
|
||||||
Summary: Generate distribution packages from Python packages on PyPI
|
Summary: Generate distribution packages from Python packages on PyPI
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@@ -28,9 +26,9 @@ Source: http://pypi.python.org/packages/source/p/py2pack/py2pack-%{versi
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-argparse
|
BuildRequires: python-argparse
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-jinja2
|
BuildRequires: python-Jinja2
|
||||||
Requires: python-argparse
|
Requires: python-argparse
|
||||||
Requires: python-jinja2
|
Requires: python-Jinja2
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
@@ -47,9 +45,9 @@ universal tool to package Python modules.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n py2pack-%{version}
|
%setup -q -n py2pack-%{version}
|
||||||
|
sed -i "1d" py2pack/py2pack.py # Fix non-executable script
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -60,14 +58,11 @@ mv %{buildroot}/usr/man/man1/py2pack.* %{buildroot}%{_mandir}/man1
|
|||||||
install -d %{buildroot}%{_docdir}/%{name}
|
install -d %{buildroot}%{_docdir}/%{name}
|
||||||
mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name}
|
mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_docdir}/%{name}
|
%{_docdir}/%{name}
|
||||||
%{_mandir}/man?/py2pack.*
|
%{_mandir}/man?/py2pack.*
|
||||||
%{_bindir}/py2pack
|
%{_bindir}/py2pack
|
||||||
%python_sitelib/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user