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