e9e2dbe
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
e9e2dbe
e9e2dbe
Name:          python-rpmfluff
02781e1
Version:       0.4.3
cc27437
Release:       1%{?dist}
e9e2dbe
Summary:       Lightweight way of building RPMs, and sabotaging them
e9e2dbe
License:       GPLv2
e9e2dbe
Group:         Development/Tools
e9e2dbe
URL:           https://fedorahosted.org/rpmfluff/
e9e2dbe
Source0:       https://fedorahosted.org/releases/r/p/rpmfluff/rpmfluff-%{version}.tar.bz2
e9e2dbe
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e9e2dbe
BuildArch:     noarch
e9e2dbe
BuildRequires: python
e9e2dbe
BuildRequires: python-devel
db4b299
BuildRequires: python-setuptools
e9e2dbe
Requires:      python
db4b299
Requires:      rpm-build
e9e2dbe
e9e2dbe
e9e2dbe
%description
e9e2dbe
rpmfluff provides a python library for building RPM packages, and
e9e2dbe
sabotaging them so they are broken in controlled ways.
e9e2dbe
e9e2dbe
It is intended for use when validating package analysis tools such as RPM lint.
e9e2dbe
It can also be used to construct test cases for package management software
e9e2dbe
such as rpm and yum.
e9e2dbe
e9e2dbe
cc27437
%package -n python3-rpmfluff
cc27437
Summary:       Lightweight way of building RPMs, and sabotaging them
02781e1
BuildRequires: python3
db4b299
BuildRequires: python3-devel
cc27437
BuildRequires: python3-setuptools
02781e1
Requires:      python3
02781e1
Requires:      rpm-build
cc27437
cc27437
cc27437
%description -n python3-rpmfluff
cc27437
rpmfluff provides a python library for building RPM packages, and
cc27437
sabotaging them so they are broken in controlled ways.
cc27437
cc27437
It is intended for use when validating package analysis tools such as RPM lint.
cc27437
It can also be used to construct test cases for package management software
cc27437
such as rpm and yum.
cc27437
cc27437
This is the Python 3 version of the package.
cc27437
e9e2dbe
%prep
cc27437
%setup -qc
cc27437
mv rpmfluff-%{version} python2
cc27437
cc27437
pushd python2
cc27437
# Copy common doc files to the top directory
cc27437
cp -pr README LICENSE ../
cc27437
cc27437
popd
cc27437
cc27437
cp -a python2 python3
e9e2dbe
e9e2dbe
e9e2dbe
%build
cc27437
pushd python2
cc27437
%{__python2} setup.py build
cc27437
popd
cc27437
cc27437
pushd python3
cc27437
%{__python3} setup.py build
cc27437
popd
e9e2dbe
e9e2dbe
e9e2dbe
%install
e9e2dbe
rm -rf $RPM_BUILD_ROOT
cc27437
pushd python2
cc27437
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
cc27437
popd
cc27437
cc27437
pushd python3
cc27437
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
cc27437
popd
e9e2dbe
e9e2dbe
e9e2dbe
%clean
e9e2dbe
rm -rf $RPM_BUILD_ROOT
e9e2dbe
e9e2dbe
e9e2dbe
%files
e9e2dbe
%defattr(-,root,root,-)
e9e2dbe
%doc README
e9e2dbe
%doc LICENSE
cc27437
%{python2_sitelib}/rpmfluff.py*
cc27437
%{python2_sitelib}/rpmfluff*.egg-info
e9e2dbe
e9e2dbe
cc27437
%files -n python3-rpmfluff
cc27437
%defattr(-,root,root,-)
cc27437
%doc README
cc27437
%doc LICENSE
cc27437
%{python3_sitelib}/rpmfluff.py*
cc27437
%{python3_sitelib}/__pycache__/rpmfluff.*
cc27437
%{python3_sitelib}/rpmfluff*.egg-info
cc27437
e9e2dbe
%changelog
82b829e
* Thu Aug 20 2015 Jan Hutar <jhutar@redhat.com> - 0.4.2-1
82b829e
- John Dulaney implemented weak dependencies
82b829e
cc27437
* Thu Jul 09 2015 Jan Hutar <jhutar@redhat.com> - 0.4-1
cc27437
- David Shea did a lots of work to support Python 3
cc27437
- RHEL5 (i.e. Python 2.4) support dropped
cc27437
c27f310
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-14
c27f310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c27f310
fdb7510
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3-13
fdb7510
- Replace pyhton-setuptools-devel BR with python-setuptools
fdb7510
68e9e9d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-12
68e9e9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
68e9e9d
c9ded54
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-11
c9ded54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c9ded54
a35e655
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-10
a35e655
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a35e655
c82d6d8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-9
c82d6d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c82d6d8
9112765
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-8
9112765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9112765
aa5cfe1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-7
aa5cfe1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
aa5cfe1
bf9ff9c
* Fri Jul 30 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-6
bf9ff9c
- rebuild for python 2.7
bf9ff9c
e9e2dbe
* Fri Feb 12 2010 Jan Hutar <jhutar@redhat.com> - 0.3-5
e9e2dbe
- Now version is in the separate file
e9e2dbe
cc27437
* Tue Jan 26 2010 Jan Hutar <jhutar@redhat.com> - 0.3-4
e9e2dbe
- Fix for deprecated popen2 module
e9e2dbe
e9e2dbe
* Thu Jan 7 2010 Jan Hutar <jhutar@redhat.com> - 0.3-3
e9e2dbe
- Moved to use EGGs for distribution
e9e2dbe
e9e2dbe
* Mon Dec 21 2009 Jan Hutar <jhutar@redhat.com> - 0.3-2
e9e2dbe
- Added separate LICENSE file
e9e2dbe
e9e2dbe
* Fri Dec 18 2009 Jan Hutar <jhutar@redhat.com> - 0.3-1
e9e2dbe
- New version, first attempt to get to Fedora
e9e2dbe
e9e2dbe
* Tue Jul 08 2008 Jan Hutar <jhutar@redhat.com> - 0.1-1
e9e2dbe
- Initial version
e9e2dbe
- spec-file based on python-html2text.spec