- Version bump to 0.6.0:

* Use setuptools and nosetests for building&testing
  * Various bugfixes as found by java icedtea cleaning

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=29
This commit is contained in:
Tomáš Chvátal 2014-08-13 12:10:32 +00:00 committed by Git OBS Bridge
parent 90f5084f1a
commit 5a94606b33
4 changed files with 37 additions and 34 deletions

BIN
spec-cleaner-0.5.9.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
spec-cleaner-0.6.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 13 12:09:35 UTC 2014 - tchvatal@suse.com
- Version bump to 0.6.0:
* Use setuptools and nosetests for building&testing
* Various bugfixes as found by java icedtea cleaning
-------------------------------------------------------------------
Tue Jul 8 11:32:40 UTC 2014 - tchvatal@suse.com

View File

@ -18,23 +18,19 @@
Name: spec-cleaner
Version: 0.5.9
Version: 0.6.0
Release: 0
Summary: .spec file cleaner
License: BSD-3-Clause
Group: Development/Tools/Other
Url: http://github.com/openSUSE/spec-cleaner
Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: python
Requires: python-argparse
BuildRequires: python3-mock
BuildRequires: python3-nose
BuildRequires: python3-setuptools
Requires: python3-argparse
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# This is just for tests
# It is conditional so we built on older distros too
# Drop after 12.2 and older are not targeted here
%if 0%{?suse_version} > 01220
BuildRequires: python3
%endif
%description
This script cleans spec file according to some arbitrary style guide. The
@ -45,15 +41,13 @@ will never be perfect.
%setup -q -n %{name}-%{name}-%{version}
%build
python3 setup.py build
%check
make check -j1
python3 setup.py test
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} \
LIBEXECDIR=%{_libexecdir} \
LIBDIR=%{_libdir} \
SITEDIR=%{python_sitelib}
python3 setup.py install --root="%{buildroot}"
%files
%defattr(-, root, root)
@ -62,23 +56,25 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags} \
%dir %{_libexecdir}/obs/service/
%{_libexecdir}/obs/service/clean_spec_file
%{_libexecdir}/obs/service/clean_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*
%dir %{python3_sitelib}/spec_cleaner/
%{python3_sitelib}/spec_cleaner/__init__.py
%{python3_sitelib}/spec_cleaner/fileutils.py
%{python3_sitelib}/spec_cleaner/rpmbuild.py
%{python3_sitelib}/spec_cleaner/rpmcheck.py
%{python3_sitelib}/spec_cleaner/rpmcleaner.py
%{python3_sitelib}/spec_cleaner/rpmcopyright.py
%{python3_sitelib}/spec_cleaner/rpmdescription.py
%{python3_sitelib}/spec_cleaner/rpmexception.py
%{python3_sitelib}/spec_cleaner/rpmfiles.py
%{python3_sitelib}/spec_cleaner/rpminstall.py
%{python3_sitelib}/spec_cleaner/rpmpreamble.py
%{python3_sitelib}/spec_cleaner/rpmprep.py
%{python3_sitelib}/spec_cleaner/rpmprune.py
%{python3_sitelib}/spec_cleaner/rpmregexp.py
%{python3_sitelib}/spec_cleaner/rpmscriplets.py
%{python3_sitelib}/spec_cleaner/rpmsection.py
%{python3_sitelib}/spec_cleaner/__pycache__
%{python3_sitelib}/spec_cleaner-%{version}-py%{py3_ver}.egg-info
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/excludes-bracketing.txt
%{_datadir}/%{name}/licenses_changes.txt