]>
Commit | Line | Data |
---|---|---|
4eb703a6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
f65180b9 | 4 | %define kdeframever 5.99 |
d0355946 | 5 | %define qtver 5.15.2 |
ba2c222c WF |
6 | %define kfname prison |
7 | ||
8 | Summary: A barcode abstraction layer | |
9 | Name: kf5-%{kfname} | |
f65180b9 | 10 | Version: 5.99.0 |
606b877b | 11 | Release: 2 |
ba2c222c WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
d443f110 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
f65180b9 | 15 | # Source0-md5: bc7c205bbf6e58248f6e074f13c12a50 |
ba2c222c WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | BuildRequires: hspell-devel | |
23 | BuildRequires: hunspell-devel | |
2aae950e | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
ba2c222c | 25 | BuildRequires: libdmtx-devel |
106c743a | 26 | BuildRequires: ninja |
ba2c222c WF |
27 | BuildRequires: qrencode-devel |
28 | BuildRequires: rpmbuild(macros) >= 1.164 | |
29 | BuildRequires: tar >= 1:1.22 | |
30 | BuildRequires: xz | |
31 | BuildRequires: zlib-devel | |
325cc10e | 32 | BuildRequires: zxing-cpp-nu-devel >= 1.2.0 |
ba2c222c WF |
33 | Requires: kf5-dirs |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %define qt5dir %{_libdir}/qt5 | |
37 | ||
38 | %description | |
39 | Prison has a Prison::AbstractBarcode, which is the base class for the | |
40 | actual barcode generators, currently Prison::QRCodeBarcode and | |
41 | Prison::DataMatrixBarcode are the two implemented barcode generators. | |
42 | ||
43 | Prison currently ships a BarcodeWidget, which is a QWidget with a | |
44 | barcode painted upon, as well as a BarcodeItem, which is a | |
45 | QGraphicsItem with a barcode painted upon. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for %{kfname} development | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
50 | Group: X11/Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | Header files for %{kfname} development. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
58 | ||
59 | %prep | |
60 | %setup -q -n %{kfname}-%{version} | |
61 | ||
62 | %build | |
63 | install -d build | |
64 | cd build | |
106c743a | 65 | %cmake -G Ninja \ |
4eb703a6 | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ba2c222c WF |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
68 | ../ | |
106c743a | 69 | %ninja_build |
ba2c222c | 70 | |
4eb703a6 WF |
71 | %if %{with tests} |
72 | ctest | |
73 | %endif | |
74 | ||
75 | ||
ba2c222c WF |
76 | %install |
77 | rm -rf $RPM_BUILD_ROOT | |
106c743a | 78 | %ninja_install -C build |
ba2c222c WF |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
ab96ab60 | 88 | %{_datadir}/qlogging-categories5/prison.categories |
ba2c222c WF |
89 | %ghost %{_libdir}/libKF5Prison.so.5 |
90 | %{_libdir}/libKF5Prison.so.5.*.* | |
b5af0a68 WF |
91 | %ghost %{_libdir}/libKF5PrisonScanner.so.5 |
92 | %{_libdir}/libKF5PrisonScanner.so.5.*.* | |
627dc03b | 93 | %{_libdir}/qt5/qml/org/kde/prison |
84e05b14 | 94 | %{_datadir}/qlogging-categories5/prison.renamecategories |
ba2c222c WF |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
325cc10e | 98 | %{_includedir}/KF5/Prison |
ba2c222c WF |
99 | %{_libdir}/cmake/KF5Prison |
100 | %{_libdir}/qt5/mkspecs/modules/qt_Prison.pri | |
101 | %{_libdir}/libKF5Prison.so | |
b5af0a68 WF |
102 | %{_includedir}/KF5/PrisonScanner |
103 | %{_libdir}/libKF5PrisonScanner.so |