Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
cmpi-bindings
cmpi-bindings.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cmpi-bindings.spec of Package cmpi-bindings
# # spec file for package cmpi-bindings (Version 0.4.0) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # nodebuginfo Url: http://omc-project.com Name: cmpi-bindings Version: 0.4.0 Release: 7 License: BSD3c(or similar) ; EPL 1.0 Summary: Adapter to write and run CMPI-type CIM providers Group: Development/Libraries/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake gcc-c++ # We need swig threads support. BuildRequires: swig >= 1.3.34 BuildRequires: sblim-cmpi-devel BuildRequires: perl python-devel %if 0%{?rhel_version} > 0 BuildRequires: -vim %endif %if 0%{?fedora} + 0%{?rhel_version} > 0 BuildRequires: curl-devel pkgconfig ruby ruby-devel %if 0%{?fedora} > 0 BuildRequires: perl-devel %endif %endif %if 0%{?suse_version} > 0 BuildRequires: libcurl-devel %if 0%{?suse_version} > 1020 BuildRequires: fdupes %endif # SLE9 %if 0%{?suse_version} < 920 BuildRequires: pkgconfig ruby %else BuildRequires: ruby-devel BuildRequires: pkg-config %endif %endif Source: %{name}-%{version}.tar.bz2 Prefix: /usr %description - %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 cmpi-bindings-ruby License: BSD3c(or similar) ; EPL 1.0 Summary: Adapter to write and run CMPI-type CIM providers in Ruby Group: Development/Languages/Ruby # for the debug package. we dont use debug_package_requires here as it would enforce to install both packages. Provides: %{name} = %{version}-%{release} %if 0%{?fedora} + 0%{?rhel_version} > 0 Requires: ruby(abi) = 1.8 %endif %if 0%{?suse_version} > 1110 Requires: ruby(abi) = 1.8 %endif %if 0%{?ruby_sitelib} == 0 %{!?ruby_sitelib: %global ruby_sitelib %(ruby -r rbconfig -e 'vd = Config::CONFIG["vendorlibdir"]; print(vd ? vd : Config::CONFIG["sitelibdir"])')} %{!?ruby_sitearch: %global ruby_sitearch %(ruby -r rbconfig -e 'vad = Config::CONFIG["vendorarchdir"]; print(vad ? vad : Config::CONFIG["sitearchdir"])')} %endif %description -n cmpi-bindings-ruby - %files -n cmpi-bindings-ruby %defattr(-,root,root,-) %dir %{_libdir}/cmpi %{_libdir}/cmpi/librbCmpiProvider.so %{ruby_sitelib}/cmpi_rbwbem_bindings.rb %package -n cmpi-bindings-pywbem License: BSD3c(or similar) ; EPL 1.0 Summary: Adapter to write and run CMPI-type CIM providers in Python Group: Development/Languages/Python # for the debug package. we dont use debug_package_requires here as it would enforce to install both packages. Provides: %{name} = %{version}-%{release} %{!?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)")} %{!?py_requires: %define py_requires Requires: python} %{py_requires} %description -n cmpi-bindings-pywbem - %files -n cmpi-bindings-pywbem %defattr(-,root,root,-) %dir %{_libdir}/cmpi %{_libdir}/cmpi/libpyCmpiProvider.so %{python_sitelib}/cmpi_pywbem_bindings.py %{python_sitelib}/cmpi_pywbem_bindings.pyc %{python_sitelib}/cmpi.py %{python_sitelib}/cmpi.pyc %package -n cmpi-bindings-perl License: BSD3c(or similar) ; EPL 1.0 Requires: perl = %{perl_version} Summary: Adapter to write and run CMPI-type CIM providers in Perl Group: Development/Languages/Perl # for the debug package. we dont use debug_package_requires here as it would enforce to install both packages. Provides: %{name} = %{version}-%{release} %description -n cmpi-bindings-perl - %files -n cmpi-bindings-perl %defattr(-,root,root,-) %dir %{_libdir}/cmpi %{_libdir}/cmpi/libplCmpiProvider.so %{perl_vendorlib}/cmpi_plwbem_bindings.pl %{perl_vendorlib}/cmpi.pm %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor