File seatd.spec of Package seatd

#
# spec file for package seatd
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

%define libname libseat1
Name:           seatd
Version:        0.4.0
Release:        0
Summary:        Seat management daemon and library
License:        MIT
Url:            https://github.com/kennylevinsen/seatd
Source:         %{url}/archive/%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig(scdoc)

%description
%{summary}.

%package devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}
Requires:       %{libname} = %{version}

%description devel
%{summary}.

%package -n %{libname}
Summary:        Library for %{name}

%description -n %{libname}
%{summary}.

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%post   -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files
%defattr(-,root,root)
%license LICENSE
%doc README.md
%{_bindir}/seatd
%{_datadir}/man/man1/seatd.1.gz

%files devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files -n %{libname}
%{_libdir}/*.so.*

%changelog

openSUSE Build Service is sponsored by