Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d841f40e2 | ||
|
|
ade3b6641b | ||
|
|
be2309ac3a | ||
|
|
2cc4eaee4b | ||
|
|
9f2cd28e8f | ||
|
|
c117ca9658 | ||
|
|
3aad29f737 |
4 changed files with 84 additions and 13 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -1,5 +1,4 @@
|
|||
zbar-0.10.tar.bz2
|
||||
/zbar-0.10.tar.bz2
|
||||
/zbar-0.20.tar.bz2
|
||||
/zbar-0.20.1.tar.bz2
|
||||
/zbar-0.21.tar.bz2
|
||||
/zbar-0.22.90.tar.bz2
|
||||
/zbar-0.22.91.tar.bz2
|
||||
/zbar-0.22.92.tar.bz2
|
||||
/zbar-0.23.tar.bz2
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (zbar-0.21.tar.bz2) = 8c1095ec234b04839229dd6345b0758f0a133c715f28031ab64c2c7809a0c0fc4cbd7226fba1a6e3c40efcb8b2a334a7e461cdc34a77c21b537dbf8faf38c14c
|
||||
SHA512 (zbar-0.23.tar.bz2) = 7eef2ee99760edd693ecc12a36e04b71a156b93b4c1977ca4f6da103a955284cf640b55adb185477e1d4cc65345bb01608ed9528f6518abb514ccbc58e5d350b
|
||||
|
|
|
|||
10
use_python3_on_python_script.patch
Normal file
10
use_python3_on_python_script.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
diff --git a/test/test_python.py b/test/test_python.py
|
||||
index 252c51a97256..8388d9a5aa36 100755
|
||||
--- a/test/test_python.py
|
||||
+++ b/test/test_python.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
#------------------------------------------------------------------------
|
||||
# Copyright 2019 (c) Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
||||
#
|
||||
76
zbar.spec
76
zbar.spec
|
|
@ -1,16 +1,19 @@
|
|||
Name: zbar
|
||||
Version: 0.21
|
||||
Version: 0.23
|
||||
Release: 1%{?dist}
|
||||
Summary: Bar code reader
|
||||
|
||||
License: LGPLv2+
|
||||
URL: http://zbar.sourceforge.net/
|
||||
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
|
||||
Patch0: use_python3_on_python_script.patch
|
||||
|
||||
BuildRequires: autoconf automake libtool gettext-devel
|
||||
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel
|
||||
BuildRequires: gtk2-devel GraphicsMagick-c++-devel
|
||||
BuildRequires: gtk3-devel ImageMagick-devel pygobject3-devel
|
||||
BuildRequires: libv4l-devel libXv-devel xmlto dbus-devel
|
||||
BuildRequires: java-11-openjdk-devel
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%description
|
||||
A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
|
||||
|
|
@ -34,6 +37,15 @@ Requires: %{name} = %{version}-%{release}
|
|||
This package contains a bar code scanning widget for use with GUI
|
||||
applications based on GTK+-2.0.
|
||||
|
||||
%package gi
|
||||
Summary: Bar code reader GObject Introspection (GIR) Gtk bindings
|
||||
Requires: %{name}-gtk = %{version}-%{release}
|
||||
|
||||
%description gi
|
||||
This package contains a bar code scanning GObject Introspection
|
||||
(GIR) Gtk bindings, with allow the usage of ZBar with GUI
|
||||
support on any application compatible with GIR, like python3.
|
||||
|
||||
%package gtk-devel
|
||||
Summary: Bar code reader GTK widget extra development files
|
||||
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
|
||||
|
|
@ -60,12 +72,31 @@ This package contains header files and additional libraries used for
|
|||
developing GUI applications based on Qt4 that include a bar code
|
||||
scanning widget.
|
||||
|
||||
%package python3
|
||||
Group: Development/Libraries
|
||||
Summary: Bar code reader PyGTK widget
|
||||
Requires: python3-pillow, %{name} = %{version}-%{release}
|
||||
|
||||
%description python3
|
||||
This package contains a bar code scanning widget for use on
|
||||
python applications that work with images.
|
||||
|
||||
%package java
|
||||
Summary: Bar code reader Java library
|
||||
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description java
|
||||
This package contains header files and additional libraries used for
|
||||
on Java Native Interface (JNI) applications using ZBar.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
autoreconf -vfi
|
||||
%configure --without-java --with-graphicsmagick --without-python2 --docdir=%{_docdir}/%{name}-%{version}
|
||||
%configure --with-python=python3 --with-gtk=auto --docdir=%{_docdir}/%{name}-%{version}
|
||||
|
||||
# rpath
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
|
|
@ -76,6 +107,10 @@ make %{?_smp_mflags}
|
|||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
install -d %{buildroot}%{_jnidir}
|
||||
mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
|
||||
mv %{buildroot}%{_datadir}/zbar/lib/libzbarjni.so* %{buildroot}%{_libdir}
|
||||
cp test/test_python.py %{buildroot}%{_docdir}
|
||||
|
||||
#Remove .la and .a files
|
||||
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
|
|
@ -92,8 +127,8 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|||
%ldconfig_scriptlets qt
|
||||
|
||||
%files
|
||||
%doc NEWS README.md INSTALL.md
|
||||
%license COPYING LICENSE
|
||||
%doc NEWS.md README.md INSTALL.md
|
||||
%license COPYING LICENSE.md
|
||||
|
||||
%{_bindir}/zbarimg
|
||||
%{_bindir}/zbarcam
|
||||
|
|
@ -102,7 +137,7 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|||
%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
|
||||
|
||||
%files devel
|
||||
%doc HACKING TODO
|
||||
%doc HACKING.md TODO.md
|
||||
|
||||
%{_libdir}/libzbar.so
|
||||
%{_libdir}/pkgconfig/zbar.pc
|
||||
|
|
@ -122,6 +157,12 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|||
%{_libdir}/libzbargtk.so.*
|
||||
%{_bindir}/zbarcam-gtk
|
||||
|
||||
%files gi
|
||||
%dir %{_libdir}/girepository-1.0
|
||||
%dir %{_datadir}/gir-1.0
|
||||
%{_libdir}/girepository-1.0/ZBar-1.0.typelib
|
||||
%{_datadir}/gir-1.0/ZBar-1.0.gir
|
||||
|
||||
%files gtk-devel
|
||||
%{_libdir}/libzbargtk.so
|
||||
%{_libdir}/pkgconfig/zbar-gtk.pc
|
||||
|
|
@ -136,8 +177,29 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
|
|||
%{_libdir}/pkgconfig/zbar-qt.pc
|
||||
%{_includedir}/zbar/QZBar*.h
|
||||
|
||||
%files java
|
||||
%{_jnidir}/zbar.jar
|
||||
%{_libdir}/libzbarjni.so*
|
||||
|
||||
%files python3
|
||||
%{python3_sitearch}/zbar.so
|
||||
%{_docdir}/test_python.py
|
||||
|
||||
%changelog
|
||||
* Tue Feb 12 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-4
|
||||
* Thu May 23 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.23-1
|
||||
- Bump to release 0.23.
|
||||
|
||||
|
||||
* Tue May 14 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.92-1
|
||||
- Third release candidate for 0.23.
|
||||
|
||||
* Fri May 10 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.90-1
|
||||
- Release candidate for 0.23. Support for Gtk3 and GObject Introspection (GIR)
|
||||
|
||||
* Wed Feb 20 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22-1
|
||||
- Bump to version 0.22: zbarcam-qt is now a full-featured application
|
||||
|
||||
* Tue Feb 12 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.21-1
|
||||
- Bump to version 0.21: d-bus and SQ code support, improved zbarcam-qt
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.1-5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue