]>
Commit | Line | Data |
---|---|---|
885c52f2 | 1 | # TODO: our libesmtp is incompatible |
b7e3fe72 | 2 | # LOG4CXX_QT_SUPPORT |
12cd7d45 | 3 | Summary: Log4cxx - a port to C++ of the log4j project |
b081aded | 4 | Summary(pl.UTF-8): Log4cxx - port projektu log4j dla C++ |
9eb0d9b9 | 5 | Name: log4cxx |
3f19a639 | 6 | Version: 1.0.0 |
885c52f2 | 7 | Release: 2 |
61d4f696 | 8 | License: Apache v2.0 |
9eb0d9b9 | 9 | Group: Libraries |
3f19a639 AM |
10 | Source0: http://www.apache.org/dist/logging/log4cxx/%{version}/apache-%{name}-%{version}.tar.gz |
11 | # Source0-md5: 2255f30cd968e2c1976081824e435bd5 | |
9eb0d9b9 | 12 | URL: http://logging.apache.org/log4cxx/ |
b7e3fe72 JB |
13 | BuildRequires: apr-devel >= 1 |
14 | BuildRequires: apr-util-devel >= 1 | |
3f19a639 | 15 | BuildRequires: boost-devel |
b7e3fe72 JB |
16 | BuildRequires: cmake >= 3.13 |
17 | # for tests | |
18 | BuildRequires: expat-devel >= 1.95 | |
19 | BuildRequires: libfmt-devel >= 7.1 | |
20 | BuildRequires: libstdc++-devel >= 6:7 | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: rpmbuild(macros) >= 1.605 | |
23 | BuildRequires: unixODBC-devel | |
9eb0d9b9 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
d4b912c0 | 27 | Log4cxx is C++ port of Log4j. Log4cxx attempts to mimic log4j usage as |
9eb0d9b9 | 28 | much as the language will allow and to be compatible with log4j |
29 | configuration and output formats. | |
30 | ||
97f33763 JR |
31 | %description -l pl.UTF-8 |
32 | Log4cxx jest portem Log4j dla C++. Log4cxx próbuje naśladować | |
3f19a639 AM |
33 | użytkowanie log4j tak bardzo na ile pozwala na to język oraz próbuje |
34 | być kompatybilnym z plikami konfiguracyjnymi i formatami wyjściowymi | |
35 | log4j. | |
d4b912c0 | 36 | |
9eb0d9b9 | 37 | %package devel |
38 | Summary: Header files for log4cxx library | |
b081aded | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki log4cxx |
9eb0d9b9 | 40 | Group: Development/Libraries |
12cd7d45 | 41 | Requires: %{name} = %{version}-%{release} |
b7e3fe72 JB |
42 | Requires: apr-devel >= 1 |
43 | Requires: apr-util-devel >= 1 | |
44 | Requires: libstdc++-devel >= 6:7 | |
006f5065 | 45 | Obsoletes: log4cxx-static < 1 |
9eb0d9b9 | 46 | |
47 | %description devel | |
48 | This is the package containing the header files for log4cxx library. | |
49 | ||
97f33763 JR |
50 | %description devel -l pl.UTF-8 |
51 | Ten pakiet zawiera pliki nagłówkowe biblioteki log4cxx. | |
9eb0d9b9 | 52 | |
9eb0d9b9 | 53 | %prep |
de4213a3 | 54 | %setup -q -n apache-%{name}-%{version} |
2c729fc0 | 55 | |
9eb0d9b9 | 56 | %build |
b7e3fe72 JB |
57 | %cmake -B build \ |
58 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
59 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
60 | -DHAS_LIBESMTP=OFF | |
61 | ||
62 | %{__make} -C build | |
9eb0d9b9 | 63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
b7e3fe72 | 66 | |
3f19a639 | 67 | %{__make} -C build install \ |
9eb0d9b9 | 68 | DESTDIR=$RPM_BUILD_ROOT |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
b7e3fe72 JB |
73 | %post -p /sbin/ldconfig |
74 | %postun -p /sbin/ldconfig | |
9eb0d9b9 | 75 | |
76 | %files | |
77 | %defattr(644,root,root,755) | |
57c55d87 | 78 | %doc KEYS LICENSE NOTICE |
9eb0d9b9 | 79 | %attr(755,root,root) %{_libdir}/liblog4cxx.so.*.*.* |
3f19a639 | 80 | %attr(755,root,root) %ghost %{_libdir}/liblog4cxx.so.15 |
9eb0d9b9 | 81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
9eb0d9b9 | 84 | %attr(755,root,root) %{_libdir}/liblog4cxx.so |
12cd7d45 | 85 | %{_includedir}/%{name} |
61d4f696 | 86 | %{_pkgconfigdir}/liblog4cxx.pc |
3f19a639 | 87 | %{_libdir}/cmake/log4cxx |