forked from pool/qrencode
e1288511f8
Add qrencode, a library used to encode data in QR Code symbol. It is a build requirement for libprison OBS-URL: https://build.opensuse.org/request/show/76527 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qrencode?expand=0&rev=1
82 lines
2.3 KiB
RPMSpec
82 lines
2.3 KiB
RPMSpec
# Spec file for qrencode
|
|
|
|
Name: qrencode
|
|
Version: 3.1.1
|
|
Release: 1
|
|
License: LGPL v2.1+
|
|
Summary: C library for encoding data in a QR Code symbol
|
|
Url: http://fukuchi.org/works/qrencode/index.en.html
|
|
Group: Development/Libraries/C and C++
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRequires: autoconf
|
|
BuildRequires: libSDL-devel
|
|
%if 0%{suse_version} > 1120
|
|
BuildRequires: libpng12-devel
|
|
%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
|
|
License: LGPL v2.1+
|
|
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
|
|
License: LGPL v2.1+
|
|
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
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure --with-tools
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libqrencode3 -p /sbin/ldconfig
|
|
|
|
%postun -n libqrencode3 -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%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
|