66aec96
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
66aec96
66aec96
Name:          python-rpmfluff
66aec96
Version:       0.3
66aec96
Release:       5%{?dist}
66aec96
Summary:       Lightweight way of building RPMs, and sabotaging them
66aec96
License:       GPLv2
66aec96
Group:         Development/Tools
66aec96
URL:           https://fedorahosted.org/rpmfluff/
66aec96
Source0:       https://fedorahosted.org/releases/r/p/rpmfluff/rpmfluff-%{version}.tar.bz2
66aec96
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
66aec96
BuildArch:     noarch
66aec96
BuildRequires: python
66aec96
BuildRequires: python-devel
66aec96
BuildRequires:  python-setuptools-devel
66aec96
#BuildRequires:  python-setuptools   # For Fedora < 8
66aec96
Requires:      python
66aec96
66aec96
66aec96
%description
66aec96
rpmfluff provides a python library for building RPM packages, and
66aec96
sabotaging them so they are broken in controlled ways.
66aec96
66aec96
It is intended for use when validating package analysis tools such as RPM lint.
66aec96
It can also be used to construct test cases for package management software
66aec96
such as rpm and yum.
66aec96
66aec96
66aec96
%prep
66aec96
%setup -q -n rpmfluff-%{version}
66aec96
66aec96
66aec96
%build
66aec96
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
66aec96
66aec96
66aec96
%install
66aec96
rm -rf $RPM_BUILD_ROOT
66aec96
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
66aec96
66aec96
66aec96
%clean
66aec96
rm -rf $RPM_BUILD_ROOT
66aec96
66aec96
66aec96
%files
66aec96
%defattr(-,root,root,-)
66aec96
%doc README
66aec96
%doc LICENSE
66aec96
%{python_sitelib}/rpmfluff.py*
66aec96
%{python_sitelib}/rpmfluff*.egg-info
66aec96
66aec96
66aec96
%changelog
66aec96
* Fri Feb 12 2010 Jan Hutar <jhutar@redhat.com> - 0.3-5
66aec96
- Now version is in the separate file
66aec96
66aec96
* Thu Jan 26 2010 Jan Hutar <jhutar@redhat.com> - 0.3-4
66aec96
- Fix for deprecated popen2 module
66aec96
66aec96
* Thu Jan 7 2010 Jan Hutar <jhutar@redhat.com> - 0.3-3
66aec96
- Moved to use EGGs for distribution
66aec96
66aec96
* Mon Dec 21 2009 Jan Hutar <jhutar@redhat.com> - 0.3-2
66aec96
- Added separate LICENSE file
66aec96
66aec96
* Fri Dec 18 2009 Jan Hutar <jhutar@redhat.com> - 0.3-1
66aec96
- New version, first attempt to get to Fedora
66aec96
66aec96
* Tue Jul 08 2008 Jan Hutar <jhutar@redhat.com> - 0.1-1
66aec96
- Initial version
66aec96
- spec-file based on python-html2text.spec