542a238
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
542a238
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
542a238
542a238
Name:           python-augeas
542a238
Version:        0.1.0
542a238
Release:        4%{?dist}
542a238
Summary:        Python bindings to augeas
542a238
542a238
Group:          Development/Languages
542a238
License:        LGPLv2+
542a238
URL:            http://augeas.net/
542a238
Source0:        http://augeas.net/download/python/%{name}-%{version}.tar.gz
542a238
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
542a238
Requires:       augeas-libs 
542a238
542a238
BuildRequires:  python-devel swig augeas-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
542a238
# For arch-specific packages: sitearch
542a238
%{python_sitearch}/*augeas*
542a238
%attr(0755,root,root) %{python_sitearch}/_augeas.so
542a238
542a238
%changelog
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