diff --git c/sfsexp.spec w/sfsexp.spec index cb2cb5c..3911dec 100644 --- c/sfsexp.spec +++ w/sfsexp.spec @@ -1,13 +1,20 @@ Name: sfsexp +%global libname libsexp Version: 1.4.0 -Release: 1%{?dist} +%global soname 1 +%global sominor 0.0 +Release: 2%{?dist} Summary: Small Fast S-Expression Library -License: LGPL-2.1+ +License: LGPLv2+ URL: https://github.com/mjsottile/sfsexp -Source: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz +Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz +# included in the repo but not the distribution archive (until a new release is +# cut containing https://github.com/mjsottile/sfsexp/pull/20) : +Source1: LICENSE_LGPL BuildRequires: gcc +Buildrequires: perl-interpreter %description This library is intended for developers who wish to manipulate (read, @@ -22,14 +29,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. - %prep %autosetup -n %{name}-%{version} - %build %configure --disable-static %make_build +cp -p %{SOURCE1} . %check pushd tests @@ -38,22 +44,23 @@ popd %install %make_install -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' - -%{?ldconfig_scriptlets} +find %{buildroot} -name '*.la' -exec rm -f {} ';' %files -%license COPYING -%{_libdir}/*.so.* +%license COPYING LICENSE_LGPL +%{_libdir}/%{libname}.so.%{soname} +%{_libdir}/%{libname}.so.%{soname}.%{sominor} %files devel %doc README* %{_includedir}/%{name} -%{_libdir}/*.so +%{_libdir}/%{libname}.so %{_libdir}/pkgconfig/%{name}.pc - %changelog +* Sun Jun 19 2022 Michael J Gruber - 1.4.0-2 +- take into account review issues + * Fri Jun 10 2022 Michael J Gruber - 1.4.0-1 - rebase with upstream 1.4.0