81 lines
2.2 KiB
RPMSpec
81 lines
2.2 KiB
RPMSpec
Name: libiniparser
|
|
Version: 4.1
|
|
Release: 1mamba
|
|
Summary: A free stand-alone ini file parsing library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
URL: http://ndevilla.free.fr/iniparser/
|
|
Source: https://github.com/ndevilla/iniparser.git/v%{version}/iniparser-%{version}.tar.bz2
|
|
Patch: %{name}-2.15-shared-library.patch
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Libiniparser offers parsing of ini files from the C level.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Libiniparser offers parsing of ini files from the C level.
|
|
This package contains static libraries and header files need for development.
|
|
|
|
%prep
|
|
%setup -q -n iniparser-%{version}
|
|
|
|
%build
|
|
%make
|
|
%make check
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}%{_includedir} \
|
|
%{buildroot}%{_libdir}
|
|
|
|
install -m 0755 libiniparser.{a,so.1} %{buildroot}%{_libdir}
|
|
install -m 0644 src/{dictionary,iniparser}.h %{buildroot}%{_includedir}
|
|
ln -s libiniparser.so.1 %{buildroot}%{_libdir}/libiniparser.so
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libiniparser.so.*
|
|
%doc AUTHORS LICENSE
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/dictionary.h
|
|
%{_includedir}/iniparser.h
|
|
%{_libdir}/libiniparser.a
|
|
%{_libdir}/libiniparser.so
|
|
%doc html
|
|
|
|
%changelog
|
|
* Wed Feb 07 2018 Automatic Build System <autodist@mambasoft.it> 4.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0-1mamba
|
|
- update to 4.0
|
|
|
|
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
|
- update to 3.1
|
|
|
|
* Sat May 23 2009 Davide Madrisan <davide.madrisan@gmail.com> 3.0b-1mamba
|
|
- update to 3.0b
|
|
|
|
* Tue Sep 12 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.15-1qilnx
|
|
- package created by autospec
|