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