%global framework prison Name: kf5-%{framework} Epoch: 9 Summary: KDE Frameworks 5 Tier 1 barcode library Version: 5.51.0 Release: 1%{?dist} License: BSD URL: https://cgit.kde.org/%{framework}.git %global majmin %(echo %{version} | cut -d. -f1-2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz BuildRequires: extra-cmake-modules >= %{majmin} BuildRequires: kf5-rpm-macros >= %{majmin} BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(libdmtx) BuildRequires: pkgconfig(libqrencode) Requires: kf5-filesystem >= %{majmin} %description Prison is a Qt-based barcode abstraction layer/library that provides an uniform access to generation of barcodes with data. %package devel Epoch: 9 Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{framework}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %ldconfig_scriptlets %files %doc README* %license LICENSE %{_kf5_sysconfdir}/xdg/%{framework}.* %{_kf5_libdir}/libKF5Prison.so.5* #%{_kf5_libdir}/qt5/qml/org/kde/prison %files devel %{_kf5_includedir}/prison_version.h %{_kf5_includedir}/prison/ %{_kf5_libdir}/libKF5Prison.so %{_kf5_libdir}/cmake/KF5Prison/ %{_kf5_archdatadir}/mkspecs/modules/qt_Prison.pri %changelog * Sun Nov 04 2018 Rex Dieter - 5.51.0-1 - 5.51.0 * Wed Oct 10 2018 Rex Dieter - 5.51.0-1 - 5.51.0 * Tue Sep 04 2018 Rex Dieter - 5.50.0-1 - 5.50.0 * Tue Aug 07 2018 Rex Dieter - 5.49.0-1 - 5.49.0 * Fri Jul 13 2018 Fedora Release Engineering - 5.48.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Rex Dieter - 5.48.0-1 - 5.48.0 * Thu Jun 07 2018 Rex Dieter - 5.47.0-2 - cleanup, use pkgconfig(Qt5...) style deps, - use %%majmin %%make_build %%ldconfig_scriptlets * Sat Jun 02 2018 Rex Dieter - 5.47.0-1 - 5.47.0 * Sat May 05 2018 Rex Dieter - 5.46.0-1 - 5.46.0 * Sun Apr 08 2018 Rex Dieter - 5.45.0-1 - 5.45.0 * Sat Mar 03 2018 Rex Dieter - 5.44.0-1 - 5.44.0 * Wed Feb 07 2018 Rex Dieter - 5.43.0-1 - 5.43.0 * Mon Jan 08 2018 Rex Dieter - 5.42.0-1 - 5.42.0 * Mon Dec 04 2017 Rex Dieter - 5.41.0-1 - 5.41.0 * Mon Nov 20 2017 Rex Dieter - 5.40.0-1 - 5.40.0 * Fri Sep 29 2017 Rex Dieter - 5.38.0-1 - 5.38.0