From b42279dd5c44b4bdce4ac36ea6abbb24a35d9cae Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 05:30:14 +0100 Subject: [PATCH] automatic version update by autodist [release 3.4.3-1mamba;Mon Aug 12 2013] --- README.md | 2 + libqrencode-3.1.1-libpng.patch | 12 +++++ libqrencode.spec | 80 ++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 libqrencode-3.1.1-libpng.patch create mode 100644 libqrencode.spec diff --git a/README.md b/README.md index 725022a..63d125c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libqrencode +Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 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 is highly robust. + diff --git a/libqrencode-3.1.1-libpng.patch b/libqrencode-3.1.1-libpng.patch new file mode 100644 index 0000000..116ecd7 --- /dev/null +++ b/libqrencode-3.1.1-libpng.patch @@ -0,0 +1,12 @@ +diff -Nru qrencode-3.1.1.orig//configure.ac qrencode-3.1.1/configure.ac +--- qrencode-3.1.1.orig//configure.ac 2010-02-03 01:42:12.000000000 +0100 ++++ qrencode-3.1.1/configure.ac 2011-08-08 12:27:17.283893858 +0200 +@@ -36,7 +36,7 @@ + [build_tools=$withval], [build_tools=yes]) + AM_CONDITIONAL(BUILD_TOOLS, [test "x$build_tools" = "xyes" ]) + if test x$build_tools = xyes ; then +- PKG_CHECK_MODULES(png, "libpng12") ++ PKG_CHECK_MODULES(png, "libpng") + fi + + dnl --with-tests diff --git a/libqrencode.spec b/libqrencode.spec new file mode 100644 index 0000000..5f14373 --- /dev/null +++ b/libqrencode.spec @@ -0,0 +1,80 @@ +Name: libqrencode +Version: 3.4.3 +Release: 1mamba +Summary: A C library for encoding data in a QR Code symbol, +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://fukuchi.org/works/qrencode/index.en.html +Source: http://fukuchi.org/works/qrencode/qrencode-%{version}.tar.bz2 +Patch0: %{name}-3.1.1-libpng.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpng-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 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 is highly robust. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 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 is highly robust. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n qrencode-%{version} +#%patch0 -p1 + +%build +#./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/qrencode +%{_libdir}/libqrencode.so.* +%{_mandir}/man1/qrencode.1* +%doc COPYING ChangeLog NEWS README TODO + +%files devel +%defattr(-,root,root) +%{_includedir}/qrencode.h +%{_libdir}/libqrencode.la +%{_libdir}/libqrencode.so +%{_libdir}/pkgconfig/libqrencode.pc + +%changelog +* Mon Aug 12 2013 Automatic Build System 3.4.3-1mamba +- automatic version update by autodist + +* Fri Mar 01 2013 Automatic Build System 3.4.2-1mamba +- automatic version update by autodist + +* Fri Oct 26 2012 Automatic Build System 3.4.1-1mamba +- automatic version update by autodist + +* Tue Aug 07 2012 Automatic Build System 3.3.1-1mamba +- automatic version update by autodist + +* Mon Aug 08 2011 Silvan Calarco 3.1.1-1mamba +- package created by autospec