File nini.spec of Package nini

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

Name:           nini
Version:        1.1.0
Release:        0
Summary:        An uncommonly powerful .NET configuration library
License:        MIT
Group:          System/Libraries
Source:         Nini-%{version}.zip
BuildRequires:  mono-devel
BuildRequires:  nant
BuildRequires:  unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Nini is an uncommonly powerful .NET configuration library designed to
help build highly configurable applications quickly.

%setup -q -n Nini

cd Source
mcs -target:library -out:Nini.dll -reference:System.dll -reference:System.Xml.dll -define:MONO_1_1 -define:NOSTRONG AssemblyInfo.cs Ini/*.cs Config/*.cs Util/*.cs
cat << EOF > nini-1.1.pc

Name: Nini
Description: An uncommonly powerful .NET configuration library
Version: %{version}
Libs: -r:\${assemblies_dir}/Nini.dll

cd Source
mkdir -p %{buildroot}%{_prefix}/lib/nini
mkdir -p %{buildroot}%{_datadir}/pkgconfig
cp Nini.dll %{buildroot}%{_prefix}/lib/nini/
cp nini-1.1.pc %{buildroot}%{_datadir}/pkgconfig/

rm -rf %{buildroot}