%define _disable_source_fetch 0 Name: libglibutil Version: 1.0.61 Release: 1%{?dist} Summary: Library of glib utilities License: BSD URL: https://github.com/sailfishos/libglibutil Source: %{url}/archive/refs/tags/%{version}.tar.gz BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) pkgconfig(rpm) BuildRequires: make gcc Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description Provides glib utility functions and macros %package devel Summary: Development library for %{name} Requires: %{name} = %{version} Requires: pkgconfig %description devel This package contains the development library for %{name}. %prep %setup -q %build %{set_build_flags} %make_build LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig %install rm -rf %{buildroot} %{make_build} LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev %check %{make_build} -C test test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %defattr(-,root,root,-) %{_libdir}/%{name}.so.* %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}.so %{_includedir}/gutil/*.h %changelog * Sun Dec 12 2021 Mo 森 - 1.0.61-1 - Track a new upstream URL - Use the 'make_build' macro - 1.0.61