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:
committed by
Git OBS Bridge
parent
6ae4bed114
commit
774b584b6c
15
log4cxx.changes
Normal file
15
log4cxx.changes
Normal 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
|
||||||
|
|
88
log4cxx.spec
88
log4cxx.spec
@@ -1,27 +1,45 @@
|
|||||||
# 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
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))
|
|
||||||
|
|
||||||
Name: log4cxx
|
Name: log4cxx
|
||||||
Version: 0.10.0.svn20080724
|
Version: 0.10.0.svn20080724
|
||||||
Release: 1.0
|
%define soname 10
|
||||||
License: Apache License v2.0
|
Release: 1.0
|
||||||
Group: Development/Libraries/C++
|
License: Apache License v2.0
|
||||||
Url: http://logging.apache.org/log4cxx/index.html
|
|
||||||
Source: apache-log4cxx-%{version}.tar.bz2
|
|
||||||
Patch0: %{name}-fix_duplicate_entries.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: doxygen gcc-c++ graphviz libapr1-devel libapr-util1-devel unixODBC-devel
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1030
|
|
||||||
BuildRequires: libesmtp-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: openldap2-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Summary: Log4j like C++ Logging Library
|
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
|
||||||
|
%if 0%{?sles_version} > 10
|
||||||
|
BuildRequires: libesmtp-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: openldap2-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Log4cxx is a port to C++ of the log4j logging library.
|
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
|
* Java like objects with dynamic cast and instanciation. Custom objects can
|
||||||
be configured through the DOMConfigurator and PropertyConfigurator classes
|
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}
|
%package -n liblog4cxx%{soname}
|
||||||
Group: System/Libraries
|
Summary: Log4j like C++ Logging Library
|
||||||
PreReq: glibc
|
Group: System/Libraries
|
||||||
Summary: Log4j like C++ Logging Library
|
Requires(pre): glibc
|
||||||
|
|
||||||
%description -n liblog4cxx%{soname}
|
%description -n liblog4cxx%{soname}
|
||||||
Log4cxx is a port to C++ of the log4j logging library.
|
Log4cxx is a port to C++ of the log4j logging library.
|
||||||
|
|
||||||
%package -n liblog4cxx-devel
|
%package -n liblog4cxx-devel
|
||||||
Group: Development/Libraries/C++
|
|
||||||
Requires: liblog4cxx%{soname} = %{version}
|
|
||||||
Summary: Log4j like C++ Logging Library
|
Summary: Log4j like C++ Logging Library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: liblog4cxx%{soname} = %{version}
|
||||||
|
|
||||||
%description -n liblog4cxx-devel
|
%description -n liblog4cxx-devel
|
||||||
Log4cxx is a port to C++ of the log4j logging library.
|
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-wchar_t \
|
||||||
--enable-html-docs \
|
--enable-html-docs \
|
||||||
--enable-dot \
|
--enable-dot \
|
||||||
%if 0%{?suse_version} > 1030
|
%if 0%{?sles_version} > 10
|
||||||
--with-SMTP=libesmtp \
|
--with-SMTP=libesmtp \
|
||||||
%endif
|
%endif
|
||||||
--enable-doxygen
|
--enable-doxygen
|
||||||
|
|
||||||
%__make %{?jobs:-j%jobs}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
find %{buildroot}%{_libdir} -name *.la -exec rm {} \;
|
find %{buildroot}%{_libdir} -name *.la -exec rm {} \;
|
||||||
%__mkdir_p %{buildroot}%{_docdir}/liblog4cxx
|
mkdir -p %{buildroot}%{_docdir}/liblog4cxx
|
||||||
%__mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx
|
mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx
|
||||||
|
|
||||||
%post -n liblog4cxx%{soname} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
%post -n liblog4cxx%{soname} -p /sbin/ldconfig
|
||||||
%postun -n liblog4cxx%{soname} -p /sbin/ldconfig
|
%postun -n liblog4cxx%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
test %{buildroot} != "/" && rm -rf %{buildroot}
|
||||||
|
|
||||||
%files -n liblog4cxx%{soname}
|
%files -n liblog4cxx%{soname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@@ -135,5 +146,4 @@ test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
|||||||
%{_docdir}/liblog4cxx
|
%{_docdir}/liblog4cxx
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Apr 22 2009 bitshuffler #suse@irc.freenode.org
|
|
||||||
- Fixed broken builds
|
|
||||||
|
Reference in New Issue
Block a user