Группа :: Работа с файлами
Пакет: qrencode
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _name qrencode
%define sover 4
%define libname lib%_name%sover
Name: %_name
Version: 4.1.1
Release: alt1
Summary: Generate QR 2D barcodes
License: LGPLv2+
Group: File tools
Url: https://fukuchi.org/works/qrencode/index.html.en
Vcs: https://github.com/fukuchi/libqrencode.git
Source: %name-%version.tar
#Source: https://fukuchi.org/works/qrencode/qrencode-%version.tar.gz
Patch: %name-%version-%release.patch
BuildRequires: glibc-devel libSDL2-devel libpng-devel
%description
Qrencode is a utility to encode string data in a QR Code and save as a PNG image.
%package -n lib%_name%sover
Summary: A C library for encoding data in a QR Code symbol
Group: System/Libraries
%description -n lib%_name%sover
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 -n lib%_name%sover-devel
Summary: The development files for the qrencode library
Group: Development/C
Requires: lib%_name%sover = %EVR
Provides: libqrencode-devel = %EVR
%description -n lib%_name%sover-devel
This package contains the development files for the qrencode library.
%prep
%setup
%patch -p1
echo -e "#! /bin/sh\n\ntrue" > use/config.rpath
mkdir m4
%build
%autoreconf
%configure \
--disable-rpath \
--with-tests \
%make_build
%install
%makeinstall_std
%check
cd ./tests
./test_all.sh
%files
%_bindir/*
%_man1dir/*
%files -n lib%_name%sover
%_libdir/libqrencode.so.*
%files -n lib%_name%sover-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/lib%_name.pc
%changelog
…
Полный changelog можно просмотреть здесь
%define sover 4
%define libname lib%_name%sover
Name: %_name
Version: 4.1.1
Release: alt1
Summary: Generate QR 2D barcodes
License: LGPLv2+
Group: File tools
Url: https://fukuchi.org/works/qrencode/index.html.en
Vcs: https://github.com/fukuchi/libqrencode.git
Source: %name-%version.tar
#Source: https://fukuchi.org/works/qrencode/qrencode-%version.tar.gz
Patch: %name-%version-%release.patch
BuildRequires: glibc-devel libSDL2-devel libpng-devel
%description
Qrencode is a utility to encode string data in a QR Code and save as a PNG image.
%package -n lib%_name%sover
Summary: A C library for encoding data in a QR Code symbol
Group: System/Libraries
%description -n lib%_name%sover
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 -n lib%_name%sover-devel
Summary: The development files for the qrencode library
Group: Development/C
Requires: lib%_name%sover = %EVR
Provides: libqrencode-devel = %EVR
%description -n lib%_name%sover-devel
This package contains the development files for the qrencode library.
%prep
%setup
%patch -p1
echo -e "#! /bin/sh\n\ntrue" > use/config.rpath
mkdir m4
%build
%autoreconf
%configure \
--disable-rpath \
--with-tests \
%make_build
%install
%makeinstall_std
%check
cd ./tests
./test_all.sh
%files
%_bindir/*
%_man1dir/*
%files -n lib%_name%sover
%_libdir/libqrencode.so.*
%files -n lib%_name%sover-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/lib%_name.pc
%changelog
…
Полный changelog можно просмотреть здесь