From 564fb0b0609998fb8068f7818d4aa2578b55a1e9 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 24 Mar 2013 19:27:55 -0700 Subject: [PATCH] add packaging --- packaging/iniparser.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 packaging/iniparser.spec diff --git a/packaging/iniparser.spec b/packaging/iniparser.spec new file mode 100644 index 0000000..e6f5ad7 --- /dev/null +++ b/packaging/iniparser.spec @@ -0,0 +1,69 @@ +Name: iniparser +Version: 2.17 +Release: 3 +License: MIT +Summary: Stand-alone ini file parsing library +Url: http://ndevilla.free.fr/iniparser/ +Group: System/Libraries +Source: http://ndevilla.free.fr/iniparser/iniparser-%{version}.tar.gz +Source1001: %{name}.manifest + +%description +iniparser is a free stand-alone ini file parsing library. +It is written in portable ANSI C and should compile anywhere. +iniparser is distributed under an MIT license. + +%package devel +Summary: Development tools for stand-alone ini file parsing library +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +This package contains the header files and development documentation +for %{name}. If you like to develop programs using %{name}, you will need +to install %{name}-devel. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +make prefix=%{_prefix} %{?_smp_mflags} + +%install + +mkdir -p %{buildroot}/%{_libdir} +install -m 755 libiniparser.so.0 %{buildroot}/%{_libdir} +ln -s libiniparser.so.0 %{buildroot}/%{_libdir}/libiniparser.so +mkdir -p %{buildroot}/%{_includedir} +install -m 755 src/*.h %{buildroot}/%{_includedir} +install -m 755 src/*.h %{buildroot}/%{_includedir} +mkdir -p %{buildroot}/%{_libdir}/pkgconfig +cat > %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc <