wf-config/wf-config.spec

74 lines
1.9 KiB
RPMSpec

#
# spec file for package wf-config
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define so_ver 0.3
%define libname libwf-config0
Name: wf-config
Version: 0.4.0
Release: 0
Summary: A library for managing configuration files
License: MIT
URL: https://wayfire.org/
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glm)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(wlroots)
%description
A library for managing configuration files, written for wayfire.
%package -n %{libname}
Summary: A library for managing configuration files
%description -n %{libname}
A library for managing configuration files, written for wayfire.
%package devel
Summary: Development files for %{name}
Requires: %{libname} = %{version}
%description devel
Development files for %{name}.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%{_libdir}/*.so.*
%files devel
%{_includedir}/wayfire
%{_libdir}/libwf-config.so
%{_libdir}/pkgconfig/wf-config.pc
%changelog