9f6d70b
# Created by pyp2rpm-0.5.1
9f6d70b
%global pypi_name spec2scl
9f6d70b
9f6d70b
Name:           %{pypi_name}
8602919
Version:        1.0.1
8602919
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
600114d
Patch0:         spec2scl-remove-setup-requires-on-el-6.patch
9f6d70b
BuildArch:      noarch
9f6d70b
 
9f6d70b
BuildRequires:  python-devel
9f6d70b
BuildRequires:  python-setuptools
479ac99
%if 0%{?fedora}
479ac99
BuildRequires:  python-flexmock
479ac99
BuildRequires:  pytest
479ac99
%endif
9f6d70b
9f6d70b
Requires:       python-argparse
411ea3f
Requires:       python-setuptools
9f6d70b
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
600114d
%patch0 -p0
9f6d70b
9f6d70b
%build
9f6d70b
%{__python} setup.py build
9f6d70b
9f6d70b
%install
9f6d70b
%{__python} setup.py install --skip-build --root %{buildroot}
9f6d70b
479ac99
%check
479ac99
%if 0%{?fedora}
479ac99
PYTHONPATH=$(pwd) py.test
479ac99
%endif
479ac99
9f6d70b
%files
9f6d70b
%doc README.rst LICENSE
9f6d70b
%{_bindir}/%{pypi_name}
9f6d70b
%{python_sitelib}/%{pypi_name}
9f6d70b
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
9f6d70b
9f6d70b
%changelog
8602919
* Tue Mar 26 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.1-1
8602919
- Update to 1.0.1.
8602919
5d0f15a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
5d0f15a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5d0f15a
4cc227d
* Mon Jan 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.4-1
4cc227d
- Update to 0.3.4.
4cc227d
479ac99
* Wed Dec 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.3-1
479ac99
- Update to 0.3.3.
479ac99
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
600114d
* Fri Sep 21 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.1-2
600114d
- Disable tests on el6 (no pytest).
600114d
9f6d70b
* Tue Sep 18 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.1-1
9f6d70b
- Initial package.