- new
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 11 Jul 2014 10:37:00 +0000 (12:37 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 11 Jul 2014 10:37:00 +0000 (12:37 +0200)
kf5-kross.spec [new file with mode: 0644]

diff --git a/kf5-kross.spec b/kf5-kross.spec
new file mode 100644 (file)
index 0000000..8ef59ba
--- /dev/null
@@ -0,0 +1,139 @@
+# TODO:
+# Not packaged:
+# /usr/include/KF5
+# /usr/lib/qt5/plugins/script
+
+%define         _state          stable
+%define                orgname         kross
+
+Summary:       Embedding of scripting into applications
+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}/portingAids/%{orgname}-%{version}.tar.xz
+# Source0-md5: e6b72d26ff2f2fff75ccec11fa0c01a6
+URL:           http://www.kde.org/
+BuildRequires: Qt5Core-devel
+BuildRequires: Qt5DBus-devel >= 5.2.0)
+BuildRequires: Qt5Gui-devel >= 5.3.1
+BuildRequires: Qt5Network-devel >= 5.2.0)
+BuildRequires: Qt5Script-devel
+BuildRequires: Qt5Test-devel
+BuildRequires: Qt5UiTools-devel
+BuildRequires: Qt5Widgets-devel
+BuildRequires: Qt5Xml-devel
+BuildRequires: cmake >= 2.8.12
+BuildRequires: gettext-devel
+BuildRequires: kf5-attica-devel >= %{version}
+BuildRequires: kf5-extra-cmake-modules >= 1.0.0
+BuildRequires: kf5-karchive-devel >= %{version}
+BuildRequires: kf5-kauth-devel >= %{version}
+BuildRequires: kf5-kbookmarks-devel >= %{version}
+BuildRequires: kf5-kcodecs-devel >= %{version}
+BuildRequires: kf5-kcompletion-devel >= %{version}
+BuildRequires: kf5-kconfig-devel >= %{version}
+BuildRequires: kf5-kconfigwidgets-devel >= %{version}
+BuildRequires: kf5-kcoreaddons-devel >= %{version}
+BuildRequires: kf5-kdbusaddons-devel >= %{version}
+BuildRequires: kf5-kdoctools-devel >= %{version}
+BuildRequires: kf5-kglobalaccel-devel >= %{version}
+BuildRequires: kf5-kguiaddons-devel >= %{version}
+BuildRequires: kf5-ki18n-devel >= %{version}
+BuildRequires: kf5-kiconthemes-devel >= %{version}
+BuildRequires: kf5-kio-devel >= %{version}
+BuildRequires: kf5-kitemviews-devel >= %{version}
+BuildRequires: kf5-kjobwidgets-devel >= %{version}
+BuildRequires: kf5-knotifications-devel >= %{version}
+BuildRequires: kf5-kparts-devel >= %{version}
+BuildRequires: kf5-kservice-devel >= %{version}
+BuildRequires: kf5-ktextwidgets-devel >= %{version}
+BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
+BuildRequires: kf5-kwindowsystem-devel >= %{version}
+BuildRequires: kf5-kxmlgui-devel >= %{version}
+BuildRequires: kf5-solid-devel >= %{version}
+BuildRequires: kf5-sonnet-devel >= %{version}
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                qt5dir          %{_libdir}/qt5
+
+%description
+Kross is a scripting bridge to embed scripting functionality into an
+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}
+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
+%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) %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) %{qt5dir}/plugins/krossqts.so
+%attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
+%{_mandir}/man1/kf5kross.1*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF5/KrossCore
+%{_includedir}/KF5/KrossUi
+%{_includedir}/KF5/kross_version.h
+%{_libdir}/cmake/KF5Kross
+%attr(755,root,root) %{_libdir}/libKF5KrossCore.so
+%attr(755,root,root) %{_libdir}/libKF5KrossUi.so
+%{qt5dir}/mkspecs/modules/qt_KrossCore.pri
+%{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.078042 seconds and 4 git commands to generate.