forked from pool/python-py2pack
- 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:
committed by
Git OBS Bridge
parent
9ed1c2b6d7
commit
4ef15f9a26
@@ -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
|
||||
|
Reference in New Issue
Block a user