- import of iniparser library into rawhide.
This commit is contained in:
parent
b8e0f7a988
commit
b026090fb8
@ -0,0 +1 @@
|
||||
iniparser3.0b.tar.gz
|
||||
1
import.log
Normal file
1
import.log
Normal file
@ -0,0 +1 @@
|
||||
iniparser-3_0-0_1_b_fc11:HEAD:iniparser-3.0-0.1.b.fc11.src.rpm:1243533099
|
||||
73
iniparser.spec
Normal file
73
iniparser.spec
Normal file
@ -0,0 +1,73 @@
|
||||
Name: iniparser
|
||||
Version: 3.0
|
||||
Release: 0.1.b%{?dist}
|
||||
Summary: C library for parsing "INI-style" files
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: MIT
|
||||
URL: http://ndevilla.free.fr/iniparser/
|
||||
Source0: http://ndevilla.free.fr/iniparser/iniparser3.0b.tar.gz
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
|
||||
%description
|
||||
iniParser is an ANSI C library to parse "INI-style" files, often used to
|
||||
hold application configuration information.
|
||||
|
||||
%package devel
|
||||
Summary: Header files, libraries and development documentation for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the header files, static libraries and development
|
||||
documentation for %{name}. If you like to develop programs using %{name},
|
||||
you will need to install %{name}-devel.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}%{version}b
|
||||
|
||||
%build
|
||||
# remove library rpath from Makefile
|
||||
sed -i 's|-Wl,-rpath -Wl,/usr/lib||g' Makefile
|
||||
sed -i 's|-Wl,-rpath,/usr/lib||g' Makefile
|
||||
# set the CFLAGS to Fedora standard
|
||||
sed -i 's|^CFLAGS|CFLAGS = %{optflags} -fPIC\nNOCFLAGS|' Makefile
|
||||
make %{?_smp_mflags} libiniparser.so
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
# iniParser doesn't have a 'make install' of its own :(
|
||||
install -d %{buildroot}%{_includedir} %{buildroot}%{_libdir}
|
||||
install -m 644 -t %{buildroot}%{_includedir}/ src/dictionary.h src/iniparser.h
|
||||
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.0
|
||||
ln -s libiniparser.so.0 %{buildroot}%{_libdir}/libiniparser.so
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README LICENSE
|
||||
%{_libdir}/libiniparser.so.0
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libiniparser.so
|
||||
%{_includedir}/*.h
|
||||
|
||||
%changelog
|
||||
* Mon Jan 26 2009 Alex Hudson <fedora@alexhudson.com> - 3.0-0.1.b
|
||||
- change version number to reflect "pre-release" status
|
||||
|
||||
* Mon Jan 19 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-3
|
||||
- ensure LICENSE file is installed
|
||||
|
||||
* Wed Jan 14 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-2
|
||||
- respond to review: added -fPIC to cflags, used 'install'
|
||||
|
||||
* Tue Jan 13 2009 Alex Hudson <fedora@alexhudson.com> - 3.0b-1
|
||||
- Initial packaging attempt
|
||||
Loading…
Reference in New Issue
Block a user