]>
Commit | Line | Data |
---|---|---|
a8383378 | 1 | Summary: Library for flexible logging |
f23f996f | 2 | Summary(pl.UTF-8): Biblioteka do elastycznego logowania |
a8383378 | 3 | Name: log4cpp |
d89ca76b | 4 | Version: 1.1.1 |
56962506 | 5 | Release: 1 |
d89ca76b | 6 | License: LGPL v2.1+ |
42068287 | 7 | Group: Libraries |
04d12e65 | 8 | Source0: http://downloads.sourceforge.net/log4cpp/%{name}-%{version}.tar.gz |
d89ca76b | 9 | # Source0-md5: 1e173df8ee97205f412ff84aa93b8fbe |
56962506 | 10 | Patch0: %{name}-nolibs.patch |
d89ca76b | 11 | Patch1: %{name}-lt.patch |
d17d1cd4 | 12 | URL: http://log4cpp.sourceforge.net/ |
42068287 | 13 | BuildRequires: autoconf >= 2.50 |
a8383378 | 14 | BuildRequires: automake |
15 | BuildRequires: doxygen | |
caf1a6eb | 16 | BuildRequires: libstdc++-devel |
42068287 | 17 | BuildRequires: libtool >= 2:1.4d |
a8383378 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Log4cpp is library of C++ classes for flexible logging to files, | |
22 | syslog, IDSA and other destinations. It is modeled after the Log4j | |
23 | Java library, staying as close to their API as is reasonable. | |
24 | ||
2f7008b8 JR |
25 | %description -l pl.UTF-8 |
26 | Log4cpp to biblioteka klas C++ do elastycznego logowania do plików, | |
caf1a6eb | 27 | sysloga, IDSA i innych miejsc. Jest tworzona na podstawie biblioteki |
2f7008b8 | 28 | Javy Log4j i pozostaje jak najbliżej jej API w granicach rozsądku. |
caf1a6eb | 29 | |
a8383378 | 30 | %package devel |
31 | Summary: Header files for log4cpp | |
f23f996f | 32 | Summary(pl.UTF-8): Pliki nagłówkowe log4cpp |
a8383378 | 33 | Group: Development/Libraries |
e7376391 | 34 | Requires: %{name} = %{version}-%{release} |
da42a490 | 35 | Requires: libstdc++-devel |
a8383378 | 36 | |
37 | %description devel | |
caf1a6eb JB |
38 | This package contains the development and header files for log4cpp. |
39 | ||
2f7008b8 JR |
40 | %description devel -l pl.UTF-8 |
41 | Ten pakiet zawiera pliki nagłówkowe biblioteki log4cpp. | |
a8383378 | 42 | |
43 | %package static | |
caf1a6eb | 44 | Summary: Static log4cpp library |
f23f996f | 45 | Summary(pl.UTF-8): Statyczna biblioteka log4cpp |
a8383378 | 46 | Group: Development/Libraries |
e7376391 | 47 | Requires: %{name}-devel = %{version}-%{release} |
a8383378 | 48 | |
49 | %description static | |
caf1a6eb JB |
50 | This package contains static log4cpp library. |
51 | ||
2f7008b8 JR |
52 | %description static -l pl.UTF-8 |
53 | Ten pakiet zawiera statyczną bibliotekę log4cpp. | |
a8383378 | 54 | |
a8383378 | 55 | %prep |
d89ca76b | 56 | %setup -q -n %{name} |
42068287 | 57 | %patch0 -p1 |
b744b0f4 | 58 | %patch1 -p1 |
a8383378 | 59 | |
60 | %build | |
a8383378 | 61 | %{__libtoolize} |
62 | %{__aclocal} -I m4 | |
63 | %{__autoconf} | |
64 | %{__autoheader} | |
65 | %{__automake} | |
66 | %configure \ | |
67 | --enable-doxygen | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT \ | |
87ca01dc | 75 | docdir=$RPM_BUILD_ROOT/removeit \ |
76 | mandir=$RPM_BUILD_ROOT%{_mandir} | |
049291df | 77 | |
87ca01dc | 78 | rm -rf $RPM_BUILD_ROOT/removeit |
a8383378 | 79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
caf1a6eb JB |
83 | %post -p /sbin/ldconfig |
84 | %postun -p /sbin/ldconfig | |
a8383378 | 85 | |
86 | %files | |
87 | %defattr(644,root,root,755) | |
5e1274bf | 88 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
ebbfe820 | 89 | %attr(755,root,root) %{_libdir}/liblog4cpp.so.*.*.* |
d89ca76b | 90 | %attr(755,root,root) %ghost %{_libdir}/liblog4cpp.so.5 |
a8383378 | 91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
ebbfe820 | 94 | %doc doc/html/default.css doc/html/sflogo.png doc/html/index.html doc/html/api |
a8383378 | 95 | %attr(755,root,root) %{_bindir}/log4cpp-config |
ebbfe820 | 96 | %attr(755,root,root) %{_libdir}/liblog4cpp.so |
97 | %{_libdir}/liblog4cpp.la | |
98 | %{_includedir}/log4cpp | |
b744b0f4 JB |
99 | %{_mandir}/man3/log4cpp.3* |
100 | %{_mandir}/man3/log4cpp::*.3* | |
ebbfe820 | 101 | %{_aclocaldir}/log4cpp.m4 |
5e1274bf | 102 | %{_pkgconfigdir}/log4cpp.pc |
a8383378 | 103 | |
a8383378 | 104 | %files static |
105 | %defattr(644,root,root,755) | |
ebbfe820 | 106 | %{_libdir}/liblog4cpp.a |