Hi
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Yi Yang
> Sent: Friday, November 26, 2010 9:46 AM
> To: [email protected]
> Subject: [meego-commits] 9772: New package Trunk:Testing/libzypp-bindings
>
> Hi,
> Adding new package libzypp-bindings in project Trunk:Testing. Please review
> and accept ASAP.
>
> Justification for this new package:
>
> Add libzypp-bindings
>
> Thank You,
> Yi Yang
>
> [This message was auto-generated]
>
> ---
>
> Request #9772:
>
> submit: home:yyang:branches:Trunk:Testing/libzypp-bindings(r1)(cleanup)
> -> Trunk:Testing/libzypp-bindings
>
>
> Message:
> Add libzypp-bindings
>
> State: new 2010-11-25T17:46:10 yyang
> Comment: None
>
>
> This is a NEW package in Trunk:Testing project.
> The files in the new package:
> libzypp-bindings/
> |__ libzypp-bindings-0.5.7.tar.gz
> |__ libzypp-bindings.changes
> |__ 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()")}
> 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-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} \
> -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
> %{__rm} -rf %{buildroot}
>
No need at all
> %package -n ruby-zypp
> Summary: Ruby bindings for libzypp
> Group: Development/Languages/Ruby
>
> %description -n ruby-zypp
> -
>
> %files -n ruby-zypp
> %defattr(-,root,root,-)
> %if 0%{?suse_version}
Remove this
> %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
> %endif
> %if 0%{?mandriva_version}
Remove this
> %{ruby_sitearchdir}/zypp.so
> %endif
>
A bit confused, so this means ruby binding does apply for suse or mandriva only?
> %package -n python-zypp
> Summary: Python bindings for libzypp
> Group: Development/Languages/Python
> %description -n python-zypp
> -
>
> %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
>
> #%package -n perl-zypp
> #Requires: perl = %{perl_version}
> #Summary: Perl bindings for libzypp
> #Group: Development/Languages/Perl
>
> #%description -n perl-zypp
> #-
>
> #%files -n perl-zypp
> #%defattr(-,root,root,-)
> #%{perl_vendorlib}/zypp.pm
> #%{perl_vendorarch}/zypp.so
>
Please remove this
>
> ================================================================
> ===
>
> _______________________________________________
> MeeGo-commits mailing list
> [email protected]
> http://lists.meego.com/listinfo/meego-commits
_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging