[Tizen-submit] 42788: New package Tizen:IVI:Panda/libzbar

noreply at tizen.org noreply at tizen.org
Fri Sep 4 07:46:42 GMT 2015


Hi,
Adding new package libzbar in project Tizen:IVI:Panda. Please review and accept ASAP.

Justification for this new package:

Submitter: Jeon Hee Chul <heechul.jeon at samsung.com>
Comments: initial import
Git project: platform/upstream/libzbar
Tag: submit/tizen/20150904.074427
Commit: 5494b6ccabd6b271325a4dd105f1864331245c64 Add Zbar Barcode Reader

Thank You,
Jeon Hee Chul

[This message was auto-generated]

---

Request: #42788

  submit:       Tizen:IVI:Panda:build/zbar at 1(cleanup) -> Tizen:IVI:Panda


Message:
Submitter: Jeon Hee Chul <heechul.jeon at samsung.com>
Comments: initial import
Git project: platform/upstream/libzbar
Tag: submit/tizen/20150904.074427
Commit: 5494b6ccabd6b271325a4dd105f1864331245c64 Add Zbar Barcode Reader

State:   new        2015-09-04T07:46:16 tizenrobot
Comment: <no comment>
new:
----
  _service
  _service:gbs:_git-meta
  _service:gbs:zbar-0.10.tar.bz2
  _service:gbs:zbar.spec

spec files:
-----------

++++++ new spec file:
--- _service:gbs:zbar.spec
+++ _service:gbs:zbar.spec
@@ -0,0 +1,103 @@
+#%{!?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)")}
+
+Name:           zbar
+VCS:            platform/upstream/libzbar#5494b6ccabd6b271325a4dd105f1864331245c64
+Version:        0.10
+Release:        21
+Summary:        Bar code reader
+Group:          Development/Libraries
+License:        LGPL-2.1+
+Source0:        %{name}-%{version}.tar.bz2
+#Patch0:        zbar_update_to_hg.patch
+#Patch1:        zbar_use_libv4l.patch
+#Patch2:        zbar_choose_supported_format_first.patch
+#BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#BuildRequires: autoconf automake libtool python-devel gettext-devel
+#BuildRequires: qt4-devel gtk2-devel pygtk2-devel GraphicsMagick-c++-devel
+#BuildRequires: libv4l-devel libXv-devel xmlto
+
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
+BuildRequires:  gettext-devel
+
+%description
+A layered barcode scanning and decoding library. Supports EAN, UPC, Code 128,
+Code 39 and Interleaved 2 of 5.
+Includes applications for decoding captured barcode images and using a video
+device (eg, webcam) as a barcode scanner.
+
+%package devel
+Group: Development/Libraries
+Summary: Bar code library extra development files
+Requires: pkgconfig, %{name} = %{version}-%{release}
+
+%description devel
+This package contains header files and additional libraries used for
+developing applications that read bar codes with this library.
+
+%prep
+%setup -q
+
+%build
+autoreconf -vfi
+%configure --without-imagemagick --without-gtk --without-qt --without-python --without-xshm --without-xv --disable-video
+
+# 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}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
+mkdir -p $RPM_BUILD_ROOT/usr/share/license/%{name}
+
+#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-0.10/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%post devel -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list