packages: qrencode/qrencode-libpng.patch (NEW), qrencode/qrencode.spec (NEW...
arekm
arekm at pld-linux.org
Sat Jul 23 21:33:54 CEST 2011
Author: arekm Date: Sat Jul 23 19:33:54 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/qrencode:
qrencode-libpng.patch (NONE -> 1.1) (NEW), qrencode.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/qrencode/qrencode-libpng.patch
diff -u /dev/null packages/qrencode/qrencode-libpng.patch:1.1
--- /dev/null Sat Jul 23 21:33:54 2011
+++ packages/qrencode/qrencode-libpng.patch Sat Jul 23 21:33:49 2011
@@ -0,0 +1,11 @@
+--- qrencode-3.1.1/configure.ac~ 2010-02-03 01:42:12.000000000 +0100
++++ qrencode-3.1.1/configure.ac 2011-07-23 21:23:33.062373499 +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
================================================================
Index: packages/qrencode/qrencode.spec
diff -u /dev/null packages/qrencode/qrencode.spec:1.1
--- /dev/null Sat Jul 23 21:33:54 2011
+++ packages/qrencode/qrencode.spec Sat Jul 23 21:33:49 2011
@@ -0,0 +1,112 @@
+# $Revision$, $Date$
+Summary: QR Code encoder into PNG image
+Name: qrencode
+Version: 3.1.1
+Release: 1
+License: LGPL v2+
+Group: Applications/File
+URL: http://megaui.net/fukuchi/works/qrencode/index.en.html
+Source0: http://megaui.net/fukuchi/works/qrencode/%{name}-%{version}.tar.bz2
+# Source0-md5: e7feb2c2c65d0f2f4010a14da3ecdb89
+Patch0: %{name}-libpng.patch
+BuildRequires: SDL-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: doxygen
+BuildRequires: libpng-devel
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Qrencode is a utility software using libqrencode to encode string data
+in a QR Code and save as a PNG image.
+
+%package libs
+Summary: A C library for encoding data in a QR Code symbol
+Group: Libraries
+
+%description libs
+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 robustness.
+
+Libqrencode supports QR Code model 2, described in JIS (Japanese
+Industrial Standards) X0510:2004 or ISO/IEC 18004.
+
+%package devel
+Summary: The development files for the qrencode library
+Group: Development/Libraries
+Requires: %{name}-libs = %{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 robustness.
+
+Libqrencode supports QR Code model 2, described in JIS (Japanese
+Industrial Standards) X0510:2004 or ISO/IEC 18004.
+
+This package contains the development files for the qrencode library.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --with-tests \
+ --enable-shared
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# manual
+doxygen
+
+# clean
+rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/qrencode
+%{_mandir}/man1/qrencode.1*
+
+%files libs
+%defattr(644,root,root,755)
+%doc COPYING ChangeLog NEWS README TODO html
+%attr(755,root,root) %{_libdir}/libqrencode.so.*
+%attr(755,root,root) %ghost %{_libdir}/libqrencode.so.*.*.*
+
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libqrencode.so
+%{_includedir}/qrencode.h
+%{_pkgconfigdir}/libqrencode.pc
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/23 19:33:49 arekm
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list