Name: log4net BuildRequires: unzip BuildRequires: nant URL: http://logging.apache.org/log4net/ License: ASL 2.0 Group: Development/Other Version: 1.2.10 Release: %mkrel 6 Summary: A .NET framework for logging Source: http://archive.apache.org/dist/incubator/%{name}/%{version}/incubating-%{name}-%{version}.zip Source1: log4net.pc Patch0: log4net-1.2.10-no-warnaserror.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch %description 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 framework to the .NET runtime %package devel Summary: A .NET framework for logging Group: Development/Other Requires: %{name} = %{version} Requires: pkgconfig %description devel 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 framework to the .NET runtime %prep %setup -q %apply_patches sed -i 's/\r//' NOTICE.txt sed -i 's/\r//' README.txt sed -i 's/\r//' LICENSE.txt # Remove prebuilt dll files rm -rf bin/ %build %if %mdvver >= 201100 cp /etc/pki/mono/mono.snk log4net.snk %else sn -k log4net.snk %endif # ASF recommend using nant to build log4net nant -buildfile:log4net.build compile-all %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_datadir}/pkgconfig cp %{S:1} %{buildroot}/%{_datadir}/pkgconfig mkdir -p %{buildroot}/%{_prefix}/lib/mono/gac/ gacutil -i bin/mono/2.0/release/log4net.dll -f -package log4net -root %{buildroot}/%{_prefix}/lib %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_prefix}/lib/mono/gac/log4net %{_prefix}/lib/mono/log4net %doc LICENSE.txt NOTICE.txt README.txt %files devel %defattr(-,root,root,-) %{_datadir}/pkgconfig/log4net.pc %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.2.10-6.mga3 + Revision: 358927 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Jan 20 2012 steletch <steletch> 1.2.10-5.mga2 + Revision: 198849 - imported package log4net