]> git.pld-linux.org Git - packages/kf5-kglobalaccel.git/commitdiff
- new
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 9 Jul 2014 15:06:47 +0000 (17:06 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 9 Jul 2014 15:06:47 +0000 (17:06 +0200)
kf5-kglobalaccel.spec [new file with mode: 0644]

diff --git a/kf5-kglobalaccel.spec b/kf5-kglobalaccel.spec
new file mode 100644 (file)
index 0000000..6bd7dec
--- /dev/null
@@ -0,0 +1,96 @@
+# TODO:
+# - dir /usr/include/KF5 not packaged
+%define         _state          stable
+%define                orgname         kglobalaccel
+
+Summary:       Global desktop keyboard shortcuts
+Name:          kf5-%{orgname}
+Version:       5.0.0
+Release:       0.1
+License:       LGPL v2.1+
+Group:         X11/Libraries
+Source0:       ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
+# Source0-md5: 2789a7e598942a9a7004fa867019ec6a
+URL:           http://www.kde.org/
+BuildRequires: Qt5Core-devel
+BuildRequires: Qt5DBus-devel
+BuildRequires: Qt5Gui-devel >= 5.3.1
+BuildRequires: Qt5Test-devel
+BuildRequires: Qt5Widgets-devel
+BuildRequires: Qt5X11Extras-devel
+BuildRequires: Qt5Xml-devel >= 5.2.0
+BuildRequires: cmake >= 2.8.12
+BuildRequires: kf5-extra-cmake-modules >= 1.0.0
+BuildRequires: qt5-linguist
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                qt5dir          %{_libdir}/qt5
+
+%description
+KGlobalAccel allows you to have global accelerators that are
+independent of the focused window. Unlike regular shortcuts, the
+application's window does not need focus for them to be activated.
+
+%package devel
+Summary:       Header files for %{orgname} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{orgname}
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{orgname} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{orgname}.
+
+%prep
+%setup -q -n %{orgname}-%{version}
+
+%build
+install -d build
+cd build
+%cmake \
+       -DBIN_INSTALL_DIR=%{_bindir} \
+       -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
+       -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
+       -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
+       -DQML_INSTALL_DIR=%{qt5dir}/qml \
+       -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
+       -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
+       -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
+       -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
+       -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
+       -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
+       ../
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build/ install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{orgname}5_qt --with-qm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{orgname}5_qt.lang
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %ghost %{_libdir}/libKF5GlobalAccel.so.5
+%attr(755,root,root) %{_libdir}/libKF5GlobalAccel.so.5.0.0
+%{_datadir}/dbus-1/interfaces/kf5_org.kde.KGlobalAccel.xml
+%{_datadir}/dbus-1/interfaces/kf5_org.kde.kglobalaccel.Component.xml
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF5/KGlobalAccel
+%{_includedir}/KF5/kglobalaccel_version.h
+%{_libdir}/cmake/KF5GlobalAccel
+%attr(755,root,root) %{_libdir}/libKF5GlobalAccel.so
+%{qt5dir}/mkspecs/modules/qt_KGlobalAccel.pri
This page took 0.32371 seconds and 4 git commands to generate.