libiniparser/libiniparser.spec

86 lines
2.3 KiB
RPMSpec

Name: libiniparser
Version: 4.2.1
Release: 1mamba
Summary: A free stand-alone ini file parsing library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ndevilla/iniparser
Source: https://github.com/ndevilla/iniparser.git/v%{version}/iniparser-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%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 needed for development.
%debug_package
%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
%changelog
* Thu May 16 2024 Automatic Build System <autodist@openmamba.org> 4.2.1-1mamba
- automatic version update by autodist
* Thu May 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2-1mamba
- update to 4.2
* 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