File python-utmp.spec of Package python-utmp

# norootforbuild

%define _prefix	/usr

Name:				python-utmp
Version:			0.7
Release:			0
Summary:			Python Module for Working with utmp
Source:			http://melkor.dnp.fmph.uniba.sk/~garabik/python-utmp/python-utmp_%{version}.tar.gz
Patch1:			python-utmp-makeconst-int64.diff
URL:				http://melkor.dnp.fmph.uniba.sk/~garabik/python-utmp/
Group:			Development/Libraries/Python
Packager:		Pascal Bleser <guru@unixtech.be>
License:			GPL
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	python python-devel make gcc glibc-devel
%py_requires

%description
This package provides 3 python modules to access utmp and wtmp
records.  utmpaccess is lowlevel module wrapping glibc functions,
UTMPCONST provides useful constants, and utmp is module build on top
of utmpaccess module, providing object oriented interface.

%if %suse_version >= 930
%endif
%prep
%setup -q -n "python-utmp-%{version}"
%patch1
%__make clean

%build
%__make -f Makefile.glibc \
	PYTHONVER="%{py_ver}" \
	PYTHONDIR="%{py_sitedir}" \
	PYTHONINCLUDE="%{py_incdir}" \
	DEFINES="%{optflags}"

%install
%__make -f Makefile.glibc \
	PYTHONVER="%{py_ver}" \
	PYTHONDIR="%{buildroot}%{py_sitedir}" \
	PYTHONINCLUDE="%{py_incdir}" \
	DEFINES="%{optflags}" \
	install

%__rm COPYING
%__cp debian/copyright COPYING

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc COPYING README TODO
%doc examples
%{py_sitedir}/utmpaccessmodule.so
%{py_sitedir}/UTMPCONST.py
%{py_sitedir}/utmp.py

%changelog
* Sun Apr 29 2007 Pascal Bleser <guru@unixtech.be> 0.7
- initial build service package

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by