2 Summary: Stand-alone ini file parsing library
5 Group: Applications/Databases
7 URL: http://ndevilla.free.fr/iniparser/
8 Source: http://ndevilla.free.fr/iniparser/iniparser-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
13 iniparser is a free stand-alone ini file parsing library.
14 It is written in portable ANSI C and should compile anywhere.
15 iniparser is distributed under an MIT license.
18 Summary: Development tools for stand-alone ini file parsing library
19 Group: Development/Libraries
20 Requires: %{name} = %{version}-%{release}
23 This package contains the header files and development documentation
24 for %{name}. If you like to develop programs using %{name}, you will need
25 to install %{name}-devel.
32 LDFLAGS="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed $LDFLAGS" \
33 make prefix=%{_prefix}
40 mkdir -p $RPM_BUILD_ROOT/%{_libdir}
41 install -m 755 libiniparser.so.0 $RPM_BUILD_ROOT/%{_libdir}
42 ln -s libiniparser.so.0 $RPM_BUILD_ROOT/%{_libdir}/libiniparser.so
43 mkdir -p $RPM_BUILD_ROOT/%{_includedir}
44 install -m 755 src/*.h $RPM_BUILD_ROOT/%{_includedir}
45 install -m 755 src/*.h $RPM_BUILD_ROOT/%{_includedir}
46 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
47 cat > $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/%{name}.pc <<EOF
49 exec_prefix = %{_exec_prefix}
51 includedir = %{_includedir}
54 Description : a free stand-alone ini file parsing library.
56 Libs : -L\${libdir} -liniparser
57 Cflags : -I\${includedir}
61 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
71 %{_libdir}/pkgconfig/*.pc