2014-04-25 09:37:10 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package log4cpp
|
|
|
|
|
#
|
2016-06-30 15:16:07 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-04-25 09:37:10 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2015-08-22 16:19:06 +00:00
|
|
|
|
2014-04-25 09:37:10 +00:00
|
|
|
Name: log4cpp
|
2016-06-30 15:16:07 +00:00
|
|
|
Version: 1.1.2rc2
|
2014-04-25 09:37:10 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Log for C++
|
2015-08-22 16:19:06 +00:00
|
|
|
License: LGPL-2.1
|
2014-04-25 09:37:10 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2015-08-22 16:19:06 +00:00
|
|
|
Url: http://log4cpp.sourceforge.net/
|
|
|
|
|
Source: http://jaist.dl.sourceforge.net/project/log4cpp/log4cpp-1.1.x%{20}%{28new}%{29}/log4cpp-1.1/%{name}-%{version}.tar.gz
|
2014-04-25 09:37:10 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: pkg-config
|
2015-08-22 16:19:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-04-25 09:37:10 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Log for C++ is a library of classes for flexible logging to files, syslog,
|
|
|
|
|
and other destinations. It is modeled after the Log for Java library and
|
|
|
|
|
stays as close to its API as is reasonable.
|
|
|
|
|
|
|
|
|
|
%package -n liblog4cpp5
|
|
|
|
|
Summary: Logging for C++
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
|
|
%description -n liblog4cpp5
|
|
|
|
|
Logging facilities providing library.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development tools for Log for C++
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: liblog4cpp5 = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains the static libraries and header files
|
|
|
|
|
needed for development with %{name}.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: HTML formatted API documention for Log for C++
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
The %{name}-doc package contains HTML formatted API documention generated by
|
|
|
|
|
the popular doxygen documentation generation tool.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --enable-doxygen
|
2015-08-22 16:19:06 +00:00
|
|
|
make %{?_smp_mflags}
|
2014-04-25 09:37:10 +00:00
|
|
|
|
|
|
|
|
%install
|
2015-08-22 16:19:06 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} mandir=%{buildroot}/%{_mandir} docdir=%{buildroot}/%{_docdir}/%{name}
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-06-30 15:16:07 +00:00
|
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
2014-04-25 09:37:10 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
%fdupes -s %{buildroot}/%{_docdir}/%{name}/api
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%post -n liblog4cpp5 -p /sbin/ldconfig
|
|
|
|
|
%postun -n liblog4cpp5 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n liblog4cpp5
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS COPYING NEWS README THANKS ChangeLog
|
2016-06-30 15:16:07 +00:00
|
|
|
%{_libdir}/liblog4cpp.so.5
|
|
|
|
|
%{_libdir}/liblog4cpp.so.5.0.6
|
2014-04-25 09:37:10 +00:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2016-06-30 15:16:07 +00:00
|
|
|
%{_includedir}/log4cpp
|
2014-04-25 09:37:10 +00:00
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
%{_bindir}/log4cpp-config
|
2016-06-30 15:16:07 +00:00
|
|
|
%{_libdir}/liblog4cpp.so
|
2014-04-25 09:37:10 +00:00
|
|
|
%{_libdir}/pkgconfig/log4cpp.pc
|
|
|
|
|
# WTF?
|
|
|
|
|
%dir %{_datadir}/aclocal
|
2016-06-30 15:16:07 +00:00
|
|
|
%attr(644,root,root) %{_datadir}/aclocal/log4cpp.m4
|
2014-04-25 09:37:10 +00:00
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|