542a238
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
5e7af19
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
542a238
5e7af19
Name:		python-augeas
85f2fe2
Version:	0.3.0
7653785
Release:	3%{?dist}
5e7af19
Summary:	Python bindings to augeas
5e7af19
Group:		Development/Languages
5e7af19
License:	LGPLv2+
5e7af19
URL:		http://augeas.net/
5e7af19
Source0:	http://augeas.net/download/python/%{name}-%{version}.tar.gz
5e7af19
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5e7af19
Requires:	augeas-libs 
5e7af19
BuildArch:	noarch
542a238
067104b
BuildRequires:	python-setuptools python-devel
542a238
542a238
%description
542a238
python-augeas is a set of Python bindings around augeas.
542a238
542a238
%prep
542a238
%setup -q
542a238
542a238
542a238
%build
542a238
# Remove CFLAGS=... for noarch packages (unneeded)
542a238
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build_ext -i
542a238
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
542a238
542a238
%install
542a238
rm -rf $RPM_BUILD_ROOT
542a238
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
542a238
542a238
 
542a238
%clean
542a238
rm -rf $RPM_BUILD_ROOT
542a238
542a238
%files
542a238
%defattr(-,root,root,-)
542a238
%doc COPYING AUTHORS README.txt
5e7af19
%{python_sitelib}/augeas.py*
5e7af19
%{python_sitelib}/*augeas*.egg-info
542a238
542a238
%changelog
7653785
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
7653785
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7653785
9fb326a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.0-2
9fb326a
- Rebuild for Python 2.6
9fb326a
85f2fe2
* Tue Sep 09 2008 Harald Hoyer <harald@redhat.com> 0.3.0-1
85f2fe2
- version 0.3.0
85f2fe2
5e7af19
* Thu Jul 03 2008 Harald Hoyer <harald@redhat.com> 0.2.1-1
5e7af19
- version 0.2.1
5e7af19
5e7af19
* Wed Jun 11 2008 Harald Hoyer <harald@redhat.com> 0.2.0-1
5e7af19
- switched to noarch, dlopen/ python bindings
5e7af19
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-4
542a238
- version to import in CVS (rhbz#444945)
542a238
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-3
542a238
- set mode of _augeas.so to 0755
542a238
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-2
542a238
- wildcard to catch egg-info in case it is build
542a238
542a238
* Fri May 02 2008 Harald Hoyer <harald@redhat.com> 0.1.0-1
542a238
- new version
542a238
542a238
* Wed Apr 16 2008 Harald Hoyer <harald@redhat.com> - 0.0.8-1
542a238
- initial version