File libglibutil.spec of Package libglibutil
#
# spec file for package libglibutil
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global libname libglibutil1
Name: libglibutil
Version: 1.0.80
Release: 0
Summary: Library of glib utilities
License: BSD-3-Clause
Group: Development/Libraries/Other
URL: https://git.sailfishos.org/mer-core/libglibutil
Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
%description
The library of glib utilities.
%package -n %{libname}
Summary: Library of glib utilities
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description -n %{libname}
The library of glib utilities.
%package devel
Summary: Devel library for %{name}
Requires: %{libname} = %{version}
%description devel
Development files for %{name}
%prep
%autosetup
%build
%make_build \
LIBDIR=%{_libdir} \
KEEP_SYMBOLS=1 \
release \
pkgconfig
%install
%make_install \
LIBDIR=%{_libdir} \
DESTDIR=%{buildroot} \
install-dev
find %{buildroot}%{_libdir} -type f -name "*.so.*" -exec strip --strip-unneeded '{}' + || true
%check
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%doc README
%{_libdir}/*.so.*
%files devel
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}.so
%dir %{_includedir}/gutil
%{_includedir}/gutil/*.h
%changelog