]>
Commit | Line | Data |
---|---|---|
d8bf6303 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5770faa2 | 4 | %define kdeappsver 22.04.1 |
d8bf6303 WF |
5 | %define kframever 5.56.0 |
6 | %define qtver 5.15.2 | |
7 | %define kaname kosmindoormap | |
8 | Summary: A library for rendering multi-level OSM indoor maps | |
9 | Name: ka5-%{kaname} | |
5770faa2 | 10 | Version: 22.04.1 |
d8bf6303 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
5770faa2 | 15 | # Source0-md5: dc1e1ad036a1762adeddca4bdebab58e |
d8bf6303 WF |
16 | URL: https://community.kde.org/ |
17 | BuildRequires: Qt5Gui-devel | |
18 | BuildRequires: Qt5Network-devel >= 5.15.2 | |
19 | BuildRequires: Qt5Qml-devel >= 5.15.2 | |
20 | BuildRequires: Qt5Quick-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
22 | BuildRequires: bison | |
23 | BuildRequires: flex | |
24 | BuildRequires: gettext-devel | |
48961da8 WF |
25 | BuildRequires: ka5-kopeninghours-devel >= %{kdeappsver} |
26 | BuildRequires: ka5-kpublictransport-devel >= %{kdeappsver} | |
d8bf6303 WF |
27 | BuildRequires: kf5-extra-cmake-modules >= 5.89 |
28 | BuildRequires: kf5-ki18n-devel | |
29 | BuildRequires: ninja | |
30 | BuildRequires: protobuf-devel | |
31 | BuildRequires: qt5-build >= %{qtver} | |
32 | BuildRequires: rpmbuild(macros) >= 1.605 | |
33 | BuildRequires: shared-mime-info | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xz | |
36 | BuildRequires: zlib-devel | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | A library and QML component for rendering multi-level OSM indoor maps | |
41 | of for example a (large) train station. | |
42 | ||
43 | ## Features | |
44 | ||
45 | User facing: | |
46 | - Floor-level separation of OSM data and inter-floor navigation using | |
47 | stairs, escalators or elevators. | |
48 | - Information model for showing details about a selected amenity. | |
49 | - Support for identifying railway platforms or airport gates in the | |
50 | map data. | |
51 | - Integration with KPublicTransport line meta-data to show line icons | |
52 | for railway platforms. | |
53 | - Integration with KPublicTransport rental vehicle data to show | |
54 | availability of rental bikes. | |
55 | - Integration with KPublicTransport realtime equipment | |
56 | (elevators/escalators/etc) status information. | |
57 | ||
58 | Technical: | |
59 | - QPainter and QML integration interface. | |
60 | - Declarative styling using MapCSS. | |
61 | - Picking support for implementing interaction with map elements. | |
62 | - Support for externally provided overlay elements. | |
63 | - Based on OSM raw data tiles from maps.kde.org. | |
64 | - Pre-loading and caching API for offline support in applications. | |
65 | ||
66 | %package devel | |
67 | Summary: Header files for %{kaname} development | |
68 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
69 | Group: X11/Development/Libraries | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
72 | %description devel | |
73 | Header files for %{kaname} development. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
77 | ||
78 | %prep | |
79 | %setup -q -n %{kaname}-%{version} | |
80 | ||
81 | %build | |
82 | install -d build | |
83 | cd build | |
84 | %cmake \ | |
85 | -G Ninja \ | |
86 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
87 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
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 %{kaname} --all-name --with-kde | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files -f %{kaname}.lang | |
110 | %defattr(644,root,root,755) | |
111 | %doc README.md | |
112 | %ghost %{_libdir}/libKOSM.so.1 | |
113 | %attr(755,root,root) %{_libdir}/libKOSM.so.*.*.* | |
114 | %ghost %{_libdir}/libKOSMIndoorMap.so.1 | |
115 | %attr(755,root,root)%{_libdir}/libKOSMIndoorMap.so.*.*.* | |
116 | %{_libdir}/qt5/qml/org/kde/kosmindoormap/IndoorMap.qml | |
117 | %{_libdir}/qt5/qml/org/kde/kosmindoormap/IndoorMapAttributionLabel.qml | |
118 | %{_libdir}/qt5/qml/org/kde/kosmindoormap/IndoorMapScale.qml | |
119 | %dir %{_libdir}/qt5/qml/org/kde/kosmindoormap | |
120 | %dir %{_libdir}/qt5/qml/org/kde/kosmindoormap/kpublictransport | |
121 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/kosmindoormap/kpublictransport/libkosmindoormap_kpublictransport_integration_plugin.so | |
122 | %{_libdir}/qt5/qml/org/kde/kosmindoormap/kpublictransport/qmldir | |
123 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/kosmindoormap/libkosmindoormapquickplugin.so | |
124 | %{_libdir}/qt5/qml/org/kde/kosmindoormap/qmldir | |
125 | %{_datadir}/qlogging-categories5/org_kde_kosmindoormap.categories | |
126 | ||
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %{_includedir}/KOSM | |
130 | %{_includedir}/KOSMIndoorMap | |
131 | %{_includedir}/kosm | |
132 | %{_includedir}/kosmindoormap | |
133 | %{_includedir}/kosmindoormap_version.h | |
134 | %{_libdir}/cmake/KOSMIndoorMap | |
135 | %{_libdir}/libKOSM.so | |
136 | %{_libdir}/libKOSMIndoorMap.so |