SHA256
1
0
forked from pool/qrencode
qrencode/qrencode.spec

94 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package qrencode
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: qrencode
Version: 3.4.1
Release: 0
Summary: C library for encoding data in a QR Code symbol
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)
%else
BuildRequires: libpng-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n libqrencode3
Summary: C library for encoding data in a QR Code symbol
Group: Development/Libraries/C and C++
%description -n libqrencode3
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
Summary: C library for encoding data in a QR Code symbol
Group: Development/Libraries/C and C++
Requires: libqrencode3 = %{version}
%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.
%prep
%setup -q
%patch0 -p1
%build
%configure --with-tools
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.la
%post -n libqrencode3 -p /sbin/ldconfig
%postun -n libqrencode3 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README TODO NEWS COPYING ChangeLog
%doc %{_mandir}/man1/qrencode.1.gz
%{_bindir}/qrencode
%files -n libqrencode3
%defattr(-,root,root,-)
%{_libdir}/libqrencode.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/qrencode.h
%{_libdir}/libqrencode.so
%{_libdir}/pkgconfig/libqrencode.pc
%changelog