log4cxx/log4cxx.spec

85 lines
2.6 KiB
RPMSpec
Raw Normal View History

Name: log4cxx
Version: 1.3.0
Release: 1mamba
Summary: A logging framework for C++ patterned after Apache log4j
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://logging.apache.org/log4cxx/1.3.0/
Source: https://archive.apache.org/dist/logging/log4cxx/%{version}/apache-log4cxx-%{version}.tar.gz
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libapr-devel
BuildRequires: libaprutil-devel
BuildRequires: libexpat-devel
BuildRequires: libfmt-devel
BuildRequires: libgcc
BuildRequires: libopenldap-devel
BuildRequires: libstdc++6-devel
BuildRequires: libuuid-devel
BuildRequires: libxcrypt-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Apache Log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR.
%package -n lib%{name}
Group: System/Libraries
Summary: A logging framework for C++ patterned after Apache log4j
%description -n lib%{name}
Apache Log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n apache-log4cxx-%{version}
%build
%cmake
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/liblog4cxx.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/log4cxx
%{_includedir}/log4cxx/*
%{_libdir}/liblog4cxx.so
%dir %{_libdir}/cmake/log4cxx
%{_libdir}/cmake/log4cxx/log4cxx*.cmake
%{_libdir}/pkgconfig/liblog4cxx.pc
%doc README.md
%changelog
* Fri Oct 18 2024 Automatic Build System <autodist@openmamba.org> 1.3.0-1mamba
- automatic version update by autodist
* Tue Jul 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- package created using the webbuild interface