Mauro Carvalho Chehab 9dc8307
Name:		zbar
Mauro Carvalho Chehab 3353f69
Version:	0.20.1
60e4c2b
Release:	3%{?dist}
Mauro Carvalho Chehab 9dc8307
Summary:	Bar code reader
Mauro Carvalho Chehab 9dc8307
Mauro Carvalho Chehab 9dc8307
Group:		User Interface/X Hardware Support
Mauro Carvalho Chehab 9dc8307
License:	LGPLv2+
Mauro Carvalho Chehab 9dc8307
URL:		http://zbar.sourceforge.net/
Mauro Carvalho Chehab 9dc8307
Source0:	https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
Mauro Carvalho Chehab 9dc8307
cc5b455
BuildRequires:	autoconf automake libtool gettext-devel
Mauro Carvalho Chehab ff06c02
BuildRequires:	qt5-qtbase-devel qt5-qtx11extras-devel
cc5b455
BuildRequires:	gtk2-devel GraphicsMagick-c++-devel
27a148a
BuildRequires:	libv4l-devel libXv-devel xmlto
cc5b455
BuildRequires:  python2-devel pygtk2-devel
f6d3222
f6d3222
%description
Mauro Carvalho Chehab 9dc8307
A layered bar code scanning and decoding library. Supports EAN, UPC, Code 128,
f6d3222
Code 39 and Interleaved 2 of 5.
Mauro Carvalho Chehab 9dc8307
Includes applications for decoding captured bar code images and using a video
Mauro Carvalho Chehab 9dc8307
device (e. g., webcam) as a bar code scanner.
f6d3222
f6d3222
%package devel
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code library extra development files
f6d3222
Requires: pkgconfig, %{name} = %{version}-%{release}
f6d3222
f6d3222
%description devel
f6d3222
This package contains header files and additional libraries used for
f6d3222
developing applications that read bar codes with this library.
f6d3222
f6d3222
%package gtk
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code reader GTK widget
f6d3222
Requires: %{name} = %{version}-%{release}
f6d3222
f6d3222
%description gtk
f6d3222
This package contains a bar code scanning widget for use with GUI
f6d3222
applications based on GTK+-2.0.
f6d3222
f6d3222
%package gtk-devel
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code reader GTK widget extra development files
f6d3222
Requires: pkgconfig, %{name}-gtk = %{version}-%{release}, %{name}-devel = %{version}-%{release}
f6d3222
f6d3222
%description gtk-devel
f6d3222
This package contains header files and additional libraries used for
f6d3222
developing GUI applications based on GTK+-2.0 that include a bar code
f6d3222
scanning widget.
f6d3222
f6d3222
%package pygtk
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code reader PyGTK widget
Mauro Carvalho Chehab 1c1368e
Requires: pygtk2, python2-pillow, %{name}-gtk = %{version}-%{release}
f6d3222
f6d3222
%description pygtk
f6d3222
This package contains a bar code scanning widget for use in GUI
f6d3222
applications based on PyGTK.
f6d3222
f6d3222
%package qt
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code reader Qt widget
f6d3222
Requires: %{name} = %{version}-%{release}
f6d3222
f6d3222
%description qt
f6d3222
This package contains a bar code scanning widget for use with GUI
f6d3222
applications based on Qt4.
f6d3222
f6d3222
%package qt-devel
f6d3222
Group: Development/Libraries
f6d3222
Summary: Bar code reader Qt widget extra development files
f6d3222
Requires: pkgconfig, %{name}-qt = %{version}-%{release}, %{name}-devel = %{version}-%{release}
f6d3222
f6d3222
%description qt-devel
f6d3222
This package contains header files and additional libraries used for
f6d3222
developing GUI applications based on Qt4 that include a bar code
f6d3222
scanning widget.
f6d3222
f6d3222
%prep
f6d3222
%setup -q
f6d3222
f6d3222
%build
Mauro Carvalho Chehab 23c808b
autoreconf -vfi
Mauro Carvalho Chehab ff4c638
%configure --without-java --with-graphicsmagick --docdir=%{_docdir}/%{name}-%{version}
f6d3222
f6d3222
# rpath
f6d3222
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
f6d3222
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f6d3222
f6d3222
make %{?_smp_mflags}
f6d3222
f6d3222
%install
f6d3222
rm -rf $RPM_BUILD_ROOT
f6d3222
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
f6d3222
f6d3222
#Remove .la and .a files
f6d3222
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
f6d3222
Mauro Carvalho Chehab bfab31e
# Remove installed doc
Mauro Carvalho Chehab 658da81
rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
Mauro Carvalho Chehab bfab31e
60e4c2b
%ldconfig_scriptlets
f6d3222
60e4c2b
%ldconfig_scriptlets devel
f6d3222
60e4c2b
%ldconfig_scriptlets gtk
f6d3222
60e4c2b
%ldconfig_scriptlets qt
f6d3222
f6d3222
%files
60e4c2b
%doc NEWS
60e4c2b
%license COPYING LICENSE
f6d3222
f6d3222
%{_bindir}/zbarimg
f6d3222
%{_bindir}/zbarcam
f6d3222
%{_libdir}/libzbar.so.*
f6d3222
%{_mandir}/man1/*
f6d3222
f6d3222
%files devel
f6d3222
%doc HACKING TODO
f6d3222
f6d3222
%{_libdir}/libzbar.so
f6d3222
%{_libdir}/pkgconfig/zbar.pc
f6d3222
%dir %{_includedir}/zbar
f6d3222
%{_includedir}/zbar.h
f6d3222
%{_includedir}/zbar/Exception.h
f6d3222
%{_includedir}/zbar/Symbol.h
f6d3222
%{_includedir}/zbar/Image.h
f6d3222
%{_includedir}/zbar/Scanner.h
f6d3222
%{_includedir}/zbar/Decoder.h
f6d3222
%{_includedir}/zbar/ImageScanner.h
f6d3222
%{_includedir}/zbar/Video.h
f6d3222
%{_includedir}/zbar/Window.h
f6d3222
%{_includedir}/zbar/Processor.h
f6d3222
f6d3222
%files gtk
f6d3222
%{_libdir}/libzbargtk.so.*
Mauro Carvalho Chehab f637bc2
%{_bindir}/zbarcam-gtk
f6d3222
f6d3222
%files gtk-devel
f6d3222
%{_libdir}/libzbargtk.so
f6d3222
%{_libdir}/pkgconfig/zbar-gtk.pc
f6d3222
%{_includedir}/zbar/zbargtk.h
f6d3222
f6d3222
%files pygtk
53f2cbc
%{python2_sitearch}/zbarpygtk.so
53f2cbc
%{python2_sitearch}/zbar.so
f6d3222
f6d3222
%files qt
f6d3222
%{_libdir}/libzbarqt.so.*
Mauro Carvalho Chehab f637bc2
%{_bindir}/zbarcam-qt
f6d3222
f6d3222
%files qt-devel
f6d3222
%{_libdir}/libzbarqt.so
f6d3222
%{_libdir}/pkgconfig/zbar-qt.pc
f6d3222
%{_includedir}/zbar/QZBar*.h
f6d3222
f6d3222
%changelog
60e4c2b
* Thu Aug  9 2018 Hans de Goede <hdegoede@redhat.com> - 0.20.1-3
60e4c2b
- Drop zbar_fedora29_hack_for_codegen_to_work.patch now that pygobject2 is
60e4c2b
  fixed (rhbz# 1606784)
60e4c2b
- Use %%ldconfig_scriptlets so that we don't unnecessarily run ldconfig on F28+
60e4c2b
Mauro Carvalho Chehab ff4c638
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-2
Mauro Carvalho Chehab ff4c638
- Re-enable python2 bindings
Mauro Carvalho Chehab ff4c638
Mauro Carvalho Chehab 3353f69
* Wed Aug 08 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20.1-1
Mauro Carvalho Chehab 3353f69
- Bump version to 0.20.1
Mauro Carvalho Chehab 3353f69
Mauro Carvalho Chehab 3353f69
* Tue Aug 07 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> - 0.20-8
Mauro Carvalho Chehab c3e7934
- Fix python 2 dependencies
Mauro Carvalho Chehab c3e7934
8f63028
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-7
8f63028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8f63028
564f374
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.20-6
564f374
- Update Python 2 dependency declarations to new packaging standards
564f374
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
564f374
b2260ef
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-5
b2260ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2260ef
7877cf2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-4
7877cf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7877cf2
2896e09
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-3
2896e09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2896e09
Mauro Carvalho Chehab 658da81
* Tue Apr 11 2017 Mauro Carvalho Chehab <mchehab@s-opensource.com> - 0.20-1
Mauro Carvalho Chehab 658da81
- Update it to version 0.20 with brings V4L2 controls to zbarcam-qt
Mauro Carvalho Chehab 658da81
Mauro Carvalho Chehab 7715ab8
* Sun Mar 26 2017 Mauro Carvalho Chehab <mchehab@s-opensource.com> - 0.10-29
Mauro Carvalho Chehab f637bc2
- Make zbar-qt to use Qt5 and generate gtk and qt applications
Mauro Carvalho Chehab 7715ab8
8588580
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-28
8588580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8588580
b84eafa
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-27
b84eafa
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b84eafa
93afbf9
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-26
93afbf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
93afbf9
208e2f5
* Fri Aug 14 2015 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.10-25
208e2f5
- Add patch to include m4_pattern_allow([AM_PROG_AR])
208e2f5
de9d00c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-24
de9d00c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
de9d00c
7f27219
* Sat Jun 06 2015 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.10-23
7f27219
- Add patch to use REQBUFS properly
7f27219
0753972
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.10-22
0753972
- Rebuilt for GCC 5 C++11 ABI change
0753972
c290aab
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-21
c290aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c290aab
93fa0bd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-20
93fa0bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93fa0bd
Mauro Carvalho Chehab c90bcf0
* Tue Aug 06 2013 Mauro Carvalho Chehab <m.chehab@samsung.com> - 0.10-19
Mauro Carvalho Chehab c90bcf0
- Fix Fedora 20 build problems
Mauro Carvalho Chehab c90bcf0
9c927f6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-18
9c927f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9c927f6
66165c3
* Tue Mar 26 2013 Brian Pepple <bpepple@fedoraproject.org> - 0.10-17
66165c3
- Rebuild.
66165c3
Mauro Carvalho Chehab 16e94d7
* Fri Feb 22 2013 Mauro Carvalho Chehab <mchehab@redhat.com> - 0.10-16
Mauro Carvalho Chehab 16e94d7
- Change zbar to use GraphicsMagick instead of ImageMagick
Mauro Carvalho Chehab 16e94d7
Mauro Carvalho Chehab 23c808b
* Fri Feb 22 2013 Mauro Carvalho Chehab <mchehab@redhat.com> - 0.10-15
Mauro Carvalho Chehab 23c808b
- zbar 0.10 source generated via hg archive -r 0.10 ../zbar-0.10.tar.bz2
Mauro Carvalho Chehab 23c808b
  That allows to better handle the difference from 0.10 to -hg
Mauro Carvalho Chehab 23c808b
- Update to the latest hg patch
Mauro Carvalho Chehab 23c808b
c65e967
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-14
c65e967
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c65e967
Adam Tkac 5d3e6e1
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.10-13
Adam Tkac 5d3e6e1
- rebuild against new libjpeg
Adam Tkac 5d3e6e1
acecaed
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-12
acecaed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
acecaed
a60e145
* Thu Mar 01 2012 Brian Pepple <bpepple@fedoraproject.org> - 0.10-11
a60e145
- Rebuild
a60e145
76abed2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-10
76abed2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
76abed2
1d4fc44
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.10-9
1d4fc44
- Rebuild for new libpng
1d4fc44
c9a56b3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-8
c9a56b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c9a56b3
Mauro Carvalho Chehab 6747812
* Sat Dec 25 2010 Mauro Carvalho Chehab <mchehab@redhat.com> - 0.10-7
Mauro Carvalho Chehab 6bdec7f
- Prefer to use non-emulated formats
Mauro Carvalho Chehab 6bdec7f
Mauro Carvalho Chehab 23c808b
* Sun Dec 05 2010 Mauro Carvalho Chehab <mchehab@redhat.com>
27a148a
- Update it to the newest version available at zbar git directory
27a148a
- Use libv4l to communicate with video devices
27a148a
Jesse Keating c066d62
* Wed Sep 29 2010 jkeating - 0.10-5
Jesse Keating c066d62
- Rebuilt for gcc bug 634757
Jesse Keating c066d62
225e5ed
* Wed Sep 15 2010 Hans de Goede <hdegoede@redhat.com> 0.10-4
225e5ed
- Rebuild for new ImageMagick
225e5ed
16d17c4
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.10-3
16d17c4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
16d17c4
e40042a
* Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.10-2
e40042a
- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
e40042a
- Always BR qt4-devel rather than qt-devel, it's provided by qt-devel anyway
e40042a
a43f5ef
* Mon Nov 02 2009 Bastien Nocera <bnocera@redhat.com> 0.10-1
a43f5ef
- Update to 0.10
a43f5ef
d1ffdbd
* Wed Jul 29 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-7
d1ffdbd
- Replace URL info
d1ffdbd
092a56e
* Wed Jul 29 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.8-6
092a56e
- fix epel build
092a56e
Mauro Carvalho Chehab 6747812
* Tue Jul 28 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-5
f6d3222
- Now fixed Source0 url
f6d3222
- Removed ldconfig calls to devel subpackages
f6d3222
- Fixed directory ownership issue -pygtk
f6d3222
- Added %%{name} to URL
Mauro Carvalho Chehab 9dc8307
- Added comment to rpath
f6d3222
- Improved comment for removing .la and .a files
f6d3222
Mauro Carvalho Chehab 6747812
* Mon Jul 27 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-4
f6d3222
- Fixed sourceforge url
f6d3222
- Removed redundant libX11-devel package from BuildRequires
f6d3222
- Removed redundant ImageMagick package from Requires
f6d3222
- Removed Provides for not included static libs
f6d3222
- Removed redundant requires to subpackages -qt and -gtk
f6d3222
- Removed redundant {name} = %%{version}-%%{release} from -pygtk
Mauro Carvalho Chehab 9dc8307
- Replaced macros from % to %% in changelog
f6d3222
- Fixed ownership issue
f6d3222
- Added ldconfig call to devel, qt-devel and gtk-devel
f6d3222
Mauro Carvalho Chehab 6747812
* Fri Jul 24 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-3
f6d3222
- Fixed License from LGPLv2 to LGPLv2+
f6d3222
- Added to main BuildRequires libXv-devel and xmlto packages
f6d3222
- Removed pkgconfig from main BuildRequires
f6d3222
- Removed .la and .a files
f6d3222
- Removed version validation from ImageMagick-c++ and ImageMagick-c++-devel packages
f6d3222
- Replaced 3 {%%version} to %%{version} (packages: devel, qt-devel, gtk-devel)
f6d3222
- Removed duplicated description for each package
f6d3222
- Added %%{version}-%%{release} to packages: devel, gtk, gtk-devel, pygtk, qt
f6d3222
- Added pkgconfig to packages gtk-devel, qt-devel into Requires session
f6d3222
- Removed redundant packages
f6d3222
- Added dependency of gtk to pygtk
f6d3222
- Added timestamp on installed files
f6d3222
- Replaced %%{_datadir}/man to %%{_mandir}
f6d3222
- Removed INSTALL file
f6d3222
- Fixed %%doc session
f6d3222
- Added to -devel own of %%{_includedir}/zbar directory
f6d3222
- Replaced "%%{_libdir}/python*" to %%{python_sitearch}
f6d3222
- Fixed %%defattr
f6d3222
- Fixed Release Number and Changelog
f6d3222
- Fixed rpath error
f6d3222
f6d3222
* Thu Jul 16 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-2
Mauro Carvalho Chehab 9dc8307
- Added pkgconfig to devel package
Mauro Carvalho Chehab 9dc8307
- Fixed syntax to ldconfig
f6d3222
- Fixed warnings from rpmlint
f6d3222
- Fixed static path to docs
f6d3222
Mauro Carvalho Chehab 6747812
* Wed Jul 15 2009 Douglas Schilling Landgraf <dougsland@redhat.com> - 0.8-1
f6d3222
- First release, based on original zbar.spec provided by sources