File dbus-test-runner.spec of Package dbus-test-runner

#
# spec file for package dbus-test-runner
#
# 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/
#


%define soname  libdbustest
%define sover   1
%define _version 19.04
Name:           dbus-test-runner
Version:        19.04.0
Release:        0
Summary:        Runs tests under a new D-Bus session
License:        LGPL-2.1-or-later
Group:          Development/Tools/Other
URL:            https://launchpad.net/dbus-test-runner
Source:         https://launchpad.net/dbus-test-runner/%{_version}/%{version}/+download/%{name}-%{version}.tar.gz
Source1:        https://launchpad.net/dbus-test-runner/%{_version}/%{version}/+download/%{name}-%{version}.tar.gz.asc
Source2:        %{name}.keyring
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)

%description
A simple little executable for running a couple of programs under a
new D-Bus session.

%package -n %{soname}%{sover}
Summary:        Runs tests under a new D-Bus session -- Libraries
Group:          System/Libraries
Provides:       %{name} = %{version}

%description -n %{soname}%{sover}
A simple little executable for running a couple of programs under a
new D-Bus session.

This package contains shared libraries.

%package devel
Summary:        Runs tests under a new DBus session -- Development files
Group:          Development/Libraries/C and C++
Requires:       %{soname}%{sover} = %{version}

%description devel
A simple little executable for running a couple of programs under a
new D-Bus session.
This package contains files that are needed to build.

%prep
%setup -q

%build
autoreconf -vfi
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n %{soname}%{sover} -p /sbin/ldconfig

%postun -n %{soname}%{sover} -p /sbin/ldconfig

%files
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_libexecdir}/%{name}/

%files -n %{soname}%{sover}
%{_libdir}/%{soname}.so.%{sover}*

%files devel
%{_includedir}/%{soname}-%{sover}/
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/dbustest-1.pc

%changelog
openSUSE Build Service is sponsored by