Files
rubygem-genprovider/rubygem-genprovider.spec

97 lines
2.8 KiB
RPMSpec

#
# spec file for package rubygem-genprovider
#
# Copyright (c) 2013 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/
#
Name: rubygem-genprovider
Version: 0.3.1
Release: 0
%define mod_name genprovider
%define mod_full_name %{mod_name}-%{version}
#BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: git
BuildRequires: ruby-macros >= 1
BuildRequires: rubygem(mof) >= 1.0
BuildRequires: rubygem(rdoc)
BuildRequires: rubygem(yard)
Url: https://github.com/kkaempf/genprovider
Source: %{mod_full_name}.gem
Source1: FILES
Source2: TEST_FILES
Summary: A generator for Ruby based CMPI providers
License: Ruby
Group: Development/Languages/Ruby
%description
Genprovider takes a Managed Object Format (MOF) specification
of a Common Information Model (CIM) class and generates
- a Ruby provider implementation
- sfcb registration data
- a Ruby test case
%package testsuite
Summary: Test suite for %{mod_name}
Group: Development/Languages/Ruby
Requires: %{name} = %{version}
Requires: sblim-sfcb
%description testsuite
Automated test suite based on sblim-sfcb
%package doc
Summary: Documentation for %{mod_name}
Group: Development/Languages/Ruby
%description doc
Ruby documentation files for %{mod_name}
%prep
#gem_unpack
#if you need patches, apply them here and replace the # with a % sign in the surrounding lines
#gem_build
%build
%install
%gem_install
cd %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}
cp %{S:1} .
cp %{S:2} .
rake doc
rm -rf .yardoc
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/doc
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
%files testsuite
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test
%files doc
%defattr(-,root,root,-)
%dir %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/doc
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/doc/*
%changelog