SPECS: csa.spec - pl, separated -libs,-devel,-static

qboosh qboosh at pld-linux.org
Sat Jun 25 23:24:04 CEST 2005


Author: qboosh                       Date: Sat Jun 25 21:24:04 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, separated -libs,-devel,-static

---- Files affected:
SPECS:
   csa.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/csa.spec
diff -u SPECS/csa.spec:1.1 SPECS/csa.spec:1.2
--- SPECS/csa.spec:1.1	Thu Jun 23 18:32:36 2005
+++ SPECS/csa.spec	Sat Jun 25 23:23:59 2005
@@ -1,21 +1,23 @@
 # $Revision$, $Date$
 #
 # TODO:
-# - %%files
-# - libs/devel/static subpackages
+# - %%files - FHS compliance (/var/csa is invalid)
 # 
+Summary:	System job accounting
+Summary(pl):	Rozliczanie zadań systemowych
 Name:		csa
 Version:	2.2.0
 Release:	0.1
-Summary:	System job accounting
+License:	GPL
+Group:		Applications/System
+# .src.rpm at ftp://oss.sgi.com/projects/csa/download/
 Source0:	%{name}-%{version}.tar.gz
 # Source0-md5:	8a0f4a052cd9a6a6ad7227fc0b750345
 URL:            http://oss.sgi.com/projects/csa/
-License:	GPL
-Group:		Applications/System
-BuildRequires:	automake
 BuildRequires:	autoconf
+BuildRequires:	automake
 BuildRequires:	libtool
+Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,8 +29,52 @@
 information and combines it by job identifier (jid) within system boot
 uptime periods.
 
+%description -l pl
+Linux Comprehensive System Accounting (CSA) to połączenie łaty na
+jądro Linuksa, ładowalnego modułu jądra csa oraz zbioru programów w C
+i skryptów powłoki. CSA dostarcza metody do gromadzenia danych o
+wykorzystaniu zasobów przez każdy proces, monitorowania wykorzystania
+dysku oraz pobierania opłat za konkretne konta. CSA pobiera te
+informacje rozrachunkowe dla każdego procesu i łączy je po
+identyfikatorze zadania (jid - job identifier) w ramach czasu
+działania systemu.
+
+%package libs
+Summary:	CSA library
+Summary(pl):	Biblioteka CSA
+Group:		Libraries
+
+%description libs
+CSA library.
+
+%description libs -l pl
+Biblioteka CSA.
+
+%package devel
+Summary:	Header files for CSA library
+Summary(pl):	Pliki nagłówkowe biblioteki CSA
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for CSA library.
+
+%description devel -l pl
+Pliki nagłówkowe biblioteki CSA.
+
+%package static
+Summary:	Static CSA library
+Summary(pl):	Statyczna biblioteka CSA
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static CSA library.
+
+%description static -l pl
+Statyczna biblioteka CSA.
+
 %prep
-rm -rf $RPM_BUILD_ROOT
 %setup -q
 
 %build
@@ -49,19 +95,16 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
 %files
-FIXME FIXME
 %defattr(644,root,root,755)
-%config %{_sysconfdir}/csa.conf
-%config %{_sysconfdir}/csa.holidays
+# COPYING contains additional notes
+%doc AUTHORS COPYING ChangeLog NEWS README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csa.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csa.holidays
 %attr(754,root,root) /etc/rc.d/init.d/csa
-%{_includedir}/csa.h
-%{_includedir}/csa_api.h
-%{_includedir}/csaacct.h
-%{_prefix}/lib/libcsa.la
-%attr(755,root,root) %{_prefix}/lib/libcsa.so
-%attr(755,root,root) %{_prefix}/lib/libcsa.so.1
-%attr(755,root,root) %{_prefix}/lib/libcsa.so.1.0.0
 %attr(755,root,root) %{_sbindir}/acctdisk
 %attr(755,root,root) %{_sbindir}/acctdusg
 %attr(755,root,root) %{_sbindir}/csaaddc
@@ -82,13 +125,13 @@
 %attr(755,root,root) %{_sbindir}/dodisk
 %attr(755,root,root) %{_sbindir}/lastlogin
 %attr(755,root,root) %{_sbindir}/nulladm
-%doc AUTHORS COPYING INSTALL ChangeLog NEWS README ABOUT-NLS
-%{_mandir}/*/*
-# Below here should be owned by csaacct
-%defattr(-,csaacct,csaacct)
 %attr(755,root,root) %{_sbindir}/csabuild
 %attr(755,root,root) %{_bindir}/csacom
 %attr(755,root,root) %{_bindir}/ja
+%{_mandir}/*/*
+# Below here should be owned by csaacct
+FIXME FIXME
+%defattr(-,csaacct,csaacct)
 /var/csa/nite/statefile
 %dir /var/csa
 %dir /var/csa/day
@@ -97,13 +140,30 @@
 %dir /var/csa/sum
 %dir /var/csa/work
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcsa.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcsa.so
+%{_libdir}/libcsa.la
+%{_includedir}/csa.h
+%{_includedir}/csa_api.h
+%{_includedir}/csaacct.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcsa.a
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/06/25 21:23:59  qboosh
+- pl, separated -libs,-devel,-static
+
 Revision 1.1  2005/06/23 16:32:36  arekm
 - raw; needs kernel patch  http://oss.sgi.com/archives/csa/2005-06/msg00000.html
-
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/csa.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list