|
|
|
@ -1,117 +1,88 @@
|
|
|
|
|
# Recent so-version, so we do not bump accidentally.
|
|
|
|
|
%global so_ver 4
|
|
|
|
|
|
|
|
|
|
# Set to 1 when building a bootstrap for a bumped so-name.
|
|
|
|
|
%global bootstrap 0
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%global version_old 4.1.1
|
|
|
|
|
%global so_ver_old 4
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: qrencode
|
|
|
|
|
Version: 4.1.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 3.4.4
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Generate QR 2D barcodes
|
|
|
|
|
Summary(fr): Génère les code-barres en 2D QR
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: http://fukuchi.org/works/qrencode/
|
|
|
|
|
Source0: http://fukuchi.org/works/qrencode/qrencode-%{version}.tar.bz2
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
Source1: http://fukuchi.org/works/qrencode/qrencode-%{version_old}.tar.bz2
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
|
Source0: http://fukuchi.org/works/qrencode/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
|
## For ARM 64 support (RHBZ 926414)
|
|
|
|
|
BuildRequires: autoconf >= 2.69
|
|
|
|
|
BuildRequires: autoconf >= 2.69
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Qrencode is a utility software using libqrencode to encode string data in
|
|
|
|
|
a QR Code and save as a PNG image.
|
|
|
|
|
|
|
|
|
|
%description -l fr
|
|
|
|
|
Qrencode est un logiciel utilitaire utilisant libqrencode pour encoder
|
|
|
|
|
les données dans un QR Code et sauvegarde dans une image PNG.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: QR Code encoding library - Development files
|
|
|
|
|
Summary(fr): Bibliothèque d'encodage QR Code - Fichiers de développement
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The qrencode-devel package contains libraries and header files for developing
|
|
|
|
|
applications that use qrencode.
|
|
|
|
|
|
|
|
|
|
%description devel -l fr
|
|
|
|
|
Le paquet qrencode-devel contient les bibliothèques et les fichiers d'en-tête
|
|
|
|
|
pour le développement d'applications utilisant qrencode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: QR Code encoding library - Shared libraries
|
|
|
|
|
Summary(fr): Bibliothèque d'encodage QR Code - Bibliothèque partagée
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
The qrencode-libs package contains the shared libraries and header files for
|
|
|
|
|
applications that use qrencode.
|
|
|
|
|
|
|
|
|
|
%description libs -l fr
|
|
|
|
|
Le paquet qrencode-libs contient les bibliothèques partagées et les fichiers
|
|
|
|
|
d'en-tête pour les applications utilisant qrencode.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -Tb 0 -p 1
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
mkdir -p bootstrap_ver
|
|
|
|
|
pushd bootstrap_ver
|
|
|
|
|
tar --strip-components=1 -xf %{SOURCE1}
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
## Rebuild configure scripts for ARM 64 support. (RHBZ 926414)
|
|
|
|
|
autoconf
|
|
|
|
|
%configure --with-tests
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
pushd bootstrap_ver
|
|
|
|
|
autoconf
|
|
|
|
|
%{__autoconf}
|
|
|
|
|
%configure --with-tests
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%make_install -C bootstrap_ver
|
|
|
|
|
%{_bindir}/find %{buildroot} -xtype f -not \
|
|
|
|
|
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
|
|
|
|
|
%{_bindir}/find %{buildroot} -type l -not \
|
|
|
|
|
-name 'lib%{name}.so.%{so_ver_old}*' -delete -print
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libqrencode.la
|
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/qrencode
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/libqrencode.la
|
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/qrencode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd ./tests
|
|
|
|
|
cd ./tests
|
|
|
|
|
sh test_all.sh
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/qrencode
|
|
|
|
|
%{_mandir}/man1/qrencode.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc ChangeLog NEWS README TODO
|
|
|
|
|
%{_libdir}/libqrencode.so.%{so_ver}*
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
|
%{_libdir}/libqrencode.so.%{so_ver_old}*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_libdir}/libqrencode.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/qrencode.h
|
|
|
|
@ -120,42 +91,6 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 23 2021 Marcus Müller <marcus@hostalia.de> - 4.1.1-1
|
|
|
|
|
- Update to 4.1.1
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 4.0.2-3
|
|
|
|
|
- Disable bootstrap after systemd rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2019 Björn Esser <besser82@fedoraproject.org> - 4.0.2-2
|
|
|
|
|
- Implement bootstrap logic for so-name bumps
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2019 Paul Wouters <pwouters@redhat.com> - 4.0.2-1
|
|
|
|
|
- Update to 4.0.2 and cleanup by Vasiliy N. Glazov <vascom2@gmail.com>
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Dec 09 2018 Matthieu Saulnier <fantom@fedoraproject.org> - 3.4.4-7
|
|
|
|
|
- Remove French translation in spec file
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|