Release 49 and use meson build system
Update to new upstream release 49 and switch to meson build system. Also ship the pkg-config file and remove ldconfig scriptlets. Resolves rhbz#1810355
This commit is contained in:
parent
4007564223
commit
a362da5886
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/inih-r36.tar.gz
|
||||
/inih-r49.tar.gz
|
||||
|
||||
34
inih.spec
34
inih.spec
@ -1,8 +1,6 @@
|
||||
%global sover 0
|
||||
|
||||
Name: inih
|
||||
Version: 36
|
||||
Release: 13%{?dist}
|
||||
Version: 49
|
||||
Release: 1%{?dist}
|
||||
Summary: Simple INI file parser library
|
||||
|
||||
License: BSD
|
||||
@ -10,6 +8,8 @@ URL: https://github.com/benhoyt/inih
|
||||
Source0: %{url}/archive/r%{version}/%{name}-r%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: g++
|
||||
BuildRequires: meson
|
||||
|
||||
|
||||
%description
|
||||
@ -32,38 +32,38 @@ embedded systems.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-r%{version}
|
||||
%autosetup -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
|
||||
%meson -Ddefault_library=shared -Ddistro_install=true
|
||||
%meson_build
|
||||
|
||||
|
||||
%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
|
||||
%meson_install
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{_libdir}/lib%{name}.so.%{sover}.%{version}
|
||||
%{_libdir}/lib%{name}.so.%{sover}
|
||||
%{_libdir}/lib%{name}.so.%{version}
|
||||
%{_libdir}/lib%{name}.so.0
|
||||
|
||||
|
||||
%files devel
|
||||
%{_includedir}/ini.h
|
||||
%{_libdir}/pkgconfig/inih.pc
|
||||
%{_libdir}/lib%{name}.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 3 2020 Christian Kellner <ckellner@redhat.com> - 49-1
|
||||
- New upstream release 49
|
||||
- Switch to meson build system.
|
||||
- Ship the pkg-config file.
|
||||
- Remove ldconfig scriptlets.
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 36-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user