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