- updated to 5.19.0
[packages/kf5-kross.git] / kf5-kross.spec
1 %define         kdeframever     5.19
2 %define         qtver           5.3.2
3 %define         kfname          kross
4 #
5 Summary:        Embedding of scripting into applications
6 Name:           kf5-%{kfname}
7 Version:        5.19.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:  3ed3ca232a3b6a2859a37a7b0017ded9
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:  rpmbuild(macros) >= 1.164
54 BuildRequires:  tar >= 1:1.22
55 BuildRequires:  xz
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %define         qt5dir          %{_libdir}/qt5
59
60 %description
61 Kross is a scripting bridge to embed scripting functionality into an
62 application. It supports QtScript as a scripting interpreter backend.
63
64 %package devel
65 Summary:        Header files for %{kfname} development
66 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kfname}
67 Group:          X11/Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69
70 %description devel
71 Header files for %{kfname} development.
72
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe dla programistów używających %{kfname}.
75
76 %prep
77 %setup -q -n %{kfname}-%{version}
78
79 %build
80 install -d build
81 cd build
82 %cmake \
83         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
84         ../
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} -C build/ install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %find_lang %{kfname}5
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %files -f %{kfname}5.lang
102 %defattr(644,root,root,755)
103 %doc README.md
104 %attr(755,root,root) %{_bindir}/kf5kross
105 %attr(755,root,root) %ghost %{_libdir}/libKF5KrossCore.so.5
106 %attr(755,root,root) %{_libdir}/libKF5KrossCore.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libKF5KrossUi.so.5
108 %attr(755,root,root) %{_libdir}/libKF5KrossUi.so.*.*.*
109 %attr(755,root,root) %{qt5dir}/plugins/krossmoduleforms.so
110 %attr(755,root,root) %{qt5dir}/plugins/krossmodulekdetranslation.so
111 %attr(755,root,root) %{qt5dir}/plugins/krossqts.so
112 %attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
113 %{_mandir}/man1/kf5kross.1*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %{_includedir}/KF5/KrossCore
118 %{_includedir}/KF5/KrossUi
119 %{_includedir}/KF5/kross_version.h
120 %{_libdir}/cmake/KF5Kross
121 %attr(755,root,root) %{_libdir}/libKF5KrossCore.so
122 %attr(755,root,root) %{_libdir}/libKF5KrossUi.so
123 %{qt5dir}/mkspecs/modules/qt_KrossCore.pri
124 %{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.063114 seconds and 3 git commands to generate.