1
0
lxqt-globalkeys/lxqt-globalkeys.spec

147 lines
4.0 KiB
RPMSpec

#
# spec file for package lxqt-globalkeys
#
# Copyright (c) 2015 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/
#
Name: lxqt-globalkeys
Version: 0.9.0
Release: 0
Summary: Global keyboard shortcuts registration
License: LGPL-2.1+
Group: System/GUI/LXDE-Qt
Url: http://www.lxde.org
Source: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE fix_desktop_categories.patch sfalken@opensuse.org -- Fix desktop categories
Patch0: fix_desktop_categories.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kwindowsystem-devel
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(lxqt) >= 0.9.0
Requires(pre): desktop-file-utils
Requires(post): desktop-file-utils
Obsoletes: lxqt-globalkeys-qt5 < %{version}
Provides: lxqt-globalkeys-qt5 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Daemon and library for global keyboard shortcuts registration
%package devel
Summary: Development files for lxqt-globalkeys
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: liblxqt-globalkeys-ui0 = %{version}
Requires: liblxqt-globalkeys0 = %{version}
Requires: pkg-config
%description devel
Development files for lxqt-globalkeys including headers and libraries
%package -n liblxqt-globalkeys0
Summary: Lxqt-globalkeys libraries
Group: System/Libraries
%description -n liblxqt-globalkeys0
lxqt-globalkeys main system library
%package -n liblxqt-globalkeys-ui0
Summary: UI lxqt-globalkeys libraries
Group: System/Libraries
%description -n liblxqt-globalkeys-ui0
UI system libraries for lxqt-globalkeys
%package -n %{name}-lang
Summary: Translations for lxqt-globalkeys
Group: System/Libraries
Requires: %{name} = %{version}
%description -n %{name}-lang
Translation files for lxqt-globalkeys
%prep
%setup -q
%patch0 -p1
%build
mkdir build
pushd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DLIB_INSTALL_DIR:PATH=%{_libdir} \
%ifarch x86_64 aarch64 ppc64 ppc64le
-DLIB_SUFFIX=64 \
%endif
..
%__make %{?_smp_mflags}
popd
%install
pushd build
make DESTDIR=$RPM_BUILD_ROOT install
popd
%fdupes -s %{buildroot}
%post
%desktop_database_post
%postun
%desktop_database_postun
%post -n liblxqt-globalkeys0 -p /sbin/ldconfig
%postun -n liblxqt-globalkeys0 -p /sbin/ldconfig
%post -n liblxqt-globalkeys-ui0 -p /sbin/ldconfig
%postun -n liblxqt-globalkeys-ui0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/lxqt-globalkeysd
%{_bindir}/lxqt-config-globalkeyshortcuts
%{_datadir}/applications/lxqt-config-globalkeyshortcuts.desktop
%files devel
%defattr (-,root,root)
%{_includedir}/%{name}
%{_includedir}/lxqt-globalkeys-ui
%{_libdir}/pkgconfig/*.pc
%{_libdir}/liblxqt-globalkeys.so
%{_libdir}/liblxqt-globalkeys-ui.so
%files -n liblxqt-globalkeys0
%defattr(-,root,root)
%dir %{_libdir}/cmake/lxqt-globalkeys
%{_libdir}/liblxqt-globalkeys.so.*
%{_libdir}/cmake/lxqt-globalkeys/*
%files -n liblxqt-globalkeys-ui0
%defattr(-,root,root)
%dir %{_libdir}/cmake/lxqt-globalkeys-ui
%{_libdir}/liblxqt-globalkeys-ui.so.*
%{_libdir}/cmake/lxqt-globalkeys-ui/*
%files -n %{name}-lang
%defattr(-,root,root)
%{_datadir}/lxqt/translations
%changelog