summaryrefslogtreecommitdiff
path: root/libzypp-bindings.spec.cmake
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2009-10-06 14:13:51 +0200
committerMichael Andres <ma@suse.de>2009-10-06 14:13:51 +0200
commit29b0d3cdc33786984226b0d218567d62f6ec3557 (patch)
treeb83bda9e49e5d4eb8263dd50f9ac2a1883f64d7f /libzypp-bindings.spec.cmake
parent757fee86c8b4bbd6831f26800346766b11b3ef21 (diff)
downloadlibzypp-bindings-29b0d3cdc33786984226b0d218567d62f6ec3557.tar.gz
libzypp-bindings-29b0d3cdc33786984226b0d218567d62f6ec3557.tar.bz2
libzypp-bindings-29b0d3cdc33786984226b0d218567d62f6ec3557.zip
Use ZyppCommon to build the package (does not include .git)
Diffstat (limited to 'libzypp-bindings.spec.cmake')
-rw-r--r--libzypp-bindings.spec.cmake90
1 files changed, 90 insertions, 0 deletions
diff --git a/libzypp-bindings.spec.cmake b/libzypp-bindings.spec.cmake
new file mode 100644
index 0000000..23aa13e
--- /dev/null
+++ b/libzypp-bindings.spec.cmake
@@ -0,0 +1,90 @@
+#
+# 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
+
+Name: @PACKAGE@
+Version: @VERSION@
+Release: 0
+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 swig
+BuildRequires: libzypp-devel >= 5.8.0
+Source: %{name}-%{version}.tar.bz2
+
+%description
+This package provides bindings for libzypp, the library for package management.
+
+%prep
+%setup -q
+
+%build
+mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
+ -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}
+
+%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}
+%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
+%endif
+%if 0%{?mandriva_version}
+%{ruby_sitearchdir}/zypp.so
+%endif
+
+%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
+
+%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
+
+%changelog