Accepting request 582853 from GNOME:Factory

spec-cleaner (forwarded request 581286 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/582853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/log4net?expand=0&rev=18
This commit is contained in:
Dominique Leuenberger 2018-03-09 09:40:25 +00:00 committed by Git OBS Bridge
parent 4b35ba3a91
commit 6b15ed4442
2 changed files with 21 additions and 46 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:37:03 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 1 12:45:58 UTC 2013 - dimstar@opensuse.org Fri Mar 1 12:45:58 UTC 2013 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package log4net # spec file for package log4net
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -14,30 +14,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# icecream 0
Name: log4net Name: log4net
BuildRequires: mono-basic
BuildRequires: mono-data-sqlite
BuildRequires: mono-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
Url: http://logging.apache.org/log4net/
%define prefix /usr
%define sysconfdir /etc
#Requires: mono-core >= 1.1.7.7
#Requires: mono-data >= 1.1.7.7
#Requires: mono-web >= 1.1.7.7
Version: 1.2.10 Version: 1.2.10
Release: 0 Release: 0
Summary: A .NET framework for logging Summary: A .NET framework for logging
License: Apache-2.0 License: Apache-2.0
Group: System/Libraries Group: System/Libraries
URL: http://logging.apache.org/log4net/
Source: incubating-log4net-1.2.10.zip Source: incubating-log4net-1.2.10.zip
Source1: log4net.key Source1: log4net.key
Source2: log4net.pc Source2: log4net.pc
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: mono-basic
BuildRequires: mono-data-sqlite
BuildRequires: mono-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildArch: noarch BuildArch: noarch
#============================================================================= #=============================================================================
@ -46,33 +39,15 @@ log4net is a tool to help the programmer output log statements to a
variety of output targets. log4net is a port of the excellent log4j variety of output targets. log4net is a port of the excellent log4j
framework to the .NET runtime framework to the .NET runtime
Authors:
--------
Nicko Cadell
Niall Daley
Gert Driesen
Ron Grabowski
Julian Biddle
Daniel Cazzulino
Aspi Havewala
Rick Hobbs
Lance Nehring
Angelika Schnagl
Edward Smit
Douglas de la Torre
Thomas Voss
%prep %prep
%setup -c -n %{name}-%{version} %setup -q -c
#============================================================================= #=============================================================================
%build %build
export LC_CTYPE=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8
cd log4net-%{version} cd log4net-%{version}
mcs -out:../log4net.dll \ mcs -out:../log4net.dll \
-keyfile:%{S:1} \ -keyfile:%{SOURCE1} \
/target:library \ /target:library \
/r:System.dll \ /r:System.dll \
/r:System.Data.dll \ /r:System.Data.dll \
@ -283,20 +258,15 @@ mcs -out:../log4net.dll \
#============================================================================= #=============================================================================
%install %install
%{__rm} -rf $RPM_BUILD_ROOT mkdir -p %{buildroot}/%{_datadir}/pkgconfig
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/pkgconfig cp %{SOURCE2} %{buildroot}/%{_datadir}/pkgconfig
cp %{S:2} $RPM_BUILD_ROOT/%{prefix}/share/pkgconfig gacutil -package log4net -gacdir %{_prefix}/lib -root %{buildroot}%{_prefix}/lib -i log4net.dll > /dev/null
gacutil -package log4net -gacdir /usr/lib -root ${RPM_BUILD_ROOT}/usr/lib -i log4net.dll > /dev/null
#=============================================================================
%clean
%{__rm} -rf $RPM_BUILD_ROOT
#============================================================================= #=============================================================================
%files %files
%defattr(755,root,root) %defattr(755,root,root)
%{prefix}/share/pkgconfig/log4net.pc %{_datadir}/pkgconfig/log4net.pc
%{prefix}/lib/mono/gac %{_prefix}/lib/mono/gac
%{prefix}/lib/mono/log4net %{_prefix}/lib/mono/log4net
%changelog %changelog