]>
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 | |
db784a41 | 4 | Version: 1.1.19 |
23fc5692 JB |
5 | Release: 1 |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
db784a41 JB |
8 | #Source0Download: https://github.com/power-ras/libservicelog/tags |
9 | Source0: https://github.com/power-ras/libservicelog/archive/v%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 0b2207b4451ac67c01ec1aa835ead999 | |
76bac940 JB |
11 | Patch0: %{name}-link.patch |
12 | Patch1: %{name}-install.patch | |
db784a41 JB |
13 | URL: https://github.com/power-ras/libservicelog |
14 | BuildRequires: autoconf >= 2.69 | |
23fc5692 JB |
15 | BuildRequires: automake |
16 | BuildRequires: bison | |
17 | BuildRequires: flex | |
18 | BuildRequires: librtas-devel | |
19 | BuildRequires: libtool | |
7ce5edad | 20 | BuildRequires: sqlite3-devel >= 3 |
23fc5692 JB |
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 | |
23fc5692 JB |
66 | |
67 | %build | |
68 | %{__libtoolize} | |
69 | %{__aclocal} | |
70 | %{__autoconf} | |
71 | %{__autoheader} | |
72 | %{__automake} | |
73 | %configure | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | install -d $RPM_BUILD_ROOT/var/lib/servicelog | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | # obsoleted by pkgconfig | |
84 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libservicelog.la | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
7ce5edad | 94 | %doc AUTHORS ChangeLog README |
23fc5692 JB |
95 | %attr(755,root,root) %{_libdir}/libservicelog-1.1.so.*.*.* |
96 | %ghost %{_libdir}/libservicelog-1.1.so.1 | |
97 | %dir /var/lib/servicelog | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
23fc5692 JB |
101 | %attr(755,root,root) %{_libdir}/libservicelog.so |
102 | %{_includedir}/servicelog-1 | |
103 | %{_pkgconfigdir}/servicelog-1.pc | |
104 | ||
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libservicelog.a |