[packages/kf5-kservice] - new

witekfl witekfl at pld-linux.org
Thu Jul 10 11:23:52 CEST 2014


commit 575424c32d389650440eb512285261539ff8c26a
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Thu Jul 10 11:23:37 2014 +0200

    - new

 kf5-kservice.spec | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 112 insertions(+)
---
diff --git a/kf5-kservice.spec b/kf5-kservice.spec
new file mode 100644
index 0000000..ac40199
--- /dev/null
+++ b/kf5-kservice.spec
@@ -0,0 +1,112 @@
+# TODO:
+# - dir /usr/include/KF5 not packaged
+# /usr/share/kservicetypes5 not packaged
+%define         _state          stable
+%define		orgname		kservice
+
+Summary:	Plugin framework for desktop services
+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:	6ae4142298331ca6085d3ecded6a02e2
+URL:		http://www.kde.org/
+BuildRequires:	Qt5Concurrent-devel
+BuildRequires:	Qt5Core-devel >= 5.2.0
+BuildRequires:	Qt5DBus-devel >= 5.2.0
+BuildRequires:	Qt5Gui-devel >= 5.3.1
+BuildRequires:	Qt5Svg-devel >= 5.2.0
+BuildRequires:	Qt5Test-devel
+BuildRequires:	Qt5Widgets-devel >= 5.2.0
+BuildRequires:	Qt5Xml-devel >= 5.2.0
+BuildRequires:	cmake >= 2.8.12
+BuildRequires:	gettext-devel
+BuildRequires:	kf5-extra-cmake-modules >= 1.0.0
+BuildRequires:	kf5-karchive-devel >= %{version}
+BuildRequires:	kf5-kconfig-devel >= %{version}
+BuildRequires:	kf5-kcoreaddons-devel >= %{version}
+BuildRequires:	kf5-kcrash-devel >= %{version}
+BuildRequires:	kf5-kdbusaddons-devel >= %{version}
+BuildRequires:	kf5-kdoctools-devel >= %{version}
+BuildRequires:	kf5-ki18n-devel >= %{version}
+BuildRequires:	kf5-kwindowsystem-devel >= %{version}
+BuildRequires:	rpmbuild(macros) >= 1.164
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		qt5dir		%{_libdir}/qt5
+
+%description
+KService provides a plugin framework for handling desktop services.
+Services can be applications or libraries. They can be bound to MIME
+types or handled by application specific code.
+
+%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 \
+	-D_IMPORT_PREFIX=%{_prefix} \
+	../
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build/ install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{orgname}5
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{orgname}5.lang
+%defattr(644,root,root,755)
+%doc README.md
+/etc/xdg/menus/applications.menu
+%attr(755,root,root) %{_bindir}/desktoptojson
+%attr(755,root,root) %{_bindir}/kbuildsycoca5
+%attr(755,root,root) %ghost %{_libdir}/libKF5Service.so.5
+%attr(755,root,root) %{_libdir}/libKF5Service.so.5.0.0
+%{_datadir}/kservicetypes5/application.desktop
+%{_datadir}/kservicetypes5/kplugininfo.desktop
+%{_mandir}/man8/desktoptojson.8*
+%{_mandir}/man8/kbuildsycoca5.8*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF5/KService
+%{_includedir}/KF5/kservice_version.h
+%{_libdir}/cmake/KF5Service
+%attr(755,root,root) %{_libdir}/libKF5Service.so
+%{qt5dir}/mkspecs/modules/qt_KService.pri
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kf5-kservice.git/commitdiff/575424c32d389650440eb512285261539ff8c26a



More information about the pld-cvs-commit mailing list