[meego-commits] 10476: New package devel:tools:building:unstable/libzypp-bindings

Yi Yang no_reply at build.meego.com
Wed Dec 1 09:31:10 UTC 2010


Hi,
Adding new package libzypp-bindings in project devel:tools:building:unstable. Please review and accept ASAP.

Justification for this new package:



Thank You,
Yi Yang

[This message was auto-generated]

---

Request #10476:

  submit:   home:yyang:branches:devel:tools:building/libzypp-bindings(r3) -> devel:tools:building:unstable/libzypp-bindings


Message:
    None

State:   new          2010-12-01T01:31:10 yyang
Comment: None


This is a NEW package in devel:tools:building:unstable project.
The files in the new package:
libzypp-bindings/
  |__  debian.tar.gz
  |__  libzypp-bindings-0.5.7.tar.gz
  |__  libzypp-bindings.changes
  |__  libzypp-bindings.dsc
  |__  libzypp-bindings.spec
  |__  remove-perl-binding.patch

The content of the spec file, libzypp-bindings.spec:
===================================================================
#
# spec file for package libzypp-bindings
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# nodebuginfo
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?fedora_version} || 0%{?meego_version}  
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}  
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}  
%endif
Name:           libzypp-bindings
Version:        0.5.7
Release:        1.3
License:        GPL v2 or later
Summary:        Bindings for libzypp
Group:          Development/Sources
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake gcc-c++ python-devel ruby ruby-devel
BuildRequires:  swig >= 1.3.40
BuildRequires:  libzypp-devel >= 5.8.0
Source:         %{name}-%{version}.tar.gz
Patch1:         remove-perl-binding.patch

%description
This package provides bindings for libzypp, the library for package management.

%prep
%setup -q
%patch1 -p1

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
      -DPYTHON_SITEDIR=%{python_sitelib} \
      -DRUBY_VENDORARCH_DIR=%{ruby_sitearch} \
      -DLIB=%{_lib} \
      -DCMAKE_VERBOSE_MAKEFILE=TRUE \
      -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_SKIP_RPATH=1 \
      ..
make %{?jobs:-j %jobs}

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT

%clean

%package -n ruby-zypp
Summary:        Ruby bindings for libzypp
Group:          Development/Languages/Ruby

%description -n ruby-zypp
Ruby bindings of libzypp

%files -n ruby-zypp
%defattr(-,root,root,-)
%if 0%{?suse_version}
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
%endif
%if 0%{?fedora_version} || 0%{?meego_version}  
%{ruby_sitearch}/zypp.so
%endif

%package -n python-zypp
Summary:        Python bindings for libzypp
Group:          Development/Languages/Python
%description -n python-zypp
Python bindings of libzypp

%files -n python-zypp
%defattr(-,root,root,-)
%{python_sitelib}/_zypp.so
%{python_sitelib}/zypp.py
%if 0%{?meego_version}
%{python_sitelib}/zypp.pyc
%{python_sitelib}/zypp.pyo
%endif

===================================================================




More information about the MeeGo-commits mailing list