]> git.pld-linux.org Git - packages/log4cxx.git/blame - log4cxx.spec
- obsolete log4cxx-static
[packages/log4cxx.git] / log4cxx.spec
CommitLineData
885c52f2 1# TODO: our libesmtp is incompatible
b7e3fe72 2# LOG4CXX_QT_SUPPORT
12cd7d45 3Summary: Log4cxx - a port to C++ of the log4j project
b081aded 4Summary(pl.UTF-8): Log4cxx - port projektu log4j dla C++
9eb0d9b9 5Name: log4cxx
3f19a639 6Version: 1.0.0
885c52f2 7Release: 2
61d4f696 8License: Apache v2.0
9eb0d9b9 9Group: Libraries
3f19a639
AM
10Source0: http://www.apache.org/dist/logging/log4cxx/%{version}/apache-%{name}-%{version}.tar.gz
11# Source0-md5: 2255f30cd968e2c1976081824e435bd5
9eb0d9b9 12URL: http://logging.apache.org/log4cxx/
b7e3fe72
JB
13BuildRequires: apr-devel >= 1
14BuildRequires: apr-util-devel >= 1
3f19a639 15BuildRequires: boost-devel
b7e3fe72
JB
16BuildRequires: cmake >= 3.13
17# for tests
18BuildRequires: expat-devel >= 1.95
19BuildRequires: libfmt-devel >= 7.1
20BuildRequires: libstdc++-devel >= 6:7
21BuildRequires: pkgconfig
22BuildRequires: rpmbuild(macros) >= 1.605
23BuildRequires: unixODBC-devel
9eb0d9b9 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
d4b912c0 27Log4cxx is C++ port of Log4j. Log4cxx attempts to mimic log4j usage as
9eb0d9b9 28much as the language will allow and to be compatible with log4j
29configuration and output formats.
30
97f33763
JR
31%description -l pl.UTF-8
32Log4cxx jest portem Log4j dla C++. Log4cxx próbuje naśladować
3f19a639
AM
33użytkowanie log4j tak bardzo na ile pozwala na to język oraz próbuje
34być kompatybilnym z plikami konfiguracyjnymi i formatami wyjściowymi
35log4j.
d4b912c0 36
9eb0d9b9 37%package devel
38Summary: Header files for log4cxx library
b081aded 39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki log4cxx
9eb0d9b9 40Group: Development/Libraries
12cd7d45 41Requires: %{name} = %{version}-%{release}
b7e3fe72
JB
42Requires: apr-devel >= 1
43Requires: apr-util-devel >= 1
44Requires: libstdc++-devel >= 6:7
006f5065 45Obsoletes: log4cxx-static < 1
9eb0d9b9 46
47%description devel
48This is the package containing the header files for log4cxx library.
49
97f33763
JR
50%description devel -l pl.UTF-8
51Ten 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
65rm -rf $RPM_BUILD_ROOT
b7e3fe72 66
3f19a639 67%{__make} -C build install \
9eb0d9b9 68 DESTDIR=$RPM_BUILD_ROOT
69
70%clean
71rm -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
This page took 0.262115 seconds and 4 git commands to generate.