SHA256
1
0
forked from pool/qrencode

Accepting request 155715 from KDE:Distro:Factory

- build also against libpng16
  * libpng16.patch (forwarded request 155691 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/155715
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qrencode?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2013-02-18 12:59:36 +00:00 committed by Git OBS Bridge
parent 741aa51024
commit a21f0eac69
3 changed files with 22 additions and 1 deletions

12
qrencode-libpng16.patch Normal file
View File

@ -0,0 +1,12 @@
Index: qrencode-3.4.1/qrenc.c
===================================================================
--- qrencode-3.4.1.orig/qrenc.c
+++ qrencode-3.4.1/qrenc.c
@@ -26,6 +26,7 @@
#endif
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <png.h>
#include <getopt.h>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 15 11:48:31 UTC 2013 - pgajdos@suse.com
- build also against libpng16
* libpng16.patch
-------------------------------------------------------------------
Sun Nov 25 10:40:40 UTC 2012 - cgiboudeaux@gmx.com

View File

@ -1,7 +1,7 @@
#
# spec file for package qrencode
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -24,6 +24,8 @@ License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://fukuchi.org/works/qrencode/index.en.html
Source: http://fukuchi.org/works/qrencode/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libharu-libpng16.patch -- fix build with libpng 1.6.0, sent to kentaro@fukuchi.org
Patch0: qrencode-libpng16.patch
BuildRequires: pkg-config
%if !0%{?sles_version}
BuildRequires: pkgconfig(libpng)
@ -58,6 +60,7 @@ The capacity of QR Code is up to 7000 digits or 4000 characters, and is highly r
%prep
%setup -q
%patch0 -p1
%build
%configure --with-tools