Compare commits

..

82 commits

Author SHA1 Message Date
Gwyn Ciesla
257ee58d88 Rebuild for Python 3.15.0b4 2026-08-04 14:27:07 -05:00
Michal Schorm
6c6747c812 Remove stale 'xmlto' BuildRequires
Man pages have been pre-built in the upstream tarball since the
initial packaging (525f75c, 2009). A stamp file prevents
regeneration during the build.

Related: rhbz#2503124

Co-Authored-By: Claude AI <noreply@anthropic.com>
2026-07-21 07:40:31 +02:00
Fedora Release Engineering
ce2f2dbd06 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:39:04 +00:00
Python Maint
13577c08e5 Rebuilt for Python 3.15 2026-06-03 23:53:33 +02:00
Simone Caronni
a1e97927fd Fix FTBFS 2026-02-02 13:35:52 +01:00
Fedora Release Engineering
9796c95d23 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:06:31 +00:00
Yaakov Selkowitz
3b470a2d65 Fix Qt overlinking
This was causing Qt5 to be linked into every binary in zbar, where it is only
needed for the Qt bindings (which already specify QT_CFLAGS, QT_LIBS, etc).
2025-09-05 11:08:42 -04:00
Fedora Release Engineering
bb34380f84 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:16:33 +00:00
Python Maint
d99b509668 Rebuilt for Python 3.14 2025-06-03 14:09:04 +02:00
Fedora Release Engineering
85f877885c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:42:27 +00:00
Fedora Release Engineering
8b34b04285 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:49:18 +00:00
Python Maint
84f4d66df0 Rebuilt for Python 3.13 2024-06-07 14:12:34 +02:00
Gwyn Ciesla
f07fb24c88 Update python3-gobject BuildRequires 2024-04-15 15:41:43 -05:00
Fedora Release Engineering
228839a243 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 11:00:53 +00:00
Yaakov Selkowitz
dec080b68c Use default java-devel
The JNI bindings were introduced with 1.8.0 was still the default JDK,
so 11 was intended to select the newer version.  The default JDK is now
17, and there is no reason to continue to use what is now an older
version.
2024-01-11 23:48:02 -05:00
Gwyn Ciesla
23ba05b98d 0.23.93 2024-01-09 10:07:01 -06:00
Florian Weimer
107c91c11f Add missing Py_SIZE to py311.patch 2024-01-05 12:52:10 +01:00
Fedora Release Engineering
8304c4ae98 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 19:38:07 +00:00
d5b34494c9 Fix FTBFS with python 3.12 (rhbz#2220630) 2023-07-07 11:37:10 +02:00
Python Maint
267ec547c2 Rebuilt for Python 3.12 2023-06-15 17:00:48 +02:00
Yaakov Selkowitz
50012aaeef Fix flatpak build
Flatpaks are built in /app prefix instead of /usr.
2023-04-30 21:27:19 -04:00
Gwyn Ciesla
ee527c1110 migrated to SPDX license 2023-03-01 12:37:28 -06:00
Fedora Release Engineering
d9ab6bd465 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 08:12:47 +00:00
Gwyn Ciesla
239937f7f0 Bump Release 2022-12-21 11:16:10 -06:00
Gwyn Ciesla
76753c237f BR setuptools. 2022-12-21 11:15:25 -06:00
Kalev Lember
1d27d2f2d2 Misc packaging cleanup 2022-08-26 16:12:00 +02:00
Kalev Lember
3382cddf1b Use make_build and make_install macros 2022-08-26 16:09:08 +02:00
Kalev Lember
a7acfe6d3d Rename zbar-python3 to python3-zbar as per latest Python guidelines 2022-08-26 16:09:08 +02:00
Kalev Lember
888b226546 Drop manual requires on pkgconfig and rely on rpm dep extractor 2022-08-26 16:08:34 +02:00
Kalev Lember
ce06971a59 Tighten subpackage deps with %%{_isa} 2022-08-26 16:08:34 +02:00
Kalev Lember
5db803bc6f Split libzbar out to zbar-libs subpackage
This allows other apps that link with libzbar, such as GNOME
authenticator to not have to pull in GraphicsMagick that
/usr/bin/zbarimg depends on.
2022-08-26 16:08:34 +02:00
Kalev Lember
a8a6072c5d Move GObject Introspection bindings to -gtk and -gtk-devel subpackages
... so it's packaged the same way as we package all of GNOME libraries.
2022-08-26 15:48:01 +02:00
Kalev Lember
1eb32e16c5 Sort BuildRequires and Requires and split them out one per line 2022-08-26 15:43:36 +02:00
Gwyn Ciesla
4da8028c1a Only build java on supported platforms 2022-08-01 15:38:10 -05:00
Fedora Release Engineering
9cdd221147 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 13:52:13 +00:00
Python Maint
1ec754dc2c Rebuilt for Python 3.11 2022-06-13 21:00:09 +02:00
Gwyn Ciesla
cd9eddb418 0.23.90, enable pdf417 2022-05-31 14:28:55 -05:00
Jiri
5fad1e4a16 Rebuilt for java-17-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java17
2022-02-06 00:53:55 +01:00
Fedora Release Engineering
cf8c7c0020 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 05:48:53 +00:00
Gwyn Ciesla
8a571d93a8 Fix 3.11 FTBFS. 2022-01-12 11:08:15 -06:00
Fedora Release Engineering
cc085ac4be - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 22:15:15 +00:00
Python Maint
38751c3a39 Rebuilt for Python 3.10 2021-06-04 21:20:46 +02:00
Gwyn Ciesla
932f44b9f7 Fix FTBFS. 2021-03-25 14:25:48 -05:00
Fedora Release Engineering
cbd438c1d3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-28 00:39:37 +00:00
Tom Stellard
4271d86619 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 01:51:07 +00:00
Fedora Release Engineering
180f278751 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 15:20:34 +00:00
Gwyn Ciesla
65b1326e59 Several fixes. 2020-07-20 13:05:26 -05:00
Miro Hrončok
1bd23d395d Rebuilt for Python 3.9 2020-05-26 03:55:45 +02:00
Fedora Release Engineering
de7a7a2177 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 05:15:54 +00:00
Miro Hrončok
f804e4f3cc Rebuilt for Python 3.8 2019-08-19 11:10:07 +02:00
32cda90a06
Drop obsolete Group tag
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-08-13 12:27:57 +02:00
Fedora Release Engineering
366530f9ae - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 04:57:22 +00:00
Mauro Carvalho Chehab
665880f68b Bump to version 0.23
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-23 18:17:14 -03:00
Mauro Carvalho Chehab
f0cd33a9e4 Bump to the third release candidate for 0.23
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-14 07:28:04 -03:00
Mauro Carvalho Chehab
883b7ce619 Add missing script
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-11 17:23:59 -03:00
Mauro Carvalho Chehab
6deccd757c Bump to 0.22.91
Has some build fixes. While here, enable python3 bindings build.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-11 17:06:08 -03:00
Mauro Carvalho Chehab
c9fd939c01 Update to 0.23 release candidate package (0.22.90)
This Release Candidate brings support for Gtk3 and GIR.

Add support for it and create an extra package for GIR.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-11 11:58:33 -03:00
Mauro Carvalho Chehab
7adb3c8dcb Make rpmlint happy
Use tab instead of spaces at the java dependency line
and use the 0.22.2 source that was uploaded to linuxtv.org,
instead of the previous version I used locally in order to
test if Java sources were being packaged with make dist
inside ZBar.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-04-30 09:40:44 -03:00
Mauro Carvalho Chehab
3912a5c736 Build a package with ZBar java JNI and jar library
Add an extra ZBar package with java libraries, just in case
someone wants to use it inside a Java application.

While here, change config to prefer using ImageMagick instead
of GraphicsMagick, as this is the recommended conversion library.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-04-30 09:32:43 -03:00
Mauro Carvalho Chehab
02a23e52f1 Update to version 0.22.2, with supports Java 11
The Java library require some different logic in order to build
with Java 11. While I'm not sure when Fedora will migrate to
it, it seems worth to be able to support it now that we added
support for it upstream, as openjdk maintainers can migrate
ZBar to Java 11 smoothless.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-04-29 10:19:11 -03:00
Mauro Carvalho Chehab
e0125b27b6 Update ZBar sources
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-02-20 07:14:39 -03:00
Mauro Carvalho Chehab
1aa537a68e Bump to version 0.22
The main focus of this version is to make zbarcam-qt a
full-featured application, allowing to use all ZBar library
features with a GUI interface.

It also comes with an optional new feature to allow inverting
the colors when parsing images. That's specially useful for
QR codes, as it seems that several such barcodes come inverted.

There are also some bug fixes on it.

Sumary of changes:

  * zbarcam-qt: allow changing resolutions in real time
  * zbarcam-qt: better support ZBar options
  * zbarcam-qt: do several visual improvements
  * zbarcam-qt: make it remember the geometry
  * zbarcam-qt: allow show/hide control and options bars
  * zbarcam-qt: remember lastly used settings and camera controls
  * zbarcam-qt: allow changing ZBar decode options via GUI
  * Add API to allow get/set resolutions
  * img_scanner: add handler for color-inverted codes
  * img_scanner: fix get_config parameter validation
  * scan_video: improve logic to remove duplicated/invalid devnodes
  * symbol.c: fix symbol hash logic (prevents crash with QR options)
  * configure.ac: fix an error at libv4l2 package check
  * fix some typos
  * exit gracefully when decoding split QR codes

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-02-20 07:06:43 -03:00
Mauro Carvalho Chehab
a426834d7f zbar.spec: add dbus-devel dependency
This is needed in order to build ZBar with d-bus support.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-02-12 13:26:17 -02:00
Mauro Carvalho Chehab
6a7663d714 Bump to version 0.21
* zbarcam-qt: allow selecting codes via GUI interface
  * When both enabled, ISBN-13 has precedence over ISBN-10
  * ZBar is now using Travis CI for continuous integration tests
  * Convert INSTALL and README to markdown and update them
  * Improve ZBar testing code and make easier to run the tests
  * Fix build with Clang
  * Add simple dbus IPC API to zbarcam.
  * zbarimg: display only the compiled symbologies
  * v4l2: make ZBar build and run on Kernels < 3.16
  * configure.ac: The pdf417 code is incomplete. Warn about that
  * Add Debian packaging and Travis CI configuration
  * Add barcode examples for different supported symbologies
  * Several improvements at the building system
  * Add support for SQ code symbology
  * v4l2: add fallback for systems without v4l2_ext_controls which field
  * v4l2: use device_caps instead of capabilities
  * v4l2: make v4l2_request_buffers() more generic
  * release video buffers after probing and request them again when needed
  * Ignore ENOTTY errors when calling VIDIOC_S_CROP
  * doc/Makefile.am.inc: clean html generated files
  * Add --disable-doc configure option to disable building docs
  * Fix function protoype to be compatible with recent libjpeg
  * Wrap logical not operations into parentheses
  * INSTALL: warn that autoconf should be called before configure
  * code128: fix error logic
  * convert: ensure that it will not use a freed value
  * zbar: use g_thread_new() instead of g_tread_create()
  * zbargtk: add a missing break
  * gtk/zbargtk: add a missing check if zbar->window is not null

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-02-12 12:24:54 -02:00
Fedora Release Engineering
9e88a5e49f - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 13:08:39 +00:00
5dbc4944f4 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:56 +01:00
Mauro Carvalho Chehab
b0a327b728 Increase Fedora packaging number and add a change description
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-07 12:12:15 -02:00
Mauro Carvalho Chehab
97f8445ae5 Disable build for pygtk2 module
The pygtk2 module is orphaned and will be retired from Fedora.
Also, there is a binding for zbar that claims to support both
python2 and python3:
	https://github.com/zplab/zbar-py

Ok, this is currently not packaged on Fedora, but it should be
easy to install it via pip. So, it may not make much sense to
change zbar to have a pygtk3 binding.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-07 11:31:42 -02:00
Hans de Goede
60e4c2b86f Drop zbar_fedora29_hack_for_codegen_to_work.patch now that pygobject2 is
fixed (rhbz# 1606784)
Use %ldconfig_scriptlets so that we don't unnecessarily run ldconfig on F28+
2018-08-09 13:12:38 +02:00
Mauro Carvalho Chehab
ff4c638d36 Re-enable python 2 bindings
Now that it builds with python2, re-enable its bindings.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-08 10:30:18 -03:00
Mauro Carvalho Chehab
1c1368e0a4 Add requirement for python2-pillow
Some of zbar's python scripts require python2-pillow, in order
to display images.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-08 10:17:39 -03:00
Mauro Carvalho Chehab
3353f69d9d Bump to version 0.20.1
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-08 10:15:04 -03:00
Mauro Carvalho Chehab
76f84ecfb5 Fix calls to env at python scripts
Remove an extra space introduced by a bad sed expression.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-07 17:31:47 -03:00
Mauro Carvalho Chehab
1a52ec8524 Fix date to allow builds
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-07 17:20:57 -03:00
Mauro Carvalho Chehab
c3e7934c3e zbar: fix build with Fedora 29
There is a bug at pygobject-codegen-2.0 related to its dependency
on having a working /usr/bin/python with prevents zbar to be built.

Add a hack to make it work.

While here, update it to reflect the latest changes at zbar
upstream.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-07 17:19:15 -03:00
Mauro Carvalho Chehab
b61f85891f Get rid of old patches that aren't needed anymore
None of those patches are needed, as they got merged at the
zbar 0.20 version.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-07 16:27:14 -03:00
Mauro Carvalho Chehab
9c48b8c57a Set python via env
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-07 15:06:35 -03:00
53f2cbce7a
%{python_sitearch} → %{python2_sitearch}
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-30 00:22:29 +02:00
Fedora Release Engineering
8f63028ae5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 09:48:35 +00:00
Jason Tibbitts
1b7ace63be Remove needless use of %defattr 2018-07-09 23:14:27 -05:00
Adam Jackson
cc5b455a31 Only build pygtk support on Fedora 2018-05-24 12:50:53 -04:00
Iryna Shcherbina
564f374561 Update Python 2 dependency declarations to new packaging standards 2018-02-14 17:28:07 +01:00
5 changed files with 314 additions and 73 deletions

10
.gitignore vendored
View file

@ -2,3 +2,13 @@ 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.tar.bz2
/zbar-0.22.2.tar.gz
/zbar-0.22.2.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
/zbar-0.23.90.tar.bz2
/zbar-0.23.93.tar.bz2

16
fix_qt_overlinking.patch Normal file
View file

@ -0,0 +1,16 @@
This was causing Qt5 to be linked into every binary in zbar, where it is only
needed for the Qt bindings (which already specify QT_CFLAGS, QT_LIBS, etc).
diff --git a/configure.ac b/configure.ac
index f0f9723..2a26973 100644
--- a/configure.ac
+++ b/configure.ac
@@ -689,8 +689,6 @@ AM_CONDITIONAL([HAVE_QT], [test "x$with_qt" = "xyes"])
AM_COND_IF([HAVE_QT],
[AC_MSG_NOTICE([using Qt version $QT_VERSION])
AC_MSG_NOTICE([using moc from $MOC])
- CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"
- LIBS="$LIBS $QT_LIBS"
AC_CONFIG_FILES([zbar-qt.pc:"${qt_pkgconfig_file}.in"])
#dnl -fPIC has no effect on Windows and breaks windres
AS_IF([test "x$win32" = "xno"], [CPPFLAGS="$CPPFLAGS -fPIC"])])

View file

@ -1 +1 @@
SHA512 (zbar-0.20.1.tar.bz2) = 3b0949fe866eb9cb7a6ab66bfbc5ff2fc4193faf21a51c830d16e63453dcbd6e786e197fd5db40d62749af2487922e1775af860918717b0d51765d2b20dfd3f8
SHA512 (zbar-0.23.93.tar.bz2) = 8b1d57557cb1c425109b709f0cbe94830939cb4cd9a0cb505d44ba3c7cfb3522560c3bbf2a8b37985da4577b677ad675491f6ef0e9796749382079c0e844e21e

View 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>
#

347
zbar.spec
View file

@ -1,136 +1,176 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%ifarch %{java_arches}
%global JAVA 1
%else
%global JAVA 0
%endif
Name: zbar
Version: 0.20.1
Release: 1%{?dist}
Version: 0.23.93
Release: 13%{?dist}
Summary: Bar code reader
Group: User Interface/X Hardware Support
License: LGPLv2+
License: LGPL-2.1-or-later
URL: http://zbar.sourceforge.net/
Source0: https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
Patch0: use_python3_on_python_script.patch
Patch1: fix_qt_overlinking.patch
BuildRequires: autoconf automake libtool python-devel gettext-devel
BuildRequires: qt5-qtbase-devel qt5-qtx11extras-devel
BuildRequires: gtk2-devel pygtk2-devel GraphicsMagick-c++-devel
BuildRequires: libv4l-devel libXv-devel xmlto
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dbus-devel
BuildRequires: gettext-devel
BuildRequires: GraphicsMagick-devel
BuildRequires: gtk3-devel
BuildRequires: libSM-devel
BuildRequires: libtool
BuildRequires: libv4l-devel
BuildRequires: libXv-devel
BuildRequires: make
BuildRequires: python3-gobject-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
%if %{JAVA}
BuildRequires: java-devel
%endif
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: xmlto
BuildRequires: gobject-introspection-devel
%description
A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
Code 39 and Interleaved 2 of 5.
Includes applications for decoding captured bar code images and using a video
device (e. g., webcam) as a bar code scanner.
ZBar Bar Code Reader is an open source software suite for reading bar
codes from various sources, such as video streams, image files and raw
intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and SQ Code.
%package devel
Group: Development/Libraries
Summary: Bar code library extra development files
Requires: pkgconfig, %{name} = %{version}-%{release}
Summary: Bar code reader library extra development files
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description devel
This package contains header files and additional libraries used for
developing applications that read bar codes with this library.
%package libs
Summary: Bar code reader library
%description libs
This package contains the ZBar Bar Code Reader library.
%package gtk
Group: Development/Libraries
Summary: Bar code reader GTK widget
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
# Obsoleted in F37
Obsoletes: %{name}-gi < %{version}-%{release}
%description gtk
This package contains a bar code scanning widget for use with GUI
applications based on GTK+-2.0.
applications based on GTK 3.
%package gtk-devel
Group: Development/Libraries
Summary: Bar code reader GTK widget extra development files
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-gtk%{_isa} = %{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
developing GUI applications based on GTK 3 that include a bar code
scanning widget.
%package pygtk
Group: Development/Libraries
Summary: Bar code reader PyGTK widget
Requires: pygtk2, python2-pillow, %{name}-gtk = %{version}-%{release}
%description pygtk
This package contains a bar code scanning widget for use in GUI
applications based on PyGTK.
%package qt
Group: Development/Libraries
Summary: Bar code reader Qt widget
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description qt
This package contains a bar code scanning widget for use with GUI
applications based on Qt4.
%package qt-devel
Group: Development/Libraries
Summary: Bar code reader Qt widget extra development files
Requires: pkgconfig, %{name}-qt = %{version}-%{release}, %{name}-devel = %{version}-%{release}
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-qt%{_isa} = %{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
developing GUI applications based on Qt5 that include a bar code
scanning widget.
%package -n python3-zbar
Summary: Bar code reader PyGTK widget
Requires: %{name}-libs%{_isa} = %{version}-%{release}
Requires: python3-pillow
# Renamed in F37
Obsoletes: %{name}-python3 < %{version}-%{release}
%description -n python3-zbar
This package contains a bar code scanning widget for use on
python applications that work with images.
%if %{JAVA}
%package java
Summary: Bar code reader Java library
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-gtk%{_isa} = %{version}-%{release}
%description java
This package contains header files and additional libraries used for
on Java Native Interface (JNI) applications using ZBar.
%endif
%prep
%setup -q
%patch 0 -p1
%patch 1 -p1
%build
autoreconf -vfi
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
autoreconf -fiv
%configure --with-python=python3 --with-gtk=auto --with-dbusconfdir=%{_sysconfdir} --docdir=%{_docdir}/%{name}-%{version} --with-graphicsmagick --without-xshm --without-xv --enable-codes=ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode,pdf417
# rpath
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
make %{?_smp_mflags}
%make_build
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%make_install
%if %{JAVA}
install -d %{buildroot}%{_jnidir}
mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
mv %{buildroot}%{_datadir}/zbar/lib/libzbarjni.so* %{buildroot}%{_libdir}
%endif
cp test/test_python.py %{buildroot}%{_docdir}
#Remove .la and .a files
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
# Remove installed doc
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
%post -p /sbin/ldconfig
%ldconfig_scriptlets
%post devel -p /sbin/ldconfig
%ldconfig_scriptlets devel
%post gtk -p /sbin/ldconfig
%ldconfig_scriptlets gtk
%post qt -p /sbin/ldconfig
%ldconfig_scriptlets qt
%postun -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%postun gtk -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig
%find_lang zbar
%files
%defattr(-,root,root,-)
%doc COPYING LICENSE NEWS
%doc NEWS.md README.md INSTALL.md
%{_bindir}/zbarimg
%{_bindir}/zbarcam
%{_libdir}/libzbar.so.*
%{_mandir}/man1/*
%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
%files libs -f zbar.lang
%license COPYING LICENSE.md
%{_libdir}/libzbar.so.0*
%{_libdir}/girepository-1.0/ZBar-1.0.typelib
%files devel
%defattr(-,root,root,-)
%doc HACKING TODO
%doc HACKING.md TODO.md
%{_libdir}/libzbar.so
%{_libdir}/pkgconfig/zbar.pc
%dir %{_includedir}/zbar
@ -144,41 +184,206 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%{_includedir}/zbar/Video.h
%{_includedir}/zbar/Window.h
%{_includedir}/zbar/Processor.h
%{_datadir}/gir-1.0/ZBar-1.0.gir
%files gtk
%defattr(-,root,root,-)
%{_libdir}/libzbargtk.so.*
%{_bindir}/zbarcam-gtk
%files gtk-devel
%defattr(-,root,root,-)
%{_libdir}/libzbargtk.so
%{_libdir}/pkgconfig/zbar-gtk.pc
%{_includedir}/zbar/zbargtk.h
%files pygtk
%defattr(-,root,root,-)
%{python_sitearch}/zbarpygtk.so
%{python_sitearch}/zbar.so
%files qt
%defattr(-,root,root,-)
%{_libdir}/libzbarqt.so.*
%{_bindir}/zbarcam-qt
%files qt-devel
%defattr(-,root,root,-)
%{_libdir}/libzbarqt.so
%{_libdir}/pkgconfig/zbar-qt.pc
%{_includedir}/zbar/QZBar*.h
%if %{JAVA}
%files java
%{_jnidir}/zbar.jar
%{_libdir}/libzbarjni.so*
%endif
%files -n python3-zbar
%{python3_sitearch}/zbar.so
%{_docdir}/test_python.py
%changelog
* Tue Aug 04 2026 Gwyn Ciesla <gwync@protonmail.com> - 0.23.93-13
- Rebuild for Python 3.15.0b4
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 0.23.93-11
- Rebuilt for Python 3.15
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Sep 05 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 0.23.93-9
- Fix Qt overlinking
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 0.23.93-7
- Rebuilt for Python 3.14
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.23.93-4
- Rebuilt for Python 3.13
* Mon Apr 15 2024 Gwyn Ciesla <gwync@protonmail.com> - 0.23.93-3
- Update python3-gobject BuildRequires
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.93-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 09 2024 Gwyn Ciesla <gwync@protonmail.com> - 0.23.93-1
- 0.23.93
* Fri Jan 05 2024 Florian Weimer <fweimer@redhat.com> - 0.23.90-12
- Add missing Py_SIZE to py311.patch
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.90-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jul 07 2023 Michael J Gruber <mjg@fedoraproject.org> - 0.23.90-10
- Fix FTBFS with python 3.12 (rhbz#2220630)
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.23.90-9
- Rebuilt for Python 3.12
* Wed Mar 01 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-8
- migrated to SPDX license
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.90-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Dec 21 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-6
- BR setuptools
* Fri Aug 26 2022 Kalev Lember <klember@redhat.com> - 0.23.90-5
- Misc packaging cleanup
- Sort BuildRequires and Requires and split them out one per line
- Move GObject Introspection bindings to -gtk and -gtk-devel subpackages
- Split libzbar out to zbar-libs subpackage
- Tighten subpackage deps with %%{_isa}
- Drop manual requires on pkgconfig and rely on rpm dep extractor
- Rename zbar-python3 to python3-zbar as per latest Python guidelines
- Use make_build and make_install macros
* Mon Aug 01 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-4
- Only build Java on supported platforms.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.90-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.23.90-2
- Rebuilt for Python 3.11
* Tue May 31 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-1
- 0.23.90
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 0.23-14
- Rebuilt for java-17-openjdk as system jdk
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jan 12 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23-12
- Fix 3.11 FTBFS.
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.23-10
- Rebuilt for Python 3.10
* Thu Mar 25 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.23-9
Fix FTBFS for autoconf 2.71.
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 20 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.23-6
- Update description.
- Patch for Python 3.9.
- Move back to GraphicsMagick.
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.23-5
- Rebuilt for Python 3.9
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.23-3
- Rebuilt for Python 3.8
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* 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)
* Mon Apr 29 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.22.2-1
- Update to 0.22.2: added support for Java 11
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 7 2019 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-4
- Disable python2 bindings due to pygtk2 orphaned package
* Thu Aug 9 2018 Hans de Goede <hdegoede@redhat.com> - 0.20.1-3
- Drop zbar_fedora29_hack_for_codegen_to_work.patch now that pygobject2 is
fixed (rhbz# 1606784)
- Use %%ldconfig_scriptlets so that we don't unnecessarily run ldconfig on F28+
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-2
- Re-enable python2 bindings
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-1
- Bump version to 0.20.1
* Tue Aug 07 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20-8
- Fix python 2 dependencies
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.20-6
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild