2011-07-21 11:55:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package qrencode
|
|
|
|
#
|
2020-10-15 17:53:51 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-07-21 11:55:09 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-09 12:19:53 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-21 11:55:09 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-01-26 13:57:11 +01:00
|
|
|
%define so_ver 4
|
2011-07-21 11:54:55 +02:00
|
|
|
Name: qrencode
|
2020-10-15 17:53:51 +02:00
|
|
|
Version: 4.1.1
|
2012-01-04 08:01:19 +01:00
|
|
|
Release: 0
|
2011-07-21 11:54:55 +02:00
|
|
|
Summary: C library for encoding data in a QR Code symbol
|
2019-09-09 12:19:53 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2013-07-30 16:08:37 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
2020-10-15 17:53:51 +02:00
|
|
|
URL: https://github.com/fukuchi/libqrencode
|
2019-09-09 12:19:53 +02:00
|
|
|
Source0: https://fukuchi.org/works/qrencode/%{name}-%{version}.tar.bz2
|
2014-09-12 11:19:16 +02:00
|
|
|
Source1: baselibs.conf
|
2018-01-26 13:57:11 +01:00
|
|
|
BuildRequires: cmake >= 3.1.0
|
2017-07-25 11:39:09 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-01-04 08:01:19 +01:00
|
|
|
BuildRequires: pkgconfig(libpng)
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D
|
2013-07-30 16:08:37 +02:00
|
|
|
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.
|
2011-07-21 11:54:55 +02:00
|
|
|
|
2013-07-30 16:08:37 +02:00
|
|
|
%package -n libqrencode%{so_ver}
|
2011-07-21 11:54:55 +02:00
|
|
|
Summary: C library for encoding data in a QR Code symbol
|
2013-07-30 16:08:37 +02:00
|
|
|
Group: System/Libraries
|
2011-07-21 11:54:55 +02:00
|
|
|
|
2013-07-30 16:08:37 +02:00
|
|
|
%description -n libqrencode%{so_ver}
|
2011-07-21 11:54:55 +02:00
|
|
|
Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D
|
2013-07-30 16:08:37 +02:00
|
|
|
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.
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%package devel
|
2013-07-30 16:08:37 +02:00
|
|
|
Summary: C library for encoding data in a QR Code symbol - Development files
|
2011-07-21 11:54:55 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-07-30 16:08:37 +02:00
|
|
|
Requires: libqrencode%{so_ver} = %{version}
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D
|
2013-07-30 16:08:37 +02:00
|
|
|
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 the development files for libqrencode.
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2018-01-26 13:57:11 +01:00
|
|
|
%cmake -DBUILD_SHARED_LIBS=TRUE
|
|
|
|
%make_jobs
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-26 13:57:11 +01:00
|
|
|
%cmake_install
|
2011-07-21 11:54:55 +02:00
|
|
|
|
2013-07-30 16:08:37 +02:00
|
|
|
%post -n libqrencode%{so_ver} -p /sbin/ldconfig
|
|
|
|
%postun -n libqrencode%{so_ver} -p /sbin/ldconfig
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%files
|
2019-09-09 12:19:53 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README TODO NEWS ChangeLog
|
2017-07-25 11:39:09 +02:00
|
|
|
%{_mandir}/man1/qrencode.1%{ext_man}
|
2011-07-21 11:54:55 +02:00
|
|
|
%{_bindir}/qrencode
|
|
|
|
|
2013-07-30 16:08:37 +02:00
|
|
|
%files -n libqrencode%{so_ver}
|
|
|
|
%{_libdir}/libqrencode.so.%{so_ver}*
|
2011-07-21 11:54:55 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/qrencode.h
|
|
|
|
%{_libdir}/libqrencode.so
|
|
|
|
%{_libdir}/pkgconfig/libqrencode.pc
|
|
|
|
|
|
|
|
%changelog
|