]>
Commit | Line | Data |
---|---|---|
23fc5692 JB |
1 | Summary: Library for access to the system servicelog |
2 | Summary(pl.UTF-8): Biblioteka dostępu do logu zdarzeń serwisowych w systemie | |
3 | Name: libservicelog | |
4 | Version: 1.1.11 | |
5 | Release: 1 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 7a65aa1fd1b524f8878b256f1527ca9a | |
10 | Patch0: %{name}-sqlite3.patch | |
11 | Patch1: %{name}-link.patch | |
12 | Patch2: %{name}-install.patch | |
13 | URL: http://linux-diag.sourceforge.net/servicelog/ | |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake | |
16 | BuildRequires: bison | |
17 | BuildRequires: flex | |
18 | BuildRequires: librtas-devel | |
19 | BuildRequires: libtool | |
20 | BuildRequires: sqlite3-devel | |
21 | # requires ppc-specific librtas | |
22 | ExclusiveArch: ppc ppc64 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This package contains a library to create and maintain a database for | |
27 | storing events related to system service. This database allows for the | |
28 | logging of serviceable and informational events, and for the logging | |
29 | of service procedures that have been performed upon the system. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Ten pakiet zawiera bibliotekę tworzącą i utrzymującą bazę danych do | |
33 | przechowywania zdarzeń związanych z serwisowaniem systemu. Baza ta | |
34 | pozwala na logowanie zdarzeń serwisowych i informacyjnych oraz | |
35 | wykonanych w systemie procedur serwisowych. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for servicelog library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki servicelog | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: sqlite3-devel | |
43 | ||
44 | %description devel | |
45 | Header files for servicelog library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki servicelog. | |
49 | ||
50 | %package static | |
51 | Summary: Static servicelog library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka servicelog | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static servicelog library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka servicelog. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | %patch0 -p1 | |
65 | %patch1 -p1 | |
66 | %patch2 -p1 | |
67 | ||
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | %configure | |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | install -d $RPM_BUILD_ROOT/var/lib/servicelog | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | # obsoleted by pkgconfig | |
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libservicelog.la | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc AUTHORS ChangeLog NEWS README TODO | |
96 | %attr(755,root,root) %{_libdir}/libservicelog-1.1.so.*.*.* | |
97 | %ghost %{_libdir}/libservicelog-1.1.so.1 | |
98 | %dir /var/lib/servicelog | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %doc STATUS | |
103 | %attr(755,root,root) %{_libdir}/libservicelog.so | |
104 | %{_includedir}/servicelog-1 | |
105 | %{_pkgconfigdir}/servicelog-1.pc | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libservicelog.a |