- re-add versioned Conflicts: kde-workspace (gives hints on upgrade path for older releases)
- improve Obsoletes: khotkeys-libs
- improve %find_lang usage
- -devel: move dbus-1 xml interface here
- .spec cosmetics
epel9
Rex Dieter 10 years ago
parent 31eb1fed7b
commit 05c264f114

@ -1,6 +1,6 @@
Name: khotkeys Name: khotkeys
Version: 5.3.1 Version: 5.3.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Application to configure hotkeys in KDE Summary: Application to configure hotkeys in KDE
License: GPLv2+ License: GPLv2+
@ -36,7 +36,12 @@ BuildRequires: libX11-devel
Requires: kf5-filesystem Requires: kf5-filesystem
Obsoletes: khotkeys-libs < %{?epoch:%{epoch}:}%{version}-%{release} # when khotkeys was split out of kde-workspace-4.11.x
Conflicts: kde-workspace < 4.11.15-3
# upgrade path from khotkeys-libs-4.11.x (skip Provides for now, it was only ever a private library)
Obsoletes: khotkeys-libs < 5.0.0
#Provides: khotkeys-libs = %{version}-%{release}
%description %description
An advanced editor component which is used in numerous KDE applications An advanced editor component which is used in numerous KDE applications
@ -44,6 +49,7 @@ requiring a text editing component.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
# strictly speaking, not required in this case, but still often expected to pull in subpkg -- rex
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
@ -53,38 +59,50 @@ developing applications that use %{name}.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
mkdir -p %{_target_platform}
mkdir %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{cmake_kf5} .. %{cmake_kf5} ..
popd popd
make %{?_smp_mflags} -C %{_target_platform} make %{?_smp_mflags} -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang khotkeys5 --with-qt --with-kde --all-name
%post -p /sbin/ldconfig %find_lang khotkeys
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f khotkeys5.lang %files -f khotkeys.lang
%doc COPYING %doc COPYING
%{_kf5_libdir}/libkhotkeysprivate.so.* %{_kf5_libdir}/libkhotkeysprivate.so.*
%{_kf5_qtplugindir}/kcm_hotkeys.so %{_kf5_qtplugindir}/kcm_hotkeys.so
%{_kf5_qtplugindir}/kded_khotkeys.so %{_kf5_qtplugindir}/kded_khotkeys.so
%{_kf5_datadir}/kservices5/kded/*.desktop %{_kf5_datadir}/kservices5/kded/*.desktop
%{_kf5_datadir}/kservices5/khotkeys.desktop %{_kf5_datadir}/kservices5/khotkeys.desktop
%{_datadir}/khotkeys %{_datadir}/khotkeys/
%{_datadir}/dbus-1/interfaces/*.xml %{_datadir}/doc/HTML/en/kcontrol/khotkeys/
%{_datadir}/doc/HTML/en/kcontrol/khotkeys
%files devel %files devel
%{_libdir}/cmake/KHotKeysDBusInterface %{_datadir}/dbus-1/interfaces/org.kde.khotkeys.xml
%{_libdir}/cmake/KHotKeysDBusInterface/
%changelog %changelog
* Tue Jun 09 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.3.1-2
- re-add versioned Conflicts: kde-workspace (gives hints on upgrade path for older releases)
- improve Obsoletes khotkeys-libs
- improve %%find_lang usage
- -devel: move dbus-1 xml interface here
- .spec cosmetics
* Tue May 26 2015 Daniel Vrátil <dvratil@redhat.com> - 5.3.1-1 * Tue May 26 2015 Daniel Vrátil <dvratil@redhat.com> - 5.3.1-1
- Plasma 5.3.1 - Plasma 5.3.1

Loading…
Cancel
Save