Rex Dieter f1c590d
9da5797
%undefine __cmake_in_source_build
Rex Dieter f1c590d
a7432a2
Name:           prison
a7432a2
Summary:        A Qt-based barcode abstraction library
Rex Dieter 6505b1c
Version:        1.1.1
78aac5b
Release:        22%{?dist}
a7432a2
a7432a2
License:        MIT
a7432a2
URL:            https://projects.kde.org/projects/kdesupport/prison
Rex Dieter 6505b1c
Source0:        http://download.kde.org/stable/prison/%{version}/src/%{name}-%{version}.tar.xz
a7432a2
Rex Dieter e5f144c
## upstream patches
Rex Dieter e5f144c
# post 1.1.1 commits from master/ branch
Rex Dieter e5f144c
Patch1: 0001-Add-automoc-increase-cmake-version.patch
Rex Dieter e5f144c
Patch2: 0002-Allow-to-build-with-qt5-and-qt4.patch
Rex Dieter e5f144c
Patch3: 0003-Generate-cmake-config-version-file.patch
Rex Dieter e5f144c
Patch4: 0004-Fix-option-description.patch
Rex Dieter e5f144c
Patch5: 0005-Fix-major-for-qt5.patch
Rex Dieter e5f144c
Patch6: 0006-Use-ECM-to-locate-the-correct-install-paths-on-a-Qt5.patch
Rex Dieter e5f144c
Patch7: 0007-Use-PRISON_VERSION_MAJOR-for-SOVERSION.patch
Rex Dieter e5f144c
Patch8: 0008-increase-ECM.patch
Rex Dieter e5f144c
Patch9: 0009-Set-also-QT_QTGUI_LIBARARY-as-that-this-variable-is-.patch
Rex Dieter e5f144c
## upstreamable patch
Rex Dieter e5f144c
# make -qt5 build fully parallel-installable
Rex Dieter b9b3081
# needs work to be upstreamable, see 'sed' down in %%install section
Rex Dieter e5f144c
Patch10: 0010-parallel-installable-prison-qt5.patch
Rex Dieter e5f144c
a7432a2
BuildRequires:  cmake
Rex Dieter e5f144c
BuildRequires:  extra-cmake-modules
Rex Dieter 51c0b89
BuildRequires:  kf5-rpm-macros
Rex Dieter e5f144c
BuildRequires:  pkgconfig(libdmtx)
Rex Dieter e5f144c
BuildRequires:  pkgconfig(libqrencode)
Rex Dieter e5f144c
BuildRequires:  pkgconfig(QtGui)
Rex Dieter f1c590d
%if 0%{?qt5}
Rex Dieter e5f144c
BuildRequires:  pkgconfig(Qt5Gui) pkgconfig(Qt5Widgets) pkgconfig(Qt5Test)
Rex Dieter f1c590d
%endif
a7432a2
a7432a2
%description
a7432a2
Prison is a Qt-based barcode abstraction layer/library that provides
a7432a2
an uniform access to generation of barcodes with data.
a7432a2
a7432a2
%package devel
a7432a2
Summary: Development files for %{name}
a7432a2
Requires: %{name}%{?_isa} = %{version}-%{release}
a7432a2
%description devel
a7432a2
%{summary}
a7432a2
Rex Dieter e5f144c
%package qt5
Rex Dieter e5f144c
Summary: A Qt5-based barcode abstraction library
Rex Dieter e5f144c
%description qt5
Rex Dieter e5f144c
Prison is a Qt5-based barcode abstraction layer/library that provides
Rex Dieter e5f144c
an uniform access to generation of barcodes with data.
Rex Dieter e5f144c
Rex Dieter e5f144c
%package qt5-devel
Rex Dieter e5f144c
Summary: Development files for %{name}-qt5
Rex Dieter e5f144c
Requires: %{name}-qt5%{?_isa} = %{version}-%{release}
Rex Dieter e5f144c
%description qt5-devel
Rex Dieter e5f144c
%{summary}
Rex Dieter e5f144c
Rex Dieter e5f144c
a7432a2
a7432a2
%prep
Rex Dieter e5f144c
%autosetup -p1
a7432a2
a7432a2
a7432a2
%build
9da5797
%cmake
a7432a2
9da5797
%cmake_build
Rex Dieter e5f144c
a7432a2
a7432a2
%install
9da5797
%cmake_install
a7432a2
a7432a2
0479f94
%ldconfig_scriptlets
a7432a2
a7432a2
%files
Rex Dieter 6505b1c
%license LICENSE
bac616c
%{_libdir}/libprison.so.0*
a7432a2
a7432a2
%files devel
a7432a2
%{_includedir}/prison/
a7432a2
%{_libdir}/libprison.so
a7432a2
%{_libdir}/cmake/Prison/
a7432a2
bac616c
a7432a2
%changelog
78aac5b
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-22
78aac5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
78aac5b
31337f1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-21
31337f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
31337f1
d4ef86e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-20
d4ef86e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d4ef86e
49d1121
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-19
49d1121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
49d1121
d7a423f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-18
d7a423f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d7a423f
9da5797
* Mon Aug 10 2020 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-17
9da5797
- FTBFS, use new cmake macros, drop qt5 support (in kf5-prison these days)
9da5797
0b0a09c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-16
0b0a09c
- Second attempt - Rebuilt for
0b0a09c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b0a09c
6ffea64
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-15
6ffea64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6ffea64
7d8e6ba
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-14
7d8e6ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7d8e6ba
32c37f3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-13
32c37f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
32c37f3
b80bf0f
* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 1.1.1-12
b80bf0f
- Rebuilt (libqrencode.so.4)
b80bf0f
0b1765c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-11
0b1765c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0b1765c
14161ba
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
14161ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
14161ba
c4b0a2e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
c4b0a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c4b0a2e
029f643
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
029f643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
029f643
542bfca
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
542bfca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
542bfca
07b41f0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
07b41f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
07b41f0
Rex Dieter f1c590d
* Sun Feb 07 2016 Rex Dieter <rdieter@fedoraproject.org> 1.1.1-5
Rex Dieter f1c590d
- drop qt5 support, wait for proper kf5-prison to land instead
Rex Dieter f1c590d
a93b674
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
a93b674
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a93b674
Rex Dieter 51c0b89
* Tue Oct 20 2015 Rex Dieter <rdieter@fedoraproject.org> 1.1.1-3
Rex Dieter 51c0b89
- use %%cmake_kf5 (to get some paths right without patching)
Rex Dieter 51c0b89
Rex Dieter e5f144c
* Tue Oct 20 2015 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-2
Rex Dieter e5f144c
- pull in upstream fixes
Rex Dieter e5f144c
- provide parallel-installable -qt5 -qt5-devel subpkgs
Rex Dieter e5f144c
- pkgconfig-style deps
Rex Dieter e5f144c
Rex Dieter 6505b1c
* Tue Oct 20 2015 Rex Dieter <rdieter@fedoraproject.org> 1.1.1-1
Rex Dieter 6505b1c
- prison-1.1.1, .spec polish
Rex Dieter 6505b1c
0a41d6b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-11
0a41d6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0a41d6b
f36daee
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0-10
f36daee
- Rebuilt for GCC 5 C++11 ABI change
f36daee
4369d3f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
4369d3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4369d3f
39f0222
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
39f0222
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
39f0222
377f2d6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
377f2d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
377f2d6
4139fc5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
4139fc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4139fc5
2813bae
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
2813bae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2813bae
f81b046
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
f81b046
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f81b046
bac616c
* Wed Jun 29 2011 Rex Dieter <rdieter@fedoraproject.org> - 1.0-3
bac616c
- %%files: track soname
bac616c
- minor cosmetics
bac616c
a7432a2
* Fri May 20 2011 Jaroslav Reznik <jreznik@redhat.com> - 1.0-2
a7432a2
- prison is qt only library
a7432a2
a7432a2
* Fri May 20 2011 Jaroslav Reznik <jreznik@redhat.com> - 1.0-1
bac616c
- initial package