Backends into subpackage, enhance descriptions.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 09:46:52 +0000 (11:46 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 09:46:52 +0000 (11:46 +0200)
rOCCI-server.spec

index 1f2524b..ce2217b 100644 (file)
@@ -74,19 +74,60 @@ Requires:       rubygem(openssl_cms_2_1)
 %endif
 
 %description
-A ruby OCCI server.
+OCCI (the Open Cloud Computing Interface) is a standard by the Open Grid Forum,
+specifying a protocol and API to perform various remote management tasks in
+clouds. The rOCCI-server extends cloud managers, which are not OCCI-compliant
+natively, with its own OCCI interface. It is based on the rOCCI (Ruby OCCI)
+Framework.
 
 
 %package doc
 Summary:        Documentation for %{name}
-Group:          Documentation
-Requires:       %{name} = %{version}-%{release}
 BuildArch:      noarch
+Requires:       %{name} = %{version}-%{release}
 
 %description doc
 Documentation for %{name}.
 
 
+%package ec2
+Summary:        Amazon backend for %{gem_name}
+BuildArch:      noarch
+Requires:       rubygem(aws-sdk-core) >= 2.0.0.rc15
+Requires:       rubygem(aws-sdk-core) < 2.0.1
+Requires:       %{name} = %{version}-%{release}
+
+%description ec2
+OCCI (the Open Cloud Computing Interface) is a standard by the Open Grid Forum,
+specifying a protocol and API to perform various remote management tasks in
+clouds. The rOCCI-server extends cloud managers, which are not OCCI-compliant
+natively, with its own OCCI interface. It is based on the rOCCI (Ruby OCCI)
+Framework.
+
+This package provides Amazon Web Services backend for OCCI server.
+
+
+%package opennebula
+Summary:        Opennebula backend for %{gem_name}
+BuildArch:      noarch
+Requires:       rubygem(erubis)
+# upstream: opennebula ~> 4.6.0
+# current: opennebula 4.8.0
+Requires:       rubygem(opennebula) >= 4.6.0
+#Requires:       rubygem(opennebula) < 4.7
+Requires:       rubygem(ox)
+Requires:       %{name} = %{version}-%{release}
+
+%description opennebula
+OCCI (the Open Cloud Computing Interface) is a standard by the Open Grid Forum,
+specifying a protocol and API to perform various remote management tasks in
+clouds. The rOCCI-server extends cloud managers, which are not OCCI-compliant
+natively, with its own OCCI interface. It is based on the rOCCI (Ruby OCCI)
+Framework.
+
+This package provides Opennebula backend for OCCI server.
+
+
 %prep
 %setup -q -n %{name}-%{commit}
 
@@ -187,11 +228,16 @@ fi
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/occi-ssl.conf
 %dir %{_datadir}/selinux/packages/%{name}/
 %dir %{app_root}/
+%dir %{app_root}/lib/backends/
 %{app_root}/app/
 %{app_root}/config/
 %{app_root}/db/
 %{app_root}/examples/
 %{app_root}/lib/
+%{app_root}/lib/backends/dummy/
+%{app_root}/lib/backends/errors/
+%{app_root}/lib/backends/helpers/
+%{app_root}/lib/backends/dummy_backend.rb
 %{app_root}/public/
 %{app_root}/vendor/
 %{app_root}/etc
@@ -201,6 +247,7 @@ fi
 %attr(-,rocci,rocci) %{_localstatedir}/log/rocci-server/
 %{_datadir}/selinux/packages/%{name}/%{semodule_name}.pp
 %exclude %{app_root}/bin/
+%exclude %{app_root}/lib/backends/
 %exclude %{app_root}/.bundle/
 %exclude %{app_root}/.rspec
 %exclude %{app_root}/.travis.yml
@@ -209,6 +256,7 @@ fi
 
 %files doc
 %{_pkgdocdir}/
+%{app_root}/lib/backends/bundles/
 %{app_root}/spec/
 %{app_root}/test/
 %{app_root}/Gemfile
@@ -216,7 +264,15 @@ fi
 %{app_root}/README.md
 %{app_root}/Rakefile
 
+%files ec2
+%{app_root}/lib/backends/ec2/
+%{app_root}/lib/backends/ec2_backend.rb
+
+%files opennebula
+%{app_root}/lib/backends/opennebula/
+%{app_root}/lib/backends/opennebula_backend.rb
+
 
 %changelog
-* Wed Sep 10 2014 František Dvořák <valtri@civ.zcu.cz> - 1.0.5-1.20140830gite142d83
+* Sun Sep 14 2014 František Dvořák <valtri@civ.zcu.cz> - 1.0.5-1.20140830gite142d83
 - Initial package