summaryrefslogtreecommitdiff
path: root/libzypp-bindings.spec.cmake
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2007-07-23 16:41:35 +0000
committerArvin Schnell <aschnell@suse.de>2007-07-23 16:41:35 +0000
commitc50f036fafe19a6e41079ffa03fa8c2bb6417fb5 (patch)
tree28f9378e47ae2f61fe6f59270b205b8187edb6b3 /libzypp-bindings.spec.cmake
parentf80a0fe17d4cd4ccdc607ea205d472aadbb47185 (diff)
downloadlibzypp-bindings-c50f036fafe19a6e41079ffa03fa8c2bb6417fb5.tar.gz
libzypp-bindings-c50f036fafe19a6e41079ffa03fa8c2bb6417fb5.tar.bz2
libzypp-bindings-c50f036fafe19a6e41079ffa03fa8c2bb6417fb5.zip
- undo last commit
Diffstat (limited to 'libzypp-bindings.spec.cmake')
-rw-r--r--libzypp-bindings.spec.cmake58
1 files changed, 58 insertions, 0 deletions
diff --git a/libzypp-bindings.spec.cmake b/libzypp-bindings.spec.cmake
new file mode 100644
index 0000000..1c971f2
--- /dev/null
+++ b/libzypp-bindings.spec.cmake
@@ -0,0 +1,58 @@
+#
+# 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/
+#
+
+Name: @PACKAGE@
+Version: @VERSION@
+Release: 0
+License: GPL
+Summary: Bindings for libzypp
+Group: Development/Sources
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: cmake gcc-c++ ruby-devel swig
+BuildRequires: libzypp-devel >= 3.0.0
+Source: %{name}-%{version}.tar.bz2
+
+%description
+-
+
+%prep
+%setup -q
+
+%build
+mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
+ -DLIB=%{_lib} \
+ -DCMAKE_C_FLAGS="%{optflags}" \
+ -DCMAKE_CXX_FLAGS="%{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,-)
+%{_libdir}/ruby/%{rb_ver}/%{rb_arch}/rzypp.so
+
+%changelog