commit c11fda7ff1926dc1854bc04e707602f549d07cc1 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:16:04 2019 -0400 Package init diff --git a/qrencode-4.0.2.tar.bz2 b/qrencode-4.0.2.tar.bz2 new file mode 100644 index 0000000..1c51a0d Binary files /dev/null and b/qrencode-4.0.2.tar.bz2 differ diff --git a/qrencode.spec b/qrencode.spec new file mode 100644 index 0000000..a20be50 --- /dev/null +++ b/qrencode.spec @@ -0,0 +1,85 @@ +Name: qrencode +Version: 4.0.2 +Release: 2 +Summary: Compact library for encoding data in a QR Code symbol +License: LGPLv2+ +URL: https://fukuchi.org/works/qrencode/ +Source0: https://fukuchi.org/works/qrencode/qrencode-%{version}.tar.bz2 + +BuildRequires: gcc chrpath libpng-devel SDL-devel autoconf >= 2.69 +BuildRequires: qrencode + +Provides: qrencode-libs +Obsoletes: qrencode-libs + +%description +Libqrencode is a fast and compact library for encoding data in a QR +Code symbol, a 2D symbology that can be scanned by handy terminals +such as a mobile phone with CCD. The capacity of QR Code is up to +7000 digits or 4000 characters and has high robustness. + +Libqrencode accepts a string or a list of data chunks then encodes +in a QR Code symbol as a bitmap array. While other QR Code +applications generate an image file, using libqrencode allows +applications to render QR Code symbols from raw bitmap data directly. +This library also contains a command-line utility outputs QR Code +images in various formats. + +%package devel +Summary: Header files for qrencode +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for qrencode + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +autoconf +%configure --with-tests +%make_build + +%install +%make_install +%delete_la + +chrpath --delete %{buildroot}%{_bindir}/qrencode + +#Include previous ABI version for temporary binary compatibility +cp -a %{_libdir}/libqrencode.so.3* %{buildroot}%{_libdir} + +%check +pushd ./tests +sh test_all.sh +popd + +%files +%defattr(-,root,root) +%license COPYING +%doc ChangeLog README +%{_bindir}/qrencode +%{_libdir}/libqrencode.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/qrencode.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%files help +%defattr(-,root,root) +%doc NEWS TODO +%{_mandir}/man1/qrencode.1* + +%changelog +* Tue Sep 17 2019 openEuler Buildteam - 4.0.2-2 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:add previous ABI version for temporary binary compatibility + +* Thu Sep 12 2019 openEuler Buildteam - 4.0.2-1 +- Package init