14
0

- 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/package/show/devel:languages:python/python-py2pack?expand=0&rev=33
This commit is contained in:
Sascha Peilicke
2011-09-20 14:58:36 +00:00
committed by Git OBS Bridge
parent 9ed1c2b6d7
commit 4ef15f9a26
2 changed files with 11 additions and 7 deletions

View File

@@ -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

View File

@@ -26,9 +26,9 @@ Source: http://pypi.python.org/packages/source/p/py2pack/py2pack-%{versi
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-argparse
BuildRequires: python-devel
BuildRequires: python-jinja2
BuildRequires: python-Jinja2
Requires: python-argparse
Requires: python-jinja2
Requires: python-Jinja2
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
@@ -45,9 +45,9 @@ universal tool to package Python modules.
%prep
%setup -q -n py2pack-%{version}
sed -i "1d" py2pack/py2pack.py # Fix non-executable script
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
@@ -58,14 +58,11 @@ mv %{buildroot}/usr/man/man1/py2pack.* %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_docdir}/%{name}
mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_docdir}/%{name}
%{_mandir}/man?/py2pack.*
%{_bindir}/py2pack
%python_sitelib/*
%{python_sitelib}/*
%changelog