]> git.pld-linux.org Git - SPECS.git/blob - iniparser.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / iniparser.spec
1 Summary:        C library for parsing "INI-style" files
2 Name:           iniparser
3 Version:        3.1
4 Release:        0.1
5 License:        MIT
6 Group:          Libraries
7 Source0:        http://ndevilla.free.fr/iniparser/%{name}-%{version}.tar.gz
8 # Source0-md5:  0aa4f995468ed390caf323f50a285bc3
9 URL:            http://ndevilla.free.fr/iniparser
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 iniParser is an ANSI C library to parse "INI-style" files, often used
14 to hold application configuration information.
15
16 %package devel
17 Summary:        Header files, libraries and development documentation for %{name}
18 Group:          Libraries
19 Requires:       %{name} = %{version}-%{release}
20
21 %description devel
22 This package contains the header files, static libraries and
23 development documentation for %{name}. If you like to develop programs
24 using %{name}, you will need to install %{name}-devel.
25
26 %prep
27 %setup -q -n %{name}
28
29 %build
30 %{__make}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_includedir} $RPM_BUILD_ROOT%{_libdir}
35 install -t $RPM_BUILD_ROOT%{_includedir} src/dictionary.h src/iniparser.h
36 install -t $RPM_BUILD_ROOT%{_libdir}/ libiniparser.so.0
37 ln -s libiniparser.so.0 $RPM_BUILD_ROOT%{_libdir}/libiniparser.so
38 install -t $RPM_BUILD_ROOT%{_libdir}/ libiniparser.a
39
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post -p /sbin/ldconfig
45
46 %postun -p /sbin/ldconfig
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README LICENSE
51 %attr(755,root,root) %{_libdir}/lib%{name}.so.0
52
53 %files devel
54 %defattr(644,root,root,755)
55 %{_libdir}/lib%{name}.so
56 %{_libdir}/lib%{name}.a
57 %{_includedir}/*.h
This page took 0.136502 seconds and 3 git commands to generate.