File pykota.spec of Package pykota

#
# spec file for package pykota
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:		pykota
Version:	1.26.237
%define tver	1.26+
Release:	0
Group:		Hardware/Printing
Summary:	The PyKota print accounting and print quota enforcement
License:	GPL-3.0
URL:		http://pykota.com/software/pykota/
# There are no public tarballs:
# Svn-Clone:    http://svn.pykota.com/pykota/trunk
# In the openSUSE build service SLE_10 SLE_11 and SLE_11_SP1 do not provide an "xz" package
# so that pykota-<version>.tar.xz cannot be used instead pykota-<version>.tar.bz2 is used:
Source:		%name-%tver.tar.bz2
BuildRoot:	%_tmppath/%name-%version-build
BuildRequires:	python-base
BuildRequires:  python-imaging
%py_requires
Requires:	pkpgcounter >= 1.56
Requires:	python-imaging

%description

PyKota is one of the most advanced Free Software
dedicated to print accounting and print quota enforcement,
see http://pykota.com/software/pykota/

%prep
%setup -qn %name

%build
python setup.py build;

%install
b="%buildroot";
rm -Rf "$b";
mkdir "$b";
python setup.py install --prefix=%_prefix --root=%buildroot \
	--record-rpm=INSTALLED_FILES;
perl -i -lpe 's{/man\w+/[^/]+$}{$&.gz}m' INSTALLED_FILES;

%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir /usr/share/locale/sv_SE
%dir /usr/share/locale/sv_SE/LC_MESSAGES
%dir /usr/share/man/el_GR
%dir /usr/share/man/el_GR/man1
%dir /usr/share/man/nb_NO
%dir /usr/share/man/nb_NO/man1
%dir /usr/share/man/pl
%dir /usr/share/man/pl/man1
%dir /usr/share/man/pt
%dir /usr/share/man/pt/man1
%dir /usr/share/man/sv_SE
%dir /usr/share/man/sv_SE/man1
%dir /usr/share/man/th
%dir /usr/share/man/th/man1
%dir /usr/share/man/tr
%dir /usr/share/man/tr/man1
%dir /usr/share/man/zh_TW
%dir /usr/share/man/zh_TW/man1

%changelog
openSUSE Build Service is sponsored by