Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 871939 Details for
Bug 923593
rubygem-openwsman
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
convert -ruby to rubygem-
ruby2rubygem.patch (text/plain), 3.63 KB, created by
Vít Ondruch
on 2014-03-07 15:53:31 UTC
(
hide
)
Description:
convert -ruby to rubygem-
Filename:
MIME Type:
Creator:
Vít Ondruch
Created:
2014-03-07 15:53:31 UTC
Size:
3.63 KB
patch
obsolete
>diff --git a/openwsman.spec b/openwsman.spec >index 6dca62d..6f11911 100644 >--- a/openwsman.spec >+++ b/openwsman.spec >@@ -4,10 +4,13 @@ > %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} > %endif > >+# RubyGems's macros expect gem_name to exist. >+%global gem_name %{name} >+ > Name: openwsman > BuildRequires: swig > BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel >-BuildRequires: python python-devel ruby ruby-devel rubygem(rdoc) perl >+BuildRequires: python python-devel ruby ruby-devel rubygems-devel perl > BuildRequires: python python-devel perl > BuildRequires: perl-devel pkgconfig openssl-devel > #BuildRequires: java-1.8.0-openjdk-devel >@@ -112,16 +115,29 @@ API. > > > >-%package ruby >+%package -n rubygem-%{gem_name} > License: BSD > Group: Development/Libraries >-Requires: ruby > Requires: ruby(release) >-Summary: Ruby bindings for openwsman client API >-Requires: libwsman1 = %{version}-%{release} >+Requires: ruby(rubygems) >+Summary: Ruby client bindings for Openwsman >+Provides: rubygem(%{gem_name}) = %{version} >+Provides: %{name}-ruby = %{version}-%{release} >+Obsoletes: %{name}-ruby < %{version}-%{release} >+ >+%description -n rubygem-%{gem_name} >+The openwsman gem provides a Ruby API to manage systems using >+the WS-Management protocol. >+ >+%package -n rubygem-%{gem_name}-doc >+Summary: Documentation for %{name} >+Group: Documentation >+Requires: rubygem-%{gem_name} = %{version}-%{release} >+BuildArch: noarch >+ >+%description -n rubygem-%{gem_name}-doc >+Documentation for rubygem-%{gem_name} > >-%description ruby >-This package provides Ruby bindings to access the openwsman client API. > > #%package java > #Requires: java >@@ -177,13 +193,24 @@ cmake \ > -DCMAKE_SKIP_RPATH=1 \ > -DPACKAGE_ARCHITECTURE=`uname -m` \ > -DLIB=%{_lib} \ >- -DBUILD_RUBY_GEM=no \ > .. > > make CFLAGS="-DSSL_LIB='\"$SSL_LIB\"'" > >+# Make the freshly build openwsman libraries available to build the gem's >+# binary extension. >+export LIBRARY_PATH=/builddir/build/BUILD/openwsman-2.4.3/build/src/lib >+export CPATH=/builddir/build/BUILD/openwsman-2.4.3/include/ >+export LD_LIBRARY_PATH=/builddir/build/BUILD/openwsman-2.4.3/build/src/lib/ >+ >+%gem_install -n ./bindings/ruby/%{name}-%{version}.gem >+ > %install > cd build >+ >+# Do not install the ruby extension, we are proviging the rubygem- instead. >+echo -n > bindings/ruby/cmake_install.cmake >+ > make DESTDIR=%{buildroot} install > cd .. > rm -f %{buildroot}/%{_libdir}/*.la >@@ -206,6 +233,16 @@ install -m 644 include/wsman-xml.h %{buildroot}/%{_includedir}/openwsman > install -m 644 include/wsman-xml-binding.h %{buildroot}/%{_includedir}/openwsman > install -m 644 include/wsman-dispatcher.h %{buildroot}/%{_includedir}/openwsman > >+mkdir -p %{buildroot}%{gem_dir} >+cp -pa ./build%{gem_dir}/* \ >+ %{buildroot}%{gem_dir}/ >+ >+rm -rf %{buildroot}%{gem_instdir}/ext >+ >+mkdir -p %{buildroot}%{gem_extdir_mri}/lib >+mv %{buildroot}%{gem_instdir}/lib/_%{name}.so %{buildroot}%{gem_extdir_mri}/lib/ >+ >+ > %post -n libwsman1 -p /sbin/ldconfig > > %postun -n libwsman1 -p /sbin/ldconfig >@@ -245,11 +282,16 @@ rm -f /var/log/wsmand.log > %{python_sitearch}/*.pyo > %doc AUTHORS COPYING ChangeLog README.md > >-%files ruby >-%{ruby_vendorarchdir}/_openwsman.so >-%dir %{ruby_vendorlibdir}/openwsman >-%{ruby_vendorlibdir}/openwsman/*.rb >+%files -n rubygem-%{gem_name} > %doc AUTHORS COPYING ChangeLog README.md >+%dir %{gem_instdir} >+%{gem_libdir} >+%{gem_extdir_mri} >+%exclude %{gem_cache} >+%{gem_spec} >+ >+%files -n rubygem-%{gem_name}-doc >+%doc %{gem_docdir} > > #%files java > #%defattr(-,root,root)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 923593
: 871939