[nini/f20] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Wed Nov 20 12:57:12 UTC 2013


commit bc14c8111378027c74ea97daaf598ee42045e010
Author: Christopher Meng <rpm at cicku.me>
Date:   Wed Nov 20 20:57:11 2013 +0800

    Initial SETUP.

 .gitignore |    1 +
 nini.pc    |    8 ++++++++
 nini.spec  |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources    |    1 +
 4 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b5e3e0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nini-1.1.0.zip
diff --git a/nini.pc b/nini.pc
new file mode 100644
index 0000000..3226632
--- /dev/null
+++ b/nini.pc
@@ -0,0 +1,8 @@
+prefix=/usr
+assemblies_dir=${prefix}/lib/nini
+Libraries=${assemblies_dir}/Nini.dll
+
+Name: Nini
+Description: An uncommonly powerful .NET configuration library
+Version: 1.1.0
+Libs: -r:\${assemblies_dir}/Nini.dll
diff --git a/nini.spec b/nini.spec
new file mode 100644
index 0000000..08ecab0
--- /dev/null
+++ b/nini.spec
@@ -0,0 +1,55 @@
+Name:           nini
+Version:        1.1.0
+Release:        1%{?dist}
+Summary:        .NET configuration library
+License:        MIT
+URL:            http://nini.sourceforge.net
+Source0:        http://downloads.sourceforge.net/project/%{name}/Nini/%{version}/Nini-%{version}.zip
+Source1:        nini.pc
+BuildRequires:  mono-devel
+BuildRequires:  nant
+BuildArch:      noarch
+
+%description
+Nini is an .NET configuration library which designed to help build highly 
+configurable applications quickly. Nini provides a solution that attempts to 
+eliminate the above problems. It provides a large feature set that gives you 
+functionality that you will use in every phase of your project, from concept 
+to mature product. This is accomplished through a simple, yet flexible, API 
+that provides an abstraction over the underlying configuration sources.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+This package contains a pkgconfig file for developing 
+applications that use %{name}.
+
+%prep
+%setup -qn Nini
+
+%build
+cd Source
+# Generated and sorted from nant build-mono.
+# Native failed with: 'mcs.bat' failed to start.
+# So we need mcs to build it manually.
+mcs -t: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
+
+%install
+mkdir -p %{buildroot}%{_prefix}/lib/nini
+mkdir -p %{buildroot}%{_datadir}/pkgconfig
+install -pm755 Source/Nini.dll %{buildroot}%{_prefix}/lib/nini/
+install -pm644 %{S:1} %{buildroot}%{_datadir}/pkgconfig/
+
+%files
+%doc {CHANGELOG,LICENSE,README}.txt
+%doc Docs/*
+%{_prefix}/lib/nini/
+
+%files devel
+%{_datadir}/pkgconfig/nini.pc
+
+%changelog
+* Thu Apr 04 2013 Christopher Meng <rpm at cicku.me> - 1.1.0-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..4f2ffe8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+63384f75fabd401cff1500f738d452f4  Nini-1.1.0.zip


More information about the scm-commits mailing list