update package from 0.20.1 to 0.22

This commit is contained in:
chengzihan2 2020-10-22 19:39:19 +08:00
parent 22049b03c7
commit ce09ee3785
4 changed files with 105 additions and 53 deletions

Binary file not shown.

BIN
zbar-0.22.tar.bz2 Normal file

Binary file not shown.

142
zbar.spec
View File

@ -1,81 +1,129 @@
Name: zbar Name: zbar
Version: 0.20.1 Version: 0.22
Release: 4 Release: 1
Summary: Bar code reader Summary: Bar code reader
License: LGPLv2+ License: LGPLv2+
URL: http://zbar.sourceforge.net/ URL: http://zbar.sourceforge.net/
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2 Source0: https://linuxtv.org/downloads/zbar/zbar-%{version}.tar.bz2
BuildRequires: autoconf automake libtool gettext-devel qt5-qtbase-devel qt5-qtx11extras-devel gtk2-devel BuildRequires: autoconf automake libtool gettext-devel
BuildRequires: GraphicsMagick-c++-devel libv4l-devel libXv-devel xmlto python2-devel pygtk2-devel BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel gtk2-devel GraphicsMagick-c++-devel
Requires: pygtk2 python2-pillow BuildRequires: libv4l-devel libXv-devel xmlto dbus-devel
Provides: %{name}-gtk = %{version}-%{release} %{name}-pygtk = %{version}-%{release} %{name}-qt = %{version}-%{release}
Obsoletes: %{name}-gtk < %{version}-%{release} %{name}-pygtk < %{version}-%{release} %{name}-qt < %{version}-%{release}
%description %description
ZBar is an open source software suite for reading bar codes from various sources, such as video streams, A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
image files and raw intensity sensors. It supports many popular symbologies (types of bar codes) including Code 39 and Interleaved 2 of 5.
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code. Includes applications for decoding captured bar code images and using a video
device (e. g., webcam) as a bar code scanner.
The flexible, layered implementation facilitates bar code scanning and decoding for any application: use it
stand-alone with the included GUI and command line programs, easily integrate a bar code scanning widget into
your Qt, GTK+ or PyGTK GUI application, leverage one of the script or programming interfaces (Python, Perl,
C++) ...all the way down to a streamlined C library suitable for embedded use.
%package devel %package devel
Summary: Bar code library extra development files Summary: Bar code library extra development files
Requires: pkgconfig %{name} = %{version}-%{release} Requires: pkgconfig, zbar = %{version}-%{release}
Provides: %{name}-gtk-devel = %{version}-%{release} %{name}-qt-devel = %{version}-%{release}
Obsoletes: %{name}-gtk-devel < %{version}-%{release} %{name}-qt-devel < %{version}-%{release}
%description devel %description devel
This zbar-devel package contains header files and additional libraries used for developing applications This package contains header files and additional libraries used for
that read bar codes with this library. developing applications that read bar codes with this library.
%package help %package gtk
Summary: Help package for zbar Summary: Bar code reader GTK widget
Requires: zbar = %{version}-%{release}
%description help %description gtk
This package contains some man help files for zbar. This package contains a bar code scanning widget for use with GUI
applications based on GTK+-2.0.
%package gtk-devel
Summary: Bar code reader GTK widget extra development files
Requires: pkgconfig, zbar-gtk = %{version}-%{release}, zbar-devel = %{version}-%{release}
%description gtk-devel
This package contains header files and additional libraries used for
developing GUI applications based on GTK+-2.0 that include a bar code
scanning widget.
%package qt
Summary: Bar code reader Qt widget
Requires: zbar = %{version}-%{release}
%description qt
This package contains a bar code scanning widget for use with GUI
applications based on Qt4.
%package qt-devel
Summary: Bar code reader Qt widget extra development files
Requires: pkgconfig, zbar-qt = %{version}-%{release}, zbar-devel = %{version}-%{release}
%description qt-devel
This package contains header files and additional libraries used for
developing GUI applications based on Qt4 that include a bar code
scanning widget.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %setup -q
%build %build
autoreconf -vfi autoreconf -vfi
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version} %configure --without-java --with-graphicsmagick --without-python2 --docdir=%{_docdir}/zbar-%{version}
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build make %{?_smp_mflags}
%install %install
%make_install INSTALL="install -p" rm -rf $RPM_BUILD_ROOT
%delete_la_and_a make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%ldconfig_scriptlets
%post -p /sbin/ldconfig %ldconfig_scriptlets devel
%ldconfig_scriptlets gtk
%postun -p /sbin/ldconfig %ldconfig_scriptlets qt
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%files %files
%doc COPYING LICENSE NEWS %doc NEWS README.md INSTALL.md
%{_bindir}/* %license COPYING LICENSE
%{_libdir}/*.so.* %{_bindir}/zbarimg
%{python2_sitearch}/*.so %{_bindir}/zbarcam
%{_libdir}/libzbar.so.*
%{_mandir}/man1/*
%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
%files devel %files devel
%doc HACKING TODO %doc HACKING TODO
%{_libdir}/*.so %{_libdir}/libzbar.so
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/zbar.pc
%{_includedir}/* %dir %{_includedir}/zbar
%{_includedir}/zbar.h
%{_includedir}/zbar/Exception.h
%{_includedir}/zbar/Symbol.h
%{_includedir}/zbar/Image.h
%{_includedir}/zbar/Scanner.h
%{_includedir}/zbar/Decoder.h
%{_includedir}/zbar/ImageScanner.h
%{_includedir}/zbar/Video.h
%{_includedir}/zbar/Window.h
%{_includedir}/zbar/Processor.h
%files help %files gtk
%{_mandir}/man1/* %{_libdir}/libzbargtk.so.*
%{_bindir}/zbarcam-gtk
%files gtk-devel
%{_libdir}/libzbargtk.so
%{_libdir}/pkgconfig/zbar-gtk.pc
%{_includedir}/zbar/zbargtk.h
%files qt
%{_libdir}/libzbarqt.so.*
%{_bindir}/zbarcam-qt
%files qt-devel
%{_libdir}/libzbarqt.so
%{_libdir}/pkgconfig/zbar-qt.pc
%{_includedir}/zbar/QZBar*.h
%changelog %changelog
* Thu Oct 22 2020 caodongxia <caodongxia@huawei.com> - 0.22-1
- update package from 0.20.1 to 0.22
* Tue Dec 3 2019 lingsheng <lingsheng@huawei.com> - 0.20.1-4 * Tue Dec 3 2019 lingsheng <lingsheng@huawei.com> - 0.20.1-4
- Package init - Package init

4
zbar.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: hg
src_repo: http://hg.code.sf.net/p/zbar/code
tag_prefix: "^"
separator: "."