File zbar.spec of Package zbar
Name: zbar
Summary: Library for decoding bar codes
Version: 0.10
Release: 1
License: LGPL
Group: Productivity/Graphics/Other
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/build-root-%{name}
Prefix: /usr
Url: http://zbar.sourceforge.net/
Requires: ImageMagick
BuildRequires: ImageMagick-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: libqt4-devel
Patch1: fix_build.patch
%description
ZBar Bar Code Reader is a library for scanning and decoding bar codes
from various sources such as video streams, image files or raw intensity
sensors. It supports EAN/UPC, Code 128, Code 39 and Interleaved 2 of 5.
Included with the library are basic applications for decoding captured
bar code images and using a video device (eg, webcam) as a bar code
scanner. For application developers, language bindings are included for
C, C++, Python and Perl as well as GUI widgets for Qt, GTK and PyGTK.
%prep
%setup -q
%patch1 -p1
autoreconf --install
export CFLAGS=""
./configure --without-x --disable-video --without-python --without-jpeg --without-gtk --without-qt --prefix=%{prefix} --libdir=%{_libdir}
%build
make -j3
%install
make DESTDIR=$RPM_BUILD_ROOT install-strip
cd $RPM_BUILD_ROOT
rm usr/share/doc/zbar/INSTALL ./%{_libdir}/libzbar.{a,la}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%package devel
License: LGPL
Summary: Header and Include Files
Group: Development/Libraries/C and C++
Requires: ImageMagick-devel pkgconfig %{name} = %{version}-%{release}
%description devel
This package contains header files and include files that are needed
for Zbar bar code reader.
%files devel
%defattr(-,root,root)
/usr/include/zbar
/usr/include/zbar.h
%{_libdir}/pkgconfig/zbar*.pc
%{_libdir}/libzbar.so
%files
%defattr(-,root,root,0755)
%dir /usr/share/doc/zbar
/usr/bin/zbar*
%{_libdir}/libzbar.so.*
%defattr(-,root,root,0644)
/usr/share/doc/zbar/*
/usr/share/man/man1/zbar*.1.gz
%changelog
* Fri May 21 2010 sergey1369@gmail.com
- Unstable dev version now
* Tue Feb 19 2010 sergey1369@gmail.com
- cleanup, compile on 64bit, fixed warnings etc
* Tue Oct 20 2009 sergey1369@gmail.com
- initial version