LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sharpziplib.spec of Package sharpziplib (Project Mono:Community)

#
# spec file for package sharpziplib
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           sharpziplib
Version:        0.86
Release:        1
License:        GPL-2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  unzip
BuildRequires:  mono-devel
BuildRequires:  nant
BuildRequires:  pkg-config
BuildRequires:  dos2unix
Provides:       mono-ziplib
Provides:       mono-sharpziplib
BuildArch:      noarch
Url:            http://www.icsharpcode.net/opensource/sharpziplib/
Source0:        SharpZipLib_0860_SourceSamples.zip
Source1:        sharpziplib.pc
Group:          Development/Libraries/Other
Summary:        C# Zip, GZip, Tar and BZip2 library for .NET

%description
SharpZipLib, formerly NZipLib is a Zip, GZip, Tar and BZip2 library written entirely
in C# for the .NET platform. It is implemented as an assembly (installable in the GAC),
and thus can easily be incorporated into other projects (in any .NET language).

%package devel
Summary:        C# Zip, GZip, Tar and BZip2 library for .NET
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}

%description devel
SharpZipLib, formerly NZipLib is a Zip, GZip, Tar and BZip2 library written entirely
in C# for the .NET platform. It is implemented as an assembly (installable in the GAC),
and thus can easily be incorporated into other projects (in any .NET language).

%prep
%setup -q -n SrcSamples
dos2unix doc/*.txt
dos2unix doc/specification/*.txt

%build
nant build-net-2.0

%install
mkdir -p %{buildroot}/%{_datadir}/pkgconfig
cp %{SOURCE1} %{buildroot}/%{_datadir}/pkgconfig

mkdir -p %{buildroot}%{_prefix}/lib/mono/gac/
gacutil -i bin/ICSharpCode.SharpZipLib.dll -f -package %{name} -root %{buildroot}%{_prefix}/lib

%files
%defattr(-,root,root)
%dir %{_prefix}/lib/mono/%{name}
%{_prefix}/lib/mono/%{name}/ICSharpCode.SharpZipLib.dll
%{_prefix}/lib/mono/gac/*

%files devel
%defattr(-,root,root,-)
%doc doc/*
%{_datadir}/pkgconfig/sharpziplib.pc

%changelog