Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 988b9c3cf6e5f79497d9fdfafb089c9c > files > 3

python-fam-1.0.2-5mdk.src.rpm

%define pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".")

Summary: Python FAM module
Name: python-fam
Version: 1.0.2
Release: 5mdk
Source0: %{name}-%{version}.tar.bz2
Patch0: python-fam-1.0.2-gamin.patch.bz2
License: GPL
Group: Development/Python
URL: http://python-fam.sourceforge.net/
Requires: python
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: python-devel, fam-devel

%description
Python FAM is a wrapper module around libfam from the FAM project. It
allows Python programs to monitor files and directories. An example
script is included.

%prep
%setup -q
%patch0 -p1 -b .gamin
chmod 755 test.py
perl -p -i -e 's/python2.2/python%{pyver}/' Makefile

%build
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%pyver/site-packages
install -m 644 _fam.so $RPM_BUILD_ROOT%{_libdir}/python%pyver/site-packages

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc test.py
%{_libdir}/python%pyver/site-packages/*

%changelog
* Sun Dec 19 2004 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-5mdk
- Buildrequires fam-devel
- fix to compile with gamin

* Thu Aug 07 2003 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-4mdk
- python 2.3

* Fri Jul 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.0.2-3mdk
- rebuild
- drop Prefix tag
- quiet setup

* Tue Feb  4 2003 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-2mdk
- added BuildRequires libfam-devel

* Sat Feb  1 2003 Frederic Lepied <flepied@mandrakesoft.com> 1.0.2-1mdk
- initial Mandrake Linux packaging

# end of file