%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}
%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
%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
%files doc
%{_pkgdocdir}/
+%{app_root}/lib/backends/bundles/
%{app_root}/spec/
%{app_root}/test/
%{app_root}/Gemfile
%{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