Name: libglibutil Version: 1.0.56 Release: 0 Summary: Library of glib utilities License: BSD URL: https://github.com/sailfishos/libglibutil Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: make BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) # Maybe needed for tests? BuildRequires: valgrind BuildRequires: lcov 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} %description devel This package contains the development library for %{name}. %prep %setup -q %build make %{_make_output_sync} %{_smp_mflags} %{_make_verbose} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig %install rm -rf %{buildroot} make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev %check make %{_make_output_sync} %{_smp_mflags} %{_make_verbose} test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/%{name}.so.* %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}.so %{_includedir}/gutil/*.h