]>
Commit | Line | Data |
---|---|---|
cb03f9e0 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
01863089 | 4 | %define kdeframever 5.97 |
3f3b8e86 | 5 | %define qtver 5.15.2 |
c895eafd AM |
6 | %define kfname kjsembed |
7 | # | |
b5ac5549 | 8 | Summary: Binding Javascript object to QObjects |
c895eafd | 9 | Name: kf5-%{kfname} |
01863089 | 10 | Version: 5.97.0 |
c868bb7f | 11 | Release: 2 |
b5ac5549 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
449856c3 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz |
01863089 | 15 | # Source0-md5: 45cf95eaf299f321dd13ad7b8a17dc97 |
b5ac5549 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= 5.2.0 | |
18 | BuildRequires: Qt5Gui-devel >= 5.3.1 | |
19 | BuildRequires: Qt5Svg-devel | |
20 | BuildRequires: Qt5Test-devel | |
21 | BuildRequires: Qt5UiTools-devel | |
22 | BuildRequires: Qt5Widgets-devel | |
23 | BuildRequires: Qt5Xml-devel | |
24 | BuildRequires: cmake >= 2.8.12 | |
25 | BuildRequires: gettext-devel | |
c20c3753 | 26 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
b5ac5549 WF |
27 | BuildRequires: kf5-karchive-devel >= %{version} |
28 | BuildRequires: kf5-kdoctools-devel >= %{version} | |
29 | BuildRequires: kf5-ki18n-devel >= %{version} | |
30 | BuildRequires: kf5-kjs-devel >= %{version} | |
c20c3753 | 31 | BuildRequires: ninja |
b5ac5549 WF |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %define qt5dir %{_libdir}/qt5 | |
37 | ||
38 | %description | |
39 | KSJEmbed provides a method of binding JavaScript objects to QObjects, | |
40 | so you can script your applications. | |
41 | ||
42 | %package devel | |
c895eafd AM |
43 | Summary: Header files for %{kfname} development |
44 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
b5ac5549 WF |
45 | Group: X11/Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
c895eafd | 49 | Header files for %{kfname} development. |
b5ac5549 WF |
50 | |
51 | %description devel -l pl.UTF-8 | |
c895eafd | 52 | Pliki nagłówkowe dla programistów używających %{kfname}. |
b5ac5549 WF |
53 | |
54 | %prep | |
c895eafd | 55 | %setup -q -n %{kfname}-%{version} |
b5ac5549 WF |
56 | |
57 | %build | |
58 | install -d build | |
59 | cd build | |
c20c3753 | 60 | %cmake -G Ninja \ |
cb03f9e0 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
c895eafd | 62 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
b5ac5549 | 63 | ../ |
c20c3753 | 64 | %ninja_build |
b5ac5549 | 65 | |
cb03f9e0 WF |
66 | %if %{with tests} |
67 | ctest | |
68 | %endif | |
69 | ||
70 | ||
b5ac5549 WF |
71 | %install |
72 | rm -rf $RPM_BUILD_ROOT | |
c20c3753 | 73 | %ninja_install -C build |
b5ac5549 | 74 | |
c895eafd | 75 | %find_lang %{kfname}5 |
b5ac5549 WF |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
c895eafd | 83 | %files -f %{kfname}5.lang |
b5ac5549 WF |
84 | %defattr(644,root,root,755) |
85 | %doc README.md | |
86 | %attr(755,root,root) %{_bindir}/kjscmd5 | |
87 | %attr(755,root,root) %{_bindir}/kjsconsole | |
dcff1893 | 88 | %ghost %{_libdir}/libKF5JsEmbed.so.5 |
c895eafd | 89 | %attr(755,root,root) %{_libdir}/libKF5JsEmbed.so.*.*.* |
b5ac5549 | 90 | %{_mandir}/man1/kjscmd5.1* |
6cdfcf5e WF |
91 | %lang(ca) %{_mandir}/ca/man1/kjscmd5.1* |
92 | %lang(de) %{_mandir}/de/man1/kjscmd5.1* | |
93 | %lang(es) %{_mandir}/es/man1/kjscmd5.1* | |
94 | %lang(it) %{_mandir}/it/man1/kjscmd5.1* | |
95 | %lang(nl) %{_mandir}/nl/man1/kjscmd5.1* | |
96 | %lang(pt) %{_mandir}/pt/man1/kjscmd5.1* | |
97 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kjscmd5.1* | |
98 | %lang(ru) %{_mandir}/ru/man1/kjscmd5.1* | |
99 | %lang(sv) %{_mandir}/sv/man1/kjscmd5.1* | |
100 | %lang(uk) %{_mandir}/uk/man1/kjscmd5.1* | |
101 | %lang(fr) %{_mandir}/fr/man1/kjscmd5.1* | |
b5ac5549 WF |
102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %{_includedir}/KF5/KJsEmbed | |
106 | %{_libdir}/cmake/KF5JsEmbed | |
dcff1893 | 107 | %{_libdir}/libKF5JsEmbed.so |
b5ac5549 | 108 | %{qt5dir}/mkspecs/modules/qt_KJsEmbed.pri |