SHA256
8
0
forked from pool/log4cxx

Accepting request 100911 from home:TheBlackCat:branches:devel:libraries:c_c++

- Fixed building on openSUSE:Factory
- Cleaned up spec file formatting
- Moved to .changes file
- Added pkg-config buildrequires (fix for RMPLINT warning)
- Changed license naming to conform to SPDX convention (fix for RMPLINT warning)
- Fixed group (fix for RMPLINT warning)

OBS-URL: https://build.opensuse.org/request/show/100911
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/log4cxx?expand=0&rev=4
This commit is contained in:
Ismail Dönmez
2012-01-20 13:44:54 +00:00
committed by Git OBS Bridge
parent 6ae4bed114
commit 774b584b6c
2 changed files with 64 additions and 39 deletions

15
log4cxx.changes Normal file
View File

@@ -0,0 +1,15 @@
-------------------------------------------------------------------
Fri Jan 20 13:13:40 UTC 2012 - toddrme2178@gmail.com
- Fixed building on openSUSE:Factory
- Cleaned up spec file formatting
- Moved to .changes file
- Added pkg-config buildrequires (fix for RMPLINT warning)
- Changed license naming to conform to SPDX convention (fix for RMPLINT warning)
- Fixed group (fix for RMPLINT warning)
-------------------------------------------------------------------
Wed Apr 22 00:00:00 UTC 2009 - bitshuffler #suse@irc.freenode.org
- Fixed broken builds

View File

@@ -1,28 +1,46 @@
# norootforbuild
#
# spec file for package log4cxx
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
%define soname 10
%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: log4cxx
Version: 0.10.0.svn20080724
%define soname 10
Release: 1.0
License: Apache License v2.0
Group: Development/Libraries/C++
Summary: Log4j like C++ Logging Library
Url: http://logging.apache.org/log4cxx/index.html
Group: Development/Libraries/C and C++
Source: apache-log4cxx-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: %{name}-fix_duplicate_entries.patch
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libapr1-devel
BuildRequires: libapr-util1-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: unixODBC-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen gcc-c++ graphviz libapr1-devel libapr-util1-devel unixODBC-devel
%if 0%{?suse_version} > 1030
%if 0%{?sles_version} > 10
BuildRequires: libesmtp-devel
%else
BuildRequires: openldap2-devel
%endif
Summary: Log4j like C++ Logging Library
%description
Log4cxx is a port to C++ of the log4j logging library.
@@ -67,24 +85,18 @@ BasicConfigurator, DOMConfigurator, PropertyConfigurator
* Java like objects with dynamic cast and instanciation. Custom objects can
be configured through the DOMConfigurator and PropertyConfigurator classes
Supported OS:
* Linux (tested on Linux Mandrake 10.0, Debian GNU/Linux 3.1)
* FreeBSD
* Windows (MSVC 6.0, MSVC 7.1 or Cygwin)
* Other POSIX OS should be supported but were not tested
%package -n liblog4cxx%{soname}
Group: System/Libraries
PreReq: glibc
Summary: Log4j like C++ Logging Library
Group: System/Libraries
Requires(pre): glibc
%description -n liblog4cxx%{soname}
Log4cxx is a port to C++ of the log4j logging library.
%package -n liblog4cxx-devel
Group: Development/Libraries/C++
Requires: liblog4cxx%{soname} = %{version}
Summary: Log4j like C++ Logging Library
Group: Development/Libraries/C and C++
Requires: liblog4cxx%{soname} = %{version}
%description -n liblog4cxx-devel
Log4cxx is a port to C++ of the log4j logging library.
@@ -103,25 +115,24 @@ Log4cxx is a port to C++ of the log4j logging library.
--enable-wchar_t \
--enable-html-docs \
--enable-dot \
%if 0%{?suse_version} > 1030
%if 0%{?sles_version} > 10
--with-SMTP=libesmtp \
%endif
--enable-doxygen
%__make %{?jobs:-j%jobs}
make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot}%{_libdir} -name *.la -exec rm {} \;
%__mkdir_p %{buildroot}%{_docdir}/liblog4cxx
%__mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx
mkdir -p %{buildroot}%{_docdir}/liblog4cxx
mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx
%post -n liblog4cxx%{soname} -p /sbin/ldconfig
%postun -n liblog4cxx%{soname} -p /sbin/ldconfig
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
test %{buildroot} != "/" && rm -rf %{buildroot}
%files -n liblog4cxx%{soname}
%defattr(-,root,root)
@@ -135,5 +146,4 @@ test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%{_docdir}/liblog4cxx
%changelog
* Wed Apr 22 2009 bitshuffler #suse@irc.freenode.org
- Fixed broken builds