%global sover 0 Name: inih Version: 36 Release: 12%{?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 %ldconfig_scriptlets %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 * Thu Jul 25 2019 Fedora Release Engineering - 36-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 36-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 36-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 36-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 36-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 36-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 36-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * 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