log4cplus/log4cplus.spec

55 lines
1.2 KiB
RPMSpec
Raw Normal View History

2020-05-16 16:16:44 +08:00
Name: log4cplus
Version: 2.0.5
2020-08-11 09:54:58 +08:00
Release: 2
2020-05-16 16:16:44 +08:00
Summary: simple logging API by using C++
License: BSD
URL: https://sourceforge.net/projects/log4cplus
Source0: https://github.com/google/leveldb/archive/%{name}-%{version}.tar.gz
BuildRequires: cmake
%description
log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.
2020-08-11 09:54:58 +08:00
%package devel
Summary: log4cplus headers, static libraries
Requires: %name = %version
%description devel
log4cplus is a simple to use C++ logging API providing thread-safe,
flexible, and arbitrarily granular control over log management and
configuration. It is modeled after the Java log4j API.
2020-05-16 16:16:44 +08:00
%prep
%setup -q -n %{name}-%{version}/
%build
2020-08-11 09:54:58 +08:00
export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
%configure
make %{?_smp_mflags}
2020-05-16 16:16:44 +08:00
%install
2020-08-11 09:54:58 +08:00
rm -rf $RPM_BUILD_ROOT
2020-05-16 16:16:44 +08:00
%make_install
2020-08-11 09:54:58 +08:00
%clean
rm -rf $RPM_BUILD_ROOT
2020-05-16 16:16:44 +08:00
%files
%license LICENSE
2020-08-11 09:54:58 +08:00
%_libdir/lib*.so*
%_libdir/*.la
%files devel
2020-05-16 16:16:44 +08:00
%{_includedir}/*
2020-08-11 09:54:58 +08:00
%{_libdir}/pkgconfig/log4cplus.pc
%{_libdir}/lib*.so
2020-05-16 16:16:44 +08:00
%changelog
2020-08-11 09:54:58 +08:00
* Tue Aug 11 2020 douyan <douyan@kylinos.cn> - 2.0.5-2
- add devel package
2020-05-16 16:16:44 +08:00
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init