- updated to 5.94.0
[packages/kf5-kross.git] / kf5-kross.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeframever     5.94
5 %define         qtver           5.9.0
6 %define         kfname          kross
7 #
8 Summary:        Embedding of scripting into applications
9 Name:           kf5-%{kfname}
10 Version:        5.94.0
11 Release:        1
12 License:        LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
15 # Source0-md5:  0ded971b6d9aa1fdc27d721c022fd6e4
16 URL:            http://www.kde.org/
17 BuildRequires:  Qt5Core-devel
18 BuildRequires:  Qt5DBus-devel >= 5.2.0
19 BuildRequires:  Qt5Gui-devel >= 5.3.1
20 BuildRequires:  Qt5Network-devel >= 5.2.0
21 BuildRequires:  Qt5Script-devel
22 BuildRequires:  Qt5Test-devel
23 BuildRequires:  Qt5UiTools-devel
24 BuildRequires:  Qt5Widgets-devel
25 BuildRequires:  Qt5Xml-devel
26 BuildRequires:  cmake >= 2.8.12
27 BuildRequires:  gettext-devel
28 BuildRequires:  kf5-attica-devel >= %{version}
29 BuildRequires:  kf5-extra-cmake-modules >= %{version}
30 BuildRequires:  kf5-karchive-devel >= %{version}
31 BuildRequires:  kf5-kauth-devel >= %{version}
32 BuildRequires:  kf5-kbookmarks-devel >= %{version}
33 BuildRequires:  kf5-kcodecs-devel >= %{version}
34 BuildRequires:  kf5-kcompletion-devel >= %{version}
35 BuildRequires:  kf5-kconfig-devel >= %{version}
36 BuildRequires:  kf5-kconfigwidgets-devel >= %{version}
37 BuildRequires:  kf5-kcoreaddons-devel >= %{version}
38 BuildRequires:  kf5-kdbusaddons-devel >= %{version}
39 BuildRequires:  kf5-kdoctools-devel >= %{version}
40 BuildRequires:  kf5-kglobalaccel-devel >= %{version}
41 BuildRequires:  kf5-kguiaddons-devel >= %{version}
42 BuildRequires:  kf5-ki18n-devel >= %{version}
43 BuildRequires:  kf5-kiconthemes-devel >= %{version}
44 BuildRequires:  kf5-kio-devel >= %{version}
45 BuildRequires:  kf5-kitemviews-devel >= %{version}
46 BuildRequires:  kf5-kjobwidgets-devel >= %{version}
47 BuildRequires:  kf5-knotifications-devel >= %{version}
48 BuildRequires:  kf5-kparts-devel >= %{version}
49 BuildRequires:  kf5-kservice-devel >= %{version}
50 BuildRequires:  kf5-ktextwidgets-devel >= %{version}
51 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
52 BuildRequires:  kf5-kwindowsystem-devel >= %{version}
53 BuildRequires:  kf5-kxmlgui-devel >= %{version}
54 BuildRequires:  kf5-solid-devel >= %{version}
55 BuildRequires:  kf5-sonnet-devel >= %{version}
56 BuildRequires:  ninja
57 BuildRequires:  rpmbuild(macros) >= 1.164
58 BuildRequires:  tar >= 1:1.22
59 BuildRequires:  xz
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %define         qt5dir          %{_libdir}/qt5
63
64 %description
65 Kross is a scripting bridge to embed scripting functionality into an
66 application. It supports QtScript as a scripting interpreter backend.
67
68 %package devel
69 Summary:        Header files for %{kfname} development
70 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kfname}
71 Group:          X11/Development/Libraries
72 Requires:       %{name} = %{version}-%{release}
73
74 %description devel
75 Header files for %{kfname} development.
76
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe dla programistów używających %{kfname}.
79
80 %prep
81 %setup -q -n %{kfname}-%{version}
82
83 %build
84 install -d build
85 cd build
86 %cmake -G Ninja \
87         %{!?with_tests:-DBUILD_TESTING=OFF} \
88         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
89         ../
90 %ninja_build
91
92 %if %{with tests}
93 ctest
94 %endif
95
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99 %ninja_install -C build
100
101 %find_lang %{kfname}5
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files -f %{kfname}5.lang
110 %defattr(644,root,root,755)
111 %doc README.md
112 %attr(755,root,root) %{_bindir}/kf5kross
113 %ghost %{_libdir}/libKF5KrossCore.so.5
114 %attr(755,root,root) %{_libdir}/libKF5KrossCore.so.*.*.*
115 %ghost %{_libdir}/libKF5KrossUi.so.5
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
119 %attr(755,root,root) %{qt5dir}/plugins/krossqts.so
120 %attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
121 %{_mandir}/man1/kf5kross.1*
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*
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
138 %{_libdir}/libKF5KrossCore.so
139 %{_libdir}/libKF5KrossUi.so
140 %{qt5dir}/mkspecs/modules/qt_KrossCore.pri
141 %{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.087388 seconds and 4 git commands to generate.