Blame SPECS/python-augeas.spec

1f53ce
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
1f53ce
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1f53ce
1f53ce
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 9 || 0%{?rhel} >= 6
1f53ce
%bcond_without egg
1f53ce
%endif
1f53ce
1f53ce
Name:		python-augeas
1f53ce
Version:	0.4.1
1f53ce
Release:	5%{?dist}
1f53ce
Summary:	Python bindings to augeas
1f53ce
Group:		Development/Languages
1f53ce
License:	LGPLv2+
1f53ce
URL:		http://augeas.net/
1f53ce
Source0:	http://augeas.net/download/python/%{name}-%{version}.tar.gz
1f53ce
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1f53ce
Requires:	augeas-libs 
1f53ce
Requires:   python-ctypes
1f53ce
BuildArch:	noarch
1f53ce
1f53ce
BuildRequires:	python-setuptools python-devel
1f53ce
1f53ce
%description
1f53ce
python-augeas is a set of Python bindings around augeas.
1f53ce
1f53ce
%prep
1f53ce
%setup -q
1f53ce
1f53ce
1f53ce
%build
1f53ce
# Remove CFLAGS=... for noarch packages (unneeded)
1f53ce
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build_ext -i
1f53ce
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
1f53ce
1f53ce
%install
1f53ce
rm -rf $RPM_BUILD_ROOT
1f53ce
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
1f53ce
1f53ce
 
1f53ce
%clean
1f53ce
rm -rf $RPM_BUILD_ROOT
1f53ce
1f53ce
%files
1f53ce
%defattr(-,root,root,-)
1f53ce
%doc COPYING AUTHORS README.txt
1f53ce
%{python_sitelib}/augeas.py*
1f53ce
%if %{with egg}
1f53ce
%{python_sitelib}/*augeas*.egg-info
1f53ce
%endif
1f53ce
1f53ce
%changelog
1f53ce
* Tue Oct 22 2013 Greg Swift <gregswift@gmail.com> - 0.4.1-5
1f53ce
- add python-ctypes dependency (rhbz#1020239)
1f53ce
1f53ce
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f53ce
1f53ce
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1f53ce
1f53ce
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f53ce
1f53ce
* Mon Jan 16 2012 Greg Swift <gregswift@gmail.com> 0.4.1-1
1f53ce
- version 0.4.1
1f53ce
- include egg only on F-9, RHEL-6 and later
1f53ce
1f53ce
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-8
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1f53ce
1f53ce
* Fri Feb 18 2011 Harald Hoyer <harald@redhat.com> 0.3.0-7
1f53ce
- only include egg-info, if fedora >=9 or rhel >= 6
1f53ce
Resolves: rhbz#661452
1f53ce
1f53ce
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-6
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1f53ce
1f53ce
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.0-5
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1f53ce
1f53ce
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1f53ce
1f53ce
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1f53ce
1f53ce
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.0-2
1f53ce
- Rebuild for Python 2.6
1f53ce
1f53ce
* Tue Sep 09 2008 Harald Hoyer <harald@redhat.com> 0.3.0-1
1f53ce
- version 0.3.0
1f53ce
1f53ce
* Thu Jul 03 2008 Harald Hoyer <harald@redhat.com> 0.2.1-1
1f53ce
- version 0.2.1
1f53ce
1f53ce
* Wed Jun 11 2008 Harald Hoyer <harald@redhat.com> 0.2.0-1
1f53ce
- switched to noarch, dlopen/ python bindings
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-4
1f53ce
- version to import in CVS (rhbz#444945)
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-3
1f53ce
- set mode of _augeas.so to 0755
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-2
1f53ce
- wildcard to catch egg-info in case it is build
1f53ce
1f53ce
* Fri May 02 2008 Harald Hoyer <harald@redhat.com> 0.1.0-1
1f53ce
- new version
1f53ce
1f53ce
* Wed Apr 16 2008 Harald Hoyer <harald@redhat.com> - 0.0.8-1
1f53ce
- initial version