Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > by-pkgid > 2c06bb0531f1e71a54b1a366ff539e5a > files > 2

python-fam-1.0.2-4mdk.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: 4mdk
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Development/Python
URL: http://python-fam.sourceforge.net/
Requires: python
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: python-devel, libfam-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
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
* 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