-# TODO:
-# Not packaged:
-# /usr/include/KF5
-# /usr/lib/qt5/plugins/script
-
-%define _state stable
-%define orgname kross
-
+%define kdeframever 5.13
+%define qtver 5.3.2
+%define kfname kross
+#
Summary: Embedding of scripting into applications
-Name: kf5-%{orgname}
-Version: 5.0.0
-Release: 0.1
+Name: kf5-%{kfname}
+Version: 5.13.0
+Release: 1
License: LGPL v2.1+
Group: X11/Libraries
-Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/portingAids/%{orgname}-%{version}.tar.xz
-# Source0-md5: e6b72d26ff2f2fff75ccec11fa0c01a6
+Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
+# Source0-md5: 1bc722946d71dcaba481721e7d14ebaf
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel
BuildRequires: Qt5DBus-devel >= 5.2.0)
application. It supports QtScript as a scripting interpreter backend.
%package devel
-Summary: Header files for %{orgname} development
-Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
+Summary: Header files for %{kfname} development
+Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Header files for %{orgname} development.
+Header files for %{kfname} development.
%description devel -l pl.UTF-8
-Pliki nagłówkowe dla programistów używających %{orgname}.
+Pliki nagłówkowe dla programistów używających %{kfname}.
%prep
-%setup -q -n %{orgname}-%{version}
+%setup -q -n %{kfname}-%{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} \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
../
%{__make}
%{__make} -C build/ install \
DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{orgname}5
+%find_lang %{kfname}5
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files -f %{orgname}5.lang
+%files -f %{kfname}5.lang
%defattr(644,root,root,755)
%doc README.md
%attr(755,root,root) %{_bindir}/kf5kross
%attr(755,root,root) %ghost %{_libdir}/libKF5KrossCore.so.5
-%attr(755,root,root) %{_libdir}/libKF5KrossCore.so.5.0.0
+%attr(755,root,root) %{_libdir}/libKF5KrossCore.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libKF5KrossUi.so.5
-%attr(755,root,root) %{_libdir}/libKF5KrossUi.so.5.0.0
-%attr(755,root,root) %{qt5dir}/plugins/KrossModuleForms.so
-%attr(755,root,root) %{qt5dir}/plugins/KrossModuleKdeTranslation.so
+%attr(755,root,root) %{_libdir}/libKF5KrossUi.so.*.*.*
+%attr(755,root,root) %{qt5dir}/plugins/krossmoduleforms.so
+%attr(755,root,root) %{qt5dir}/plugins/krossmodulekdetranslation.so
%attr(755,root,root) %{qt5dir}/plugins/krossqts.so
%attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
%{_mandir}/man1/kf5kross.1*