- new
[packages/kf5-kross.git] / kf5-kross.spec
CommitLineData
f065963f
WF
1# TODO:
2# Not packaged:
3# /usr/include/KF5
4# /usr/lib/qt5/plugins/script
5
6%define _state stable
7%define orgname kross
8
9Summary: Embedding of scripting into applications
10Name: kf5-%{orgname}
11Version: 5.0.0
12Release: 0.1
13License: LGPL v2.1+
14Group: X11/Libraries
15Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/portingAids/%{orgname}-%{version}.tar.xz
16# Source0-md5: e6b72d26ff2f2fff75ccec11fa0c01a6
17URL: http://www.kde.org/
18BuildRequires: Qt5Core-devel
19BuildRequires: Qt5DBus-devel >= 5.2.0)
20BuildRequires: Qt5Gui-devel >= 5.3.1
21BuildRequires: Qt5Network-devel >= 5.2.0)
22BuildRequires: Qt5Script-devel
23BuildRequires: Qt5Test-devel
24BuildRequires: Qt5UiTools-devel
25BuildRequires: Qt5Widgets-devel
26BuildRequires: Qt5Xml-devel
27BuildRequires: cmake >= 2.8.12
28BuildRequires: gettext-devel
29BuildRequires: kf5-attica-devel >= %{version}
30BuildRequires: kf5-extra-cmake-modules >= 1.0.0
31BuildRequires: kf5-karchive-devel >= %{version}
32BuildRequires: kf5-kauth-devel >= %{version}
33BuildRequires: kf5-kbookmarks-devel >= %{version}
34BuildRequires: kf5-kcodecs-devel >= %{version}
35BuildRequires: kf5-kcompletion-devel >= %{version}
36BuildRequires: kf5-kconfig-devel >= %{version}
37BuildRequires: kf5-kconfigwidgets-devel >= %{version}
38BuildRequires: kf5-kcoreaddons-devel >= %{version}
39BuildRequires: kf5-kdbusaddons-devel >= %{version}
40BuildRequires: kf5-kdoctools-devel >= %{version}
41BuildRequires: kf5-kglobalaccel-devel >= %{version}
42BuildRequires: kf5-kguiaddons-devel >= %{version}
43BuildRequires: kf5-ki18n-devel >= %{version}
44BuildRequires: kf5-kiconthemes-devel >= %{version}
45BuildRequires: kf5-kio-devel >= %{version}
46BuildRequires: kf5-kitemviews-devel >= %{version}
47BuildRequires: kf5-kjobwidgets-devel >= %{version}
48BuildRequires: kf5-knotifications-devel >= %{version}
49BuildRequires: kf5-kparts-devel >= %{version}
50BuildRequires: kf5-kservice-devel >= %{version}
51BuildRequires: kf5-ktextwidgets-devel >= %{version}
52BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
53BuildRequires: kf5-kwindowsystem-devel >= %{version}
54BuildRequires: kf5-kxmlgui-devel >= %{version}
55BuildRequires: kf5-solid-devel >= %{version}
56BuildRequires: kf5-sonnet-devel >= %{version}
57BuildRequires: rpmbuild(macros) >= 1.164
58BuildRequires: tar >= 1:1.22
59BuildRequires: xz
60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62%define qt5dir %{_libdir}/qt5
63
64%description
65Kross is a scripting bridge to embed scripting functionality into an
66application. It supports QtScript as a scripting interpreter backend.
67
68%package devel
69Summary: Header files for %{orgname} development
70Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
71Group: X11/Development/Libraries
72Requires: %{name} = %{version}-%{release}
73
74%description devel
75Header files for %{orgname} development.
76
77%description devel -l pl.UTF-8
78Pliki nagłówkowe dla programistów używających %{orgname}.
79
80%prep
81%setup -q -n %{orgname}-%{version}
82
83%build
84install -d build
85cd build
86%cmake \
87 -DBIN_INSTALL_DIR=%{_bindir} \
88 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
89 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
90 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
91 -DQML_INSTALL_DIR=%{qt5dir}/qml \
92 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
93 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
94 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
95 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
96 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
97 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
98 -D_IMPORT_PREFIX=%{_prefix} \
99 ../
100%{__make}
101
102%install
103rm -rf $RPM_BUILD_ROOT
104
105%{__make} -C build/ install \
106 DESTDIR=$RPM_BUILD_ROOT
107
108%find_lang %{orgname}5
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%post -p /sbin/ldconfig
114%postun -p /sbin/ldconfig
115
116%files -f %{orgname}5.lang
117%defattr(644,root,root,755)
118%doc README.md
119%attr(755,root,root) %{_bindir}/kf5kross
120%attr(755,root,root) %ghost %{_libdir}/libKF5KrossCore.so.5
121%attr(755,root,root) %{_libdir}/libKF5KrossCore.so.5.0.0
122%attr(755,root,root) %ghost %{_libdir}/libKF5KrossUi.so.5
123%attr(755,root,root) %{_libdir}/libKF5KrossUi.so.5.0.0
124%attr(755,root,root) %{qt5dir}/plugins/KrossModuleForms.so
125%attr(755,root,root) %{qt5dir}/plugins/KrossModuleKdeTranslation.so
126%attr(755,root,root) %{qt5dir}/plugins/krossqts.so
127%attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
128%{_mandir}/man1/kf5kross.1*
129
130%files devel
131%defattr(644,root,root,755)
132%{_includedir}/KF5/KrossCore
133%{_includedir}/KF5/KrossUi
134%{_includedir}/KF5/kross_version.h
135%{_libdir}/cmake/KF5Kross
136%attr(755,root,root) %{_libdir}/libKF5KrossCore.so
137%attr(755,root,root) %{_libdir}/libKF5KrossUi.so
138%{qt5dir}/mkspecs/modules/qt_KrossCore.pri
139%{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.159631 seconds and 4 git commands to generate.