- Fix build on fedora as they bytecompile the py

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal 2013-11-25 12:15:37 +00:00 committed by Git OBS Bridge
parent 3901e11ad6
commit a3570f57a7
2 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 25 12:15:14 UTC 2013 - tchvatal@suse.com
- Fix build on fedora as they bytecompile the py
-------------------------------------------------------------------
Mon Nov 25 10:21:09 UTC 2013 - tchvatal@suse.com

View File

@ -26,7 +26,9 @@ Group: Development/Tools/Other
Url: http://github.com/openSUSE/spec-cleaner
Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: python
%if 0%{?suse_version} > 01220
BuildRequires: python3
%endif
Requires: python-base
Provides: obs-service-format_spec_file = %{version}
Obsoletes: obs-service-format_spec_file < %{version}
@ -61,22 +63,22 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags} \
%{_libexecdir}/obs/service/format_spec_file
%{_libexecdir}/obs/service/format_spec_file.service
%dir %{python_sitelib}/spec_cleaner/
%{python_sitelib}/spec_cleaner/__init__.py
%{python_sitelib}/spec_cleaner/fileutils.py
%{python_sitelib}/spec_cleaner/rpmbuild.py
%{python_sitelib}/spec_cleaner/rpmcheck.py
%{python_sitelib}/spec_cleaner/rpmcleaner.py
%{python_sitelib}/spec_cleaner/rpmcopyright.py
%{python_sitelib}/spec_cleaner/rpmdescription.py
%{python_sitelib}/spec_cleaner/rpmexception.py
%{python_sitelib}/spec_cleaner/rpmfiles.py
%{python_sitelib}/spec_cleaner/rpminstall.py
%{python_sitelib}/spec_cleaner/rpmpreamble.py
%{python_sitelib}/spec_cleaner/rpmprep.py
%{python_sitelib}/spec_cleaner/rpmprune.py
%{python_sitelib}/spec_cleaner/rpmregexp.py
%{python_sitelib}/spec_cleaner/rpmscriplets.py
%{python_sitelib}/spec_cleaner/rpmsection.py
%{python_sitelib}/spec_cleaner/__init__.py*
%{python_sitelib}/spec_cleaner/fileutils.py*
%{python_sitelib}/spec_cleaner/rpmbuild.py*
%{python_sitelib}/spec_cleaner/rpmcheck.py*
%{python_sitelib}/spec_cleaner/rpmcleaner.py*
%{python_sitelib}/spec_cleaner/rpmcopyright.py*
%{python_sitelib}/spec_cleaner/rpmdescription.py*
%{python_sitelib}/spec_cleaner/rpmexception.py*
%{python_sitelib}/spec_cleaner/rpmfiles.py*
%{python_sitelib}/spec_cleaner/rpminstall.py*
%{python_sitelib}/spec_cleaner/rpmpreamble.py*
%{python_sitelib}/spec_cleaner/rpmprep.py*
%{python_sitelib}/spec_cleaner/rpmprune.py*
%{python_sitelib}/spec_cleaner/rpmregexp.py*
%{python_sitelib}/spec_cleaner/rpmscriplets.py*
%{python_sitelib}/spec_cleaner/rpmsection.py*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/excludes-bracketing.txt
%{_datadir}/%{name}/licenses_changes.txt