%global sover 0 Name: inih Version: 36 Release: 5%{?dist} Summary: Simple INI file parser library License: BSD URL: https://github.com/benhoyt/inih Source0: %{url}/archive/r%{version}/%{name}-r%{version}.tar.gz BuildRequires: gcc %description The inih package provides simple INI file parser which is only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains development files for %{name}. The inih package provides simple INI file parser which is only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. %prep %setup -q -n %{name}-r%{version} %build gcc -c -fPIC %{optflags} ini.c gcc -shared %{?__global_ldflags} -o lib%{name}.so.%{sover}.%{version} -Wl,-soname,lib%{name}.so.%{sover} ini.o %install install -d %{buildroot}%{_libdir} install -D -p -m 644 ini.h %{buildroot}%{_includedir}/ini.h install -p -m 755 lib%{name}.so* %{buildroot}%{_libdir}/ ln -s lib%{name}.so.%{sover}.%{version} %{buildroot}%{_libdir}/lib%{name}.so.%{sover} ln -s lib%{name}.so.%{sover}.%{version} %{buildroot}%{_libdir}/lib%{name}.so %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE.txt %doc README.md %{_libdir}/lib%{name}.so.%{sover}.%{version} %{_libdir}/lib%{name}.so.%{sover} %files devel %{_includedir}/ini.h %{_libdir}/lib%{name}.so %changelog * Wed Aug 31 2016 Jan F. Chadima - 36-5 - implement license tag * Wed Aug 31 2016 Jan F. Chadima - 36-4 - implement next review hints * Tue Aug 30 2016 Jan F. Chadima - 36-3 - implement another review results * Tue Aug 30 2016 Jan F. Chadima - 36-2 - implement review results * Mon Aug 29 2016 Jan F. Chadima - 36-1 - initial version