]>
Commit | Line | Data |
---|---|---|
4eb703a6 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
3a6484f9 | 4 | %define kdeframever 5.110 |
d0355946 | 5 | %define qtver 5.15.2 |
ba2c222c WF |
6 | %define kfname prison |
7 | ||
8 | Summary: A barcode abstraction layer | |
9 | Name: kf5-%{kfname} | |
3a6484f9 | 10 | Version: 5.110.0 |
6de6fd04 | 11 | Release: 1 |
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 |
3a6484f9 | 15 | # Source0-md5: 4866aa015194650a6ecdca06782702b2 |
ba2c222c WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
efc9de6a | 19 | BuildRequires: Qt5Multimedia-devel >= %{qtver} |
ba2c222c WF |
20 | BuildRequires: Qt5Test-devel >= %{qtver} |
21 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
459e9493 | 22 | BuildRequires: cmake >= 3.16 |
ba2c222c WF |
23 | BuildRequires: hspell-devel |
24 | BuildRequires: hunspell-devel | |
2aae950e | 25 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
ba2c222c | 26 | BuildRequires: libdmtx-devel |
106c743a | 27 | BuildRequires: ninja |
ba2c222c WF |
28 | BuildRequires: qrencode-devel |
29 | BuildRequires: rpmbuild(macros) >= 1.164 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRequires: zlib-devel | |
325cc10e | 33 | BuildRequires: zxing-cpp-nu-devel >= 1.2.0 |
ba2c222c WF |
34 | Requires: kf5-dirs |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %define qt5dir %{_libdir}/qt5 | |
38 | ||
39 | %description | |
40 | Prison has a Prison::AbstractBarcode, which is the base class for the | |
41 | actual barcode generators, currently Prison::QRCodeBarcode and | |
42 | Prison::DataMatrixBarcode are the two implemented barcode generators. | |
43 | ||
44 | Prison currently ships a BarcodeWidget, which is a QWidget with a | |
45 | barcode painted upon, as well as a BarcodeItem, which is a | |
46 | QGraphicsItem with a barcode painted upon. | |
47 | ||
48 | %package devel | |
49 | Summary: Header files for %{kfname} development | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
51 | Group: X11/Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Header files for %{kfname} development. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
59 | ||
60 | %prep | |
61 | %setup -q -n %{kfname}-%{version} | |
62 | ||
63 | %build | |
459e9493 WF |
64 | %cmake -B build \ |
65 | -G Ninja \ | |
4eb703a6 | 66 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
459e9493 WF |
67 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
68 | ||
69 | %ninja_build -C build | |
ba2c222c | 70 | |
4eb703a6 | 71 | %if %{with tests} |
459e9493 | 72 | %ninja_build -C build test |
4eb703a6 WF |
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 |