9f6d70b
# Created by pyp2rpm-0.5.1
9f6d70b
%global pypi_name spec2scl
9f6d70b
9f6d70b
Name:           %{pypi_name}
411ea3f
Version:        0.3.2
9f6d70b
Release:        1%{?dist}
9f6d70b
Summary:        Convert RPM specfiles to be SCL ready
9f6d70b
9f6d70b
License:        MIT
9f6d70b
URL:            https://bitbucket.org/bkabrda/spec2scl/
9f6d70b
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
9f6d70b
BuildArch:      noarch
9f6d70b
 
9f6d70b
BuildRequires:  python-devel
9f6d70b
BuildRequires:  python-setuptools
9f6d70b
BuildRequires:  python-flexmock
9f6d70b
BuildRequires:  pytest
9f6d70b
9f6d70b
%if 0%{?rhel}
9f6d70b
BuildRequires:  python-argparse
9f6d70b
Requires:       python-argparse
9f6d70b
%endif
9f6d70b
411ea3f
Requires:       python-setuptools
411ea3f
9f6d70b
%description
9f6d70b
spec2scl is a tool to convert RPM specfiles to SCL-style specfiles.
9f6d70b
9f6d70b
9f6d70b
%prep
9f6d70b
%setup -q -n %{pypi_name}-%{version}
9f6d70b
# Remove bundled egg-info
9f6d70b
rm -rf %{pypi_name}.egg-info
9f6d70b
9f6d70b
%build
9f6d70b
%{__python} setup.py build
9f6d70b
9f6d70b
%install
9f6d70b
%{__python} setup.py install --skip-build --root %{buildroot}
9f6d70b
9f6d70b
%check
9f6d70b
py.test-%{python_version} tests
9f6d70b
9f6d70b
%files
9f6d70b
%doc README.rst LICENSE
9f6d70b
# tests are wrongly installed, this has been fixed upstream and will be removed in next version
9f6d70b
%{_bindir}/%{pypi_name}
9f6d70b
%exclude %{python_sitelib}/tests
9f6d70b
%{python_sitelib}/%{pypi_name}
9f6d70b
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
9f6d70b
9f6d70b
%changelog
411ea3f
* Thu Nov 08 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.2-1
411ea3f
- Update to 0.3.2.
411ea3f
- Add the missing Requires: python-setuptools.
411ea3f
9f6d70b
* Tue Sep 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.1-1
9f6d70b
- Initial package.