- new
[packages/kf5-kross.git] / kf5-kross.spec
1 # TODO:
2 # Not packaged:
3 # /usr/include/KF5
4 # /usr/lib/qt5/plugins/script
5
6 %define         _state          stable
7 %define         orgname         kross
8
9 Summary:        Embedding of scripting into applications
10 Name:           kf5-%{orgname}
11 Version:        5.0.0
12 Release:        0.1
13 License:        LGPL v2.1+
14 Group:          X11/Libraries
15 Source0:        ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/portingAids/%{orgname}-%{version}.tar.xz
16 # Source0-md5:  e6b72d26ff2f2fff75ccec11fa0c01a6
17 URL:            http://www.kde.org/
18 BuildRequires:  Qt5Core-devel
19 BuildRequires:  Qt5DBus-devel >= 5.2.0)
20 BuildRequires:  Qt5Gui-devel >= 5.3.1
21 BuildRequires:  Qt5Network-devel >= 5.2.0)
22 BuildRequires:  Qt5Script-devel
23 BuildRequires:  Qt5Test-devel
24 BuildRequires:  Qt5UiTools-devel
25 BuildRequires:  Qt5Widgets-devel
26 BuildRequires:  Qt5Xml-devel
27 BuildRequires:  cmake >= 2.8.12
28 BuildRequires:  gettext-devel
29 BuildRequires:  kf5-attica-devel >= %{version}
30 BuildRequires:  kf5-extra-cmake-modules >= 1.0.0
31 BuildRequires:  kf5-karchive-devel >= %{version}
32 BuildRequires:  kf5-kauth-devel >= %{version}
33 BuildRequires:  kf5-kbookmarks-devel >= %{version}
34 BuildRequires:  kf5-kcodecs-devel >= %{version}
35 BuildRequires:  kf5-kcompletion-devel >= %{version}
36 BuildRequires:  kf5-kconfig-devel >= %{version}
37 BuildRequires:  kf5-kconfigwidgets-devel >= %{version}
38 BuildRequires:  kf5-kcoreaddons-devel >= %{version}
39 BuildRequires:  kf5-kdbusaddons-devel >= %{version}
40 BuildRequires:  kf5-kdoctools-devel >= %{version}
41 BuildRequires:  kf5-kglobalaccel-devel >= %{version}
42 BuildRequires:  kf5-kguiaddons-devel >= %{version}
43 BuildRequires:  kf5-ki18n-devel >= %{version}
44 BuildRequires:  kf5-kiconthemes-devel >= %{version}
45 BuildRequires:  kf5-kio-devel >= %{version}
46 BuildRequires:  kf5-kitemviews-devel >= %{version}
47 BuildRequires:  kf5-kjobwidgets-devel >= %{version}
48 BuildRequires:  kf5-knotifications-devel >= %{version}
49 BuildRequires:  kf5-kparts-devel >= %{version}
50 BuildRequires:  kf5-kservice-devel >= %{version}
51 BuildRequires:  kf5-ktextwidgets-devel >= %{version}
52 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
53 BuildRequires:  kf5-kwindowsystem-devel >= %{version}
54 BuildRequires:  kf5-kxmlgui-devel >= %{version}
55 BuildRequires:  kf5-solid-devel >= %{version}
56 BuildRequires:  kf5-sonnet-devel >= %{version}
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 %{orgname} development
70 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{orgname}
71 Group:          X11/Development/Libraries
72 Requires:       %{name} = %{version}-%{release}
73
74 %description devel
75 Header files for %{orgname} development.
76
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe dla programistów używających %{orgname}.
79
80 %prep
81 %setup -q -n %{orgname}-%{version}
82
83 %build
84 install -d build
85 cd build
86 %cmake \
87         -DBIN_INSTALL_DIR=%{_bindir} \
88         -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
89         -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
90         -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
91         -DQML_INSTALL_DIR=%{qt5dir}/qml \
92         -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
93         -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
94         -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
95         -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
96         -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
97         -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
98         -D_IMPORT_PREFIX=%{_prefix} \
99         ../
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} -C build/ install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 %find_lang %{orgname}5
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files -f %{orgname}5.lang
117 %defattr(644,root,root,755)
118 %doc README.md
119 %attr(755,root,root) %{_bindir}/kf5kross
120 %attr(755,root,root) %ghost %{_libdir}/libKF5KrossCore.so.5
121 %attr(755,root,root) %{_libdir}/libKF5KrossCore.so.5.0.0
122 %attr(755,root,root) %ghost %{_libdir}/libKF5KrossUi.so.5
123 %attr(755,root,root) %{_libdir}/libKF5KrossUi.so.5.0.0
124 %attr(755,root,root) %{qt5dir}/plugins/KrossModuleForms.so
125 %attr(755,root,root) %{qt5dir}/plugins/KrossModuleKdeTranslation.so
126 %attr(755,root,root) %{qt5dir}/plugins/krossqts.so
127 %attr(755,root,root) %{qt5dir}/plugins/script/krossqtsplugin.so
128 %{_mandir}/man1/kf5kross.1*
129
130 %files devel
131 %defattr(644,root,root,755)
132 %{_includedir}/KF5/KrossCore
133 %{_includedir}/KF5/KrossUi
134 %{_includedir}/KF5/kross_version.h
135 %{_libdir}/cmake/KF5Kross
136 %attr(755,root,root) %{_libdir}/libKF5KrossCore.so
137 %attr(755,root,root) %{_libdir}/libKF5KrossUi.so
138 %{qt5dir}/mkspecs/modules/qt_KrossCore.pri
139 %{qt5dir}/mkspecs/modules/qt_KrossUi.pri
This page took 0.180896 seconds and 4 git commands to generate.