- updated to 5.94.0
[packages/kf5-kross.git] / kf5-kross.spec
CommitLineData
258a7185
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
b5e35b25 4%define kdeframever 5.94
61b82a8d 5%define qtver 5.9.0
72cbc600
AM
6%define kfname kross
7#
f065963f 8Summary: Embedding of scripting into applications
72cbc600 9Name: kf5-%{kfname}
b5e35b25 10Version: 5.94.0
06856fdd 11Release: 1
f065963f
WF
12License: LGPL v2.1+
13Group: X11/Libraries
12514778 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
b5e35b25 15# Source0-md5: 0ded971b6d9aa1fdc27d721c022fd6e4
f065963f
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel
bd8a8d7d 18BuildRequires: Qt5DBus-devel >= 5.2.0
f065963f 19BuildRequires: Qt5Gui-devel >= 5.3.1
bd8a8d7d 20BuildRequires: Qt5Network-devel >= 5.2.0
f065963f
WF
21BuildRequires: Qt5Script-devel
22BuildRequires: Qt5Test-devel
23BuildRequires: Qt5UiTools-devel
24BuildRequires: Qt5Widgets-devel
25BuildRequires: Qt5Xml-devel
26BuildRequires: cmake >= 2.8.12
27BuildRequires: gettext-devel
28BuildRequires: kf5-attica-devel >= %{version}
e5b8b87d 29BuildRequires: kf5-extra-cmake-modules >= %{version}
f065963f
WF
30BuildRequires: kf5-karchive-devel >= %{version}
31BuildRequires: kf5-kauth-devel >= %{version}
32BuildRequires: kf5-kbookmarks-devel >= %{version}
33BuildRequires: kf5-kcodecs-devel >= %{version}
34BuildRequires: kf5-kcompletion-devel >= %{version}
35BuildRequires: kf5-kconfig-devel >= %{version}
36BuildRequires: kf5-kconfigwidgets-devel >= %{version}
37BuildRequires: kf5-kcoreaddons-devel >= %{version}
38BuildRequires: kf5-kdbusaddons-devel >= %{version}
39BuildRequires: kf5-kdoctools-devel >= %{version}
40BuildRequires: kf5-kglobalaccel-devel >= %{version}
41BuildRequires: kf5-kguiaddons-devel >= %{version}
42BuildRequires: kf5-ki18n-devel >= %{version}
43BuildRequires: kf5-kiconthemes-devel >= %{version}
44BuildRequires: kf5-kio-devel >= %{version}
45BuildRequires: kf5-kitemviews-devel >= %{version}
46BuildRequires: kf5-kjobwidgets-devel >= %{version}
47BuildRequires: kf5-knotifications-devel >= %{version}
48BuildRequires: kf5-kparts-devel >= %{version}
49BuildRequires: kf5-kservice-devel >= %{version}
50BuildRequires: kf5-ktextwidgets-devel >= %{version}
51BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
52BuildRequires: kf5-kwindowsystem-devel >= %{version}
53BuildRequires: kf5-kxmlgui-devel >= %{version}
54BuildRequires: kf5-solid-devel >= %{version}
55BuildRequires: kf5-sonnet-devel >= %{version}
df669820 56BuildRequires: ninja
f065963f
WF
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
72cbc600
AM
69Summary: Header files for %{kfname} development
70Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
f065963f
WF
71Group: X11/Development/Libraries
72Requires: %{name} = %{version}-%{release}
73
74%description devel
72cbc600 75Header files for %{kfname} development.
f065963f
WF
76
77%description devel -l pl.UTF-8
72cbc600 78Pliki nagłówkowe dla programistów używających %{kfname}.
f065963f
WF
79
80%prep
72cbc600 81%setup -q -n %{kfname}-%{version}
f065963f
WF
82
83%build
84install -d build
85cd build
df669820 86%cmake -G Ninja \
258a7185 87 %{!?with_tests:-DBUILD_TESTING=OFF} \
72cbc600 88 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
f065963f 89 ../
df669820 90%ninja_build
f065963f 91
258a7185
WF
92%if %{with tests}
93ctest
94%endif
95
96
f065963f
WF
97%install
98rm -rf $RPM_BUILD_ROOT
df669820 99%ninja_install -C build
f065963f 100
72cbc600 101%find_lang %{kfname}5
f065963f
WF
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%post -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
108
72cbc600 109%files -f %{kfname}5.lang
f065963f
WF
110%defattr(644,root,root,755)
111%doc README.md
112%attr(755,root,root) %{_bindir}/kf5kross
2972a563 113%ghost %{_libdir}/libKF5KrossCore.so.5
72cbc600 114%attr(755,root,root) %{_libdir}/libKF5KrossCore.so.*.*.*
2972a563 115%ghost %{_libdir}/libKF5KrossUi.so.5
72cbc600
AM
116%attr(755,root,root) %{_libdir}/libKF5KrossUi.so.*.*.*
117%attr(755,root,root) %{qt5dir}/plugins/krossmoduleforms.so
118%attr(755,root,root) %{qt5dir}/plugins/krossmodulekdetranslation.so
f065963f
WF
119%attr(755,root,root) %{qt5dir}/plugins/krossqts.so
120%attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
121%{_mandir}/man1/kf5kross.1*
00f75251
WF
122%lang(ca) %{_mandir}/ca/man1/kf5kross.1*
123%lang(de) %{_mandir}/de/man1/kf5kross.1*
124%lang(es) %{_mandir}/es/man1/kf5kross.1*
125%lang(it) %{_mandir}/it/man1/kf5kross.1*
126%lang(nl) %{_mandir}/nl/man1/kf5kross.1*
127%lang(pt) %{_mandir}/pt/man1/kf5kross.1*
128%lang(pt_BR) %{_mandir}/pt_BR/man1/kf5kross.1*
129%lang(sv) %{_mandir}/sv/man1/kf5kross.1*
130%lang(uk) %{_mandir}/uk/man1/kf5kross.1*
f065963f
WF
131
132%files devel
133%defattr(644,root,root,755)
134%{_includedir}/KF5/KrossCore
135%{_includedir}/KF5/KrossUi
136%{_includedir}/KF5/kross_version.h
137%{_libdir}/cmake/KF5Kross
2972a563
WF
138%{_libdir}/libKF5KrossCore.so
139%{_libdir}/libKF5KrossUi.so
f065963f
WF
140%{qt5dir}/mkspecs/modules/qt_KrossCore.pri
141%{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.102167 seconds and 4 git commands to generate.