SPECS: pykota.spec - R cups, BR sqlite3 - install cups integration...
baggins
baggins at pld-linux.org
Sun Dec 9 01:12:54 CET 2007
Author: baggins Date: Sun Dec 9 00:12:54 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- R cups, BR sqlite3
- install cups integration (pykota works only with cups)
- install clean sqlite3 db with sqlite backend (config noreplace)
---- Files affected:
SPECS:
pykota.spec (1.23 -> 1.24)
---- Diffs:
================================================================
Index: SPECS/pykota.spec
diff -u SPECS/pykota.spec:1.23 SPECS/pykota.spec:1.24
--- SPECS/pykota.spec:1.23 Sun Dec 9 00:58:37 2007
+++ SPECS/pykota.spec Sun Dec 9 01:12:49 2007
@@ -14,6 +14,8 @@
URL: http://www.pykota.com/
BuildRequires: docbook-utils
BuildRequires: docbook-dtd41-sgml
+BuildRequires: sqlite3
+Requires: cups >= 1:1.2.0
Requires: ghostscript
Requires: python-chardet
Requires: python-pkipplib
@@ -35,6 +37,7 @@
Provides: user(pykota)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define cups_serverbin %{_prefix}/lib/cups
%define schemadir /usr/share/openldap/schema
%description
@@ -131,6 +134,7 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{schemadir},%{_sysconfdir}/%{name}} \
+ $RPM_BUILD_ROOT%{cups_serverbin}/backend \
$RPM_BUILD_ROOT/var/lib/%{name}
python setup.py install \
@@ -143,6 +147,10 @@
install conf/pykota.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/pykota.conf
install conf/pykotadmin.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/pykotadmin.conf
+ln -s %{_datadir}/%{name}/cupspykota $RPM_BUILD_ROOT%{cups_serverbin}/backend/cupspykota
+
+sqlite3 $RPM_BUILD_ROOT/var/lib/%{name}/pykota.db <initscripts/sqlite/pykota.sqlite
+
rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc/%{name},%{name}/{conf,ldap,mysql,postgresql,sqlite}}
%find_lang %{name}
@@ -194,6 +202,7 @@
%dir %{_datadir}/%{name}
%attr(755,root,root) %{_datadir}/%{name}/*.sh
%attr(755,root,root) %{_datadir}/%{name}/*.py
+# TODO: verify if it shouldn't be 700 as doc says
%attr(755,root,root) %{_datadir}/%{name}/cupspykota
%{_datadir}/%{name}/*.pjl
%{_datadir}/%{name}/*.ps
@@ -201,6 +210,8 @@
%dir %{_datadir}/%{name}/cgi-bin
%attr(755,root,root) %{_datadir}/%{name}/cgi-bin/*.cgi
+%attr(755,root,root) %{cups_serverbin}/backend/cupspykota
+
%{_mandir}/man?/*
%lang(el) %{_mandir}/el/man?/*
%lang(de) %{_mandir}/de/man?/*
@@ -234,7 +245,8 @@
%defattr(644,root,root,755)
%doc initscripts/sqlite/*
%{py_sitescriptdir}/%{name}/storages/sqlite*.py[co]
-/var/lib/%{name}
+%attr(750,pykota,pykota) /var/lib/%{name}
+%attr(660,pykota,pykota) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/pykota.db
%files -n openldap-schema-pykota
%defattr(644,root,root,755)
@@ -247,6 +259,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.24 2007-12-09 00:12:49 baggins
+- R cups, BR sqlite3
+- install cups integration (pykota works only with cups)
+- install clean sqlite3 db with sqlite backend (config noreplace)
+
Revision 1.23 2007-12-08 23:58:37 baggins
- use /etc/pykota as user home (as per docs)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pykota.spec?r1=1.23&r2=1.24&f=u
More information about the pld-cvs-commit
mailing list