]> git.pld-linux.org Git - packages/log4cpp.git/blob - log4cpp.spec
- updated to 1.1.1 (note: new soname)
[packages/log4cpp.git] / log4cpp.spec
1 Summary:        Library for flexible logging
2 Summary(pl.UTF-8):      Biblioteka do elastycznego logowania
3 Name:           log4cpp
4 Version:        1.1.1
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/log4cpp/%{name}-%{version}.tar.gz
9 # Source0-md5:  1e173df8ee97205f412ff84aa93b8fbe
10 Patch0:         %{name}-nolibs.patch
11 Patch1:         %{name}-lt.patch
12 URL:            http://log4cpp.sourceforge.net/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  doxygen
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtool >= 2:1.4d
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
25 %description -l pl.UTF-8
26 Log4cpp to biblioteka klas C++ do elastycznego logowania do plików,
27 sysloga, IDSA i innych miejsc. Jest tworzona na podstawie biblioteki
28 Javy Log4j i pozostaje jak najbliżej jej API w granicach rozsądku.
29
30 %package devel
31 Summary:        Header files for log4cpp
32 Summary(pl.UTF-8):      Pliki nagłówkowe log4cpp
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Requires:       libstdc++-devel
36
37 %description devel
38 This package contains the development and header files for log4cpp.
39
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe biblioteki log4cpp.
42
43 %package static
44 Summary:        Static log4cpp library
45 Summary(pl.UTF-8):      Statyczna biblioteka log4cpp
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 This package contains static log4cpp library.
51
52 %description static -l pl.UTF-8
53 Ten pakiet zawiera statyczną bibliotekę log4cpp.
54
55 %prep
56 %setup -q -n %{name}
57 %patch0 -p1
58 %patch1 -p1
59
60 %build
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 \
75         docdir=$RPM_BUILD_ROOT/removeit \
76         mandir=$RPM_BUILD_ROOT%{_mandir}
77
78 rm -rf $RPM_BUILD_ROOT/removeit
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog NEWS README THANKS TODO
89 %attr(755,root,root) %{_libdir}/liblog4cpp.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/liblog4cpp.so.5
91
92 %files devel
93 %defattr(644,root,root,755)
94 %doc doc/html/default.css doc/html/sflogo.png doc/html/index.html doc/html/api
95 %attr(755,root,root) %{_bindir}/log4cpp-config
96 %attr(755,root,root) %{_libdir}/liblog4cpp.so
97 %{_libdir}/liblog4cpp.la
98 %{_includedir}/log4cpp
99 %{_mandir}/man3/log4cpp.3*
100 %{_mandir}/man3/log4cpp::*.3*
101 %{_aclocaldir}/log4cpp.m4
102 %{_pkgconfigdir}/log4cpp.pc
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/liblog4cpp.a
This page took 0.073564 seconds and 3 git commands to generate.