|
|
09e734b |
# Recent so-version, so we do not bump accidentally.
|
|
|
09e734b |
%global so_ver 4
|
|
|
09e734b |
|
|
|
09e734b |
# Set to 1 when building a bootstrap for a bumped so-name.
|
|
|
adc4fcf |
%global bootstrap 0
|
|
|
09e734b |
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
adc4fcf |
%global version_old 4.0.2
|
|
|
adc4fcf |
%global so_ver_old 4
|
|
|
09e734b |
%endif
|
|
|
09e734b |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
Name: qrencode
|
|
|
1704e42 |
Version: 4.0.2
|
|
|
170ccf7 |
Release: 6%{?dist}
|
|
Tareq Al Jurf |
ff882c8 |
Summary: Generate QR 2D barcodes
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
License: LGPLv2+
|
|
|
d9bca3d |
URL: http://fukuchi.org/works/qrencode/
|
|
|
1704e42 |
Source0: http://fukuchi.org/works/qrencode/qrencode-%{version}.tar.bz2
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
09e734b |
Source1: http://fukuchi.org/works/qrencode/qrencode-%{version_old}.tar.bz2
|
|
|
09e734b |
%endif
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Igor Gnatenko |
7a9b0e4 |
BuildRequires: gcc
|
|
|
1704e42 |
BuildRequires: chrpath
|
|
|
1704e42 |
BuildRequires: libpng-devel
|
|
|
1704e42 |
BuildRequires: SDL-devel
|
|
|
d9bca3d |
## For ARM 64 support (RHBZ 926414)
|
|
|
1704e42 |
BuildRequires: autoconf >= 2.69
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
%description
|
|
Tareq Al Jurf |
ff882c8 |
Qrencode is a utility software using libqrencode to encode string data in
|
|
Tareq Al Jurf |
ff882c8 |
a QR Code and save as a PNG image.
|
|
Tareq Al Jurf |
ff882c8 |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
%package devel
|
|
Tareq Al Jurf |
ff882c8 |
Summary: QR Code encoding library - Development files
|
|
|
ed9e9f9 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
%description devel
|
|
Tareq Al Jurf |
ff882c8 |
The qrencode-devel package contains libraries and header files for developing
|
|
Tareq Al Jurf |
ff882c8 |
applications that use qrencode.
|
|
Tareq Al Jurf |
ff882c8 |
|
|
|
6a96685 |
|
|
|
ed9e9f9 |
%package libs
|
|
|
ed9e9f9 |
Summary: QR Code encoding library - Shared libraries
|
|
|
ed9e9f9 |
|
|
|
ed9e9f9 |
%description libs
|
|
|
ed9e9f9 |
The qrencode-libs package contains the shared libraries and header files for
|
|
|
ed9e9f9 |
applications that use qrencode.
|
|
|
ed9e9f9 |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
%prep
|
|
|
09e734b |
%autosetup -Tb 0 -p 1
|
|
|
09e734b |
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
09e734b |
mkdir -p bootstrap_ver
|
|
|
09e734b |
pushd bootstrap_ver
|
|
|
09e734b |
tar --strip-components=1 -xf %{SOURCE1}
|
|
|
09e734b |
popd
|
|
|
09e734b |
%endif
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
%build
|
|
|
d9bca3d |
## Rebuild configure scripts for ARM 64 support. (RHBZ 926414)
|
|
|
a36b8a9 |
autoconf
|
|
Tareq Al Jurf |
ff882c8 |
%configure --with-tests
|
|
|
1704e42 |
%make_build
|
|
Tareq Al Jurf |
ff882c8 |
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
09e734b |
pushd bootstrap_ver
|
|
|
09e734b |
autoconf
|
|
|
09e734b |
%configure --with-tests
|
|
|
09e734b |
%make_build
|
|
|
09e734b |
popd
|
|
|
09e734b |
%endif
|
|
|
09e734b |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
%install
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
09e734b |
%make_install -C bootstrap_ver
|
|
|
09e734b |
%{_bindir}/find %{buildroot} -xtype f -not \
|
|
|
09e734b |
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
|
|
|
09e734b |
%{_bindir}/find %{buildroot} -type l -not \
|
|
|
09e734b |
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
|
|
|
09e734b |
%endif
|
|
|
09e734b |
|
|
|
09e734b |
%make_install
|
|
|
1704e42 |
rm -f %{buildroot}%{_libdir}/libqrencode.la
|
|
|
1704e42 |
chrpath --delete %{buildroot}%{_bindir}/qrencode
|
|
|
6a96685 |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
%check
|
|
|
09e734b |
pushd ./tests
|
|
Tareq Al Jurf |
ff882c8 |
sh test_all.sh
|
|
|
09e734b |
popd
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
%files
|
|
Tareq Al Jurf |
ff882c8 |
%{_bindir}/qrencode
|
|
|
289f53f |
%{_mandir}/man1/qrencode.1*
|
|
|
ed9e9f9 |
|
|
|
09e734b |
|
|
|
ed9e9f9 |
%files libs
|
|
|
53a48b9 |
%{!?_licensedir:%global license %%doc}
|
|
|
53a48b9 |
%license COPYING
|
|
|
53a48b9 |
%doc ChangeLog NEWS README TODO
|
|
|
09e734b |
%{_libdir}/libqrencode.so.%{so_ver}*
|
|
|
09e734b |
%if 0%{?bootstrap}
|
|
|
09e734b |
%{_libdir}/libqrencode.so.%{so_ver_old}*
|
|
|
09e734b |
%endif
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
%files devel
|
|
Tareq Al Jurf |
ff882c8 |
%{_includedir}/qrencode.h
|
|
Tareq Al Jurf |
ff882c8 |
%{_libdir}/libqrencode.so
|
|
Tareq Al Jurf |
ff882c8 |
%{_libdir}/pkgconfig/libqrencode.pc
|
|
Tareq Al Jurf |
ff882c8 |
|
|
|
09e734b |
|
|
Tareq Al Jurf |
ff882c8 |
%changelog
|
|
|
170ccf7 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-6
|
|
|
170ccf7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
170ccf7 |
|
|
|
cfcf1a6 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-5
|
|
|
cfcf1a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
cfcf1a6 |
|
|
|
15248b7 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-4
|
|
|
15248b7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
15248b7 |
|
|
|
adc4fcf |
* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 4.0.2-3
|
|
|
adc4fcf |
- Disable bootstrap after systemd rebuild
|
|
|
adc4fcf |
|
|
|
09e734b |
* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 4.0.2-2
|
|
|
09e734b |
- Implement bootstrap logic for so-name bumps
|
|
|
09e734b |
|
|
|
1704e42 |
* Tue Jun 25 2019 Paul Wouters <pwouters@redhat.com> - 4.0.2-1
|
|
|
1704e42 |
- Update to 4.0.2 and cleanup by Vasiliy N. Glazov <vascom2@gmail.com>
|
|
|
1704e42 |
|
|
|
0000b93 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-8
|
|
|
0000b93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
0000b93 |
|
|
|
3b03618 |
* Sun Dec 09 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 3.4.4-7
|
|
|
3b03618 |
- Remove French translation in spec file
|
|
|
3b03618 |
|
|
|
7e5e1e1 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-6
|
|
|
7e5e1e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
7e5e1e1 |
|
|
|
f2e85ee |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-5
|
|
|
f2e85ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
f2e85ee |
|
|
|
da003bd |
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.4-4
|
|
|
da003bd |
- Switch to %%ldconfig_scriptlets
|
|
|
da003bd |
|
|
|
f84dad8 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-3
|
|
|
f84dad8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
f84dad8 |
|
|
|
b1b5015 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-2
|
|
|
b1b5015 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b1b5015 |
|
|
|
f5c3076 |
* Sun Jun 04 2017 Peter Gordon <peter@thecodergeek.com> - 3.4.4-1
|
|
|
f5c3076 |
- Update to new upstream bug-fix release (3.4.4).
|
|
|
f5c3076 |
|
|
|
b9d183a |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-7
|
|
|
b9d183a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b9d183a |
|
|
|
6a9766d |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-6
|
|
|
6a9766d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6a9766d |
|
|
|
5add6c2 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-5
|
|
|
5add6c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5add6c2 |
|
|
|
59e873e |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-4
|
|
|
59e873e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
59e873e |
|
|
|
53a48b9 |
* Mon Aug 4 2014 Tom Callaway <spot@fedoraproject.org> - 3.4.2-3
|
|
|
53a48b9 |
- fix license handling
|
|
|
53a48b9 |
|
|
|
76e53b3 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-2
|
|
|
76e53b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
76e53b3 |
|
|
|
d9bca3d |
* Sun Aug 11 2013 Peter Gordon <peter@thecodergeek.com> - 3.4.2-1
|
|
|
d9bca3d |
- Update to new upstream release (3.4.2)
|
|
|
d9bca3d |
- Fixes a memory leak, string-splitting, and Micro QR encoding bugs.
|
|
|
d9bca3d |
- Run autoconf in %%build to add ARM 64 (aarch64) to the configure scripts.
|
|
|
d9bca3d |
- Resolves: #926414 (qrencode: Does not support aarch64 in f19 and rawhide)
|
|
|
d9bca3d |
- Update source/homepage URLs.
|
|
|
d9bca3d |
|
|
|
7fb093c |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-2
|
|
|
7fb093c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
7fb093c |
|
|
|
c7ee99d |
* Fri Jan 25 2013 Matthieu Saulnier <fantom@fedoraproject.org> - 3.4.1-1
|
|
|
c7ee99d |
- Update to 3.4.1
|
|
|
c7ee99d |
|
|
|
ed9e9f9 |
* Fri Sep 21 2012 Matthieu Saulnier <fantom@fedoraproject.org> - 3.3.1-4
|
|
|
ed9e9f9 |
- Add libs subpackage (fix RHBZ #856808)
|
|
|
ed9e9f9 |
|
|
|
6a96685 |
* Thu Aug 16 2012 Matthieu Saulnier <fantom@fedoraproject.org> - 3.3.1-3
|
|
|
6a96685 |
- Add French translation in spec file
|
|
|
6a96685 |
- Fix incomplete removing Group tags in spec file
|
|
|
6a96685 |
|
|
|
5b7fcb0 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-2
|
|
|
5b7fcb0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5b7fcb0 |
|
|
|
289f53f |
* Sat Jun 23 2012 Matthieu Saulnier <fantom@fedoraproject.org> - 3.3.1-1
|
|
|
289f53f |
- update to 3.3.1
|
|
|
289f53f |
- remove "Group" tag in spec file
|
|
|
289f53f |
- fix manfile suffix
|
|
|
289f53f |
- remove patch to fix improper LIBPTHREAD macro in the pkgconfig file:
|
|
|
289f53f |
- upstream issue
|
|
|
289f53f |
|
|
|
f466034 |
* Sat Feb 25 2012 Peter Gordon <peter@thecodergeek.com> - 3.2.0-3
|
|
|
f466034 |
- Fix applying the LIBPTHREAD patch. (Thanks to Matthieu Saulnier.)
|
|
|
f466034 |
|
|
|
3861550 |
* Thu Feb 23 2012 Peter Gordon <peter@thecodergeek.com> - 3.2.0-2
|
|
|
3861550 |
- Add patch to fix improper LIBPTHREAD macro in the pkgconfig file:
|
|
|
3861550 |
+ fix-LIBPTHREAD-macro.patch
|
|
|
3861550 |
- Resolves: #795582 (qrencode-devel: Malformed pkgconfig file causes build to
|
|
|
3861550 |
fail ("@LIBPTHREAD@: No such file or directory"))
|
|
|
3861550 |
|
|
Casper |
680fec3 |
* Sun Jan 15 2012 Matthieu Saulnier <fantom@fedoraproject.org> - 3.2.0-1
|
|
Casper |
680fec3 |
- update to 3.2.0
|
|
Casper |
680fec3 |
- remove BuildRoot tag in spec file
|
|
Casper |
680fec3 |
- remove "rm -rf $RPM_BUILD_ROOT" at the beginning of %%install section
|
|
Casper |
680fec3 |
- remove %%clean section
|
|
Casper |
680fec3 |
- remove %%defattr lines
|
|
Casper |
680fec3 |
- add a joker for libqrencode.so.* files
|
|
Casper |
680fec3 |
|
|
|
855a536 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-7
|
|
|
855a536 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
855a536 |
|
|
|
15c86db |
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 3.1.1-6
|
|
|
15c86db |
- Rebuild for new libpng
|
|
|
15c86db |
|
|
|
e09f97f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-5
|
|
|
e09f97f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e09f97f |
|
|
Tareq Al Jurf |
ff882c8 |
* Tue Jul 13 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-4
|
|
Tareq Al Jurf |
ff882c8 |
- Fixed the rpath problem.
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
* Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-3
|
|
Tareq Al Jurf |
ff882c8 |
- Fixed some small spec mistakes.
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
* Mon Jul 12 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-2
|
|
Tareq Al Jurf |
ff882c8 |
- Fixed some small errors.
|
|
Tareq Al Jurf |
ff882c8 |
|
|
Tareq Al Jurf |
ff882c8 |
* Thu Jul 08 2010 Tareq Al Jurf <taljurf@fedoraproject.org> - 3.1.1-1
|
|
Tareq Al Jurf |
ff882c8 |
- Initial build.
|