fix build
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/zbar?expand=0&rev=3
This commit is contained in:
parent
57aa5bd131
commit
861d18c91b
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:234efb39dbbe5cef4189cc76f37afbe3cfcfb45ae52493bfe8e191318bdbadc6
|
||||
size 592602
|
3
zbar-0.10_2011_11_19.tar.bz2
Normal file
3
zbar-0.10_2011_11_19.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:167ce5f52702dfbfa0b95ee26969ad6107cbec5e5bf33104669c19cde04703ae
|
||||
size 618404
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 19 23:06:38 UTC 2011 - opensuse@dstoecker.de
|
||||
|
||||
- fix build for openSUSE 12.1 (update to Mercurial version from 2011-11-19)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 2 15:45:58 UTC 2010 - cgoncalves@opensuse.org
|
||||
|
||||
|
11
zbar.spec
11
zbar.spec
@ -18,13 +18,15 @@
|
||||
%define libname libzbar0
|
||||
|
||||
Name: zbar
|
||||
Version: 0.10
|
||||
Version: 0.10_2011_11_19
|
||||
Release: 1
|
||||
Summary: Bar code reader
|
||||
Group: Productivity/Other
|
||||
License: LGPLv2.1+
|
||||
Url: http://zbar.sourceforge.net
|
||||
BuildRequires: ImageMagick-devel libqt4-devel gtk2-devel python-gtk-devel
|
||||
# required by mercurial archive only
|
||||
BuildRequires: xmlto
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
AutoReqProv: on
|
||||
@ -154,13 +156,18 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# for the Mercurial-based archive we need to get proper autoconf files
|
||||
autoreconf -i
|
||||
|
||||
%build
|
||||
# Mercurial only? - This should not be required in a final release version!
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wno-error=parentheses"
|
||||
%configure --docdir=%{_docdir}/%{name}
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
rm ${RPM_BUILD_ROOT}/usr/share/doc/packages/zbar/INSTALL
|
||||
find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
|
||||
%clean
|
||||
@ -178,11 +185,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog README COPYING LICENSE NEWS
|
||||
%_bindir/zbar*
|
||||
%doc %{_mandir}/man1/*
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libzbar.so.0.2.0
|
||||
%doc %{_mandir}/man1/*
|
||||
|
||||
%files -n %{libname}-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user