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