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
@@ -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
|
||||||
|
|
||||||
|
@@ -26,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
|
||||||
@@ -45,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
|
||||||
@@ -58,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