%global series 2.8 Name: system-tools-backends Version: %{series}.3 Release: 1%{?dist} Summary: Common DBus interface to modify or read the system configuration License: LGPLv2+ URL: https://%{name}.freedesktop.org/ Source0: %{url}/downloads/%{series}/%{name}-%{version}.tar.gz BuildRequires: gettext intltool BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: perl-devel > 5 Requires: dbus perl %description The System Tools Backends (s-t-b for short) are a set of cross-platform modules for Linux, FreeBSD and other Unix systems. The backends provide an common DBus interface to all platforms to modify or read the system configuration in a distro independent fashion. Historically, access to system configuration has varied deeply across Unix flavours, and concreting a bit more, across Linux distributions, making it near impossible to write desktop tools that could work flawlessly in a cross-platform way. System Tools Backends try to fill this gap, offering a generic and easy way for desktop applications to read and modify configuration details. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-extra = %{version}-%{release} %description devel %{summary}. %package extra Summary: Extra files for %{name} # rpm may not like noarch BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: perl-devel %description extra This package provides modules and additional scripts for %{name}. ############################################################################## %define lang_subpkg() \ %package langpack-%{1}\ Summary: %{2} language data for %{name}\ BuildArch: noarch \ Requires: %{name} = %{version}-%{release}\ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\ \ %description langpack-%{1}\ %{2} language data for %{name}.\ \ %files langpack-%{1}\ %{_datadir}/locale/%{1}*/LC_MESSAGES/%{name}.mo %lang_subpkg ar Arabic %lang_subpkg bg Bulgarian # FIXME bn_IN country? bn is Bengali; Bangla %lang_subpkg bn_IN "Bengali India" %lang_subpkg ca Catalan %lang_subpkg cs Czech %lang_subpkg da Danish %lang_subpkg de German %lang_subpkg el Greek %lang_subpkg en_GB English %lang_subpkg es Spanish %lang_subpkg et Estonian %lang_subpkg eu Basque %lang_subpkg fi Finnish %lang_subpkg fr French %lang_subpkg gl Galician %lang_subpkg gu Gujarati %lang_subpkg he "Hebrew (formerly iw)" %lang_subpkg hi Hindi %lang_subpkg hu Hungarian %lang_subpkg it Italian %lang_subpkg ja Japanese %lang_subpkg kn Kannada %lang_subpkg nb Norwegian %lang_subpkg or Oriya %lang_subpkg pa "Panjabi; Punjabi" %lang_subpkg pl Polish %lang_subpkg pt Portuguese %lang_subpkg pt_BR Brazil %lang_subpkg ro Romanian %lang_subpkg sl Slovenian %lang_subpkg sr "Serbian (Cyrillic and Latin)" %lang_subpkg sv Swedish %lang_subpkg ta Tamil %lang_subpkg te Telugu %lang_subpkg th Thai %lang_subpkg tr Turkish %lang_subpkg uk Ukrainian %lang_subpkg zh_CN %lang_subpkg zh_HK %lang_subpkg zh_TW ############################################################################## %prep %setup -q %build %configure %make_build %install %make_install ############################################################################## %files %license COPYING %doc AUTHORS ChangeLog NEWS README # not sure if we can own folder %dir %{_sysconfdir}/dbus-1/system.d %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.SystemToolsBackends.conf %{_sbindir}/%{name} %{_datadir}/dbus-1/system-services/org.freedesktop.SystemToolsBackends*.service # workaround for noarch bug %{_datadir}/%{name}-2.0/modules/lib/perl/ %dir %{_datadir}/%{name}-2.0 %dir %{_datadir}/%{name}-2.0/modules %dir %{_datadir}/%{name}-2.0/modules/lib %files devel %{_libdir}/pkgconfig/%{name}-2.0.pc %files extra %{_datadir}/%{name}-2.0/*/ # ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked %exclude %{_datadir}/%{name}-2.0/modules/lib/perl/ ############################################################################## %changelog * Tue Jun 7 2016 Raphael Groner - 2.8.3-1 - initial