rpms/rubygem-cobbler/F-9 rubygem-cobbler.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Darryl L. Pierce mcpierce at fedoraproject.org
Mon Sep 8 14:48:23 UTC 2008


Author: mcpierce

Update of /cvs/pkgs/rpms/rubygem-cobbler/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5554

Modified Files:
	.cvsignore sources 
Added Files:
	rubygem-cobbler.spec 
Log Message:
First official build for Fedora 9.



--- NEW FILE rubygem-cobbler.spec ---
# Generated from cobbler-0.0.1.gem by gem2rpm -*- rpm-spec -*-
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname cobbler
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
%define installroot %{buildroot}%{geminstdir}

Summary: 	An interface for interacting with a Cobbler server
Name: 		rubygem-%{gemname}
Version: 	0.1.0
Release: 	1%{?dist}
Group: 		Development/Languages
License: 	LGPLv2+
URL: 		http://cobbler.et.redhat.com/
Source0: 	http://fedorapeople.org/~mcpierce/%{gemname}-%{version}.gem
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: 	rubygems
BuildRequires:  ruby-flexmock
BuildRequires: 	rubygems
BuildRequires:  rubygem-rake
BuildArch: 	noarch
Provides: 	rubygem(%{gemname}) = %{version}

%description
Provides Ruby bindings to interact with a Cobbler server.

%prep

%build

%check 

cd %{installroot}

rake test

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} --force %{SOURCE0}

chmod +x %{installroot}/examples/create_system.rb
chmod +x %{installroot}/examples/has_distro.rb
chmod +x %{installroot}/examples/has_image.rb
chmod +x %{installroot}/examples/has_profile.rb
chmod +x %{installroot}/examples/has_system.rb
chmod +x %{installroot}/examples/list_distros.rb
chmod +x %{installroot}/examples/list_images.rb
chmod +x %{installroot}/examples/list_profiles.rb
chmod +x %{installroot}/examples/list_systems.rb
chmod +x %{installroot}/examples/remove_distro.rb
chmod +x %{installroot}/examples/remove_image.rb
chmod +x %{installroot}/examples/remove_profile.rb
chmod +x %{installroot}/examples/remove_system.rb

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, -)
%{gemdir}/gems/%{gemname}-%{version}/
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

%doc %{geminstdir}/COPYING 
%doc %{geminstdir}/NEWS 
%doc %{geminstdir}/README

%{geminstdir}/config/cobbler.yml


%changelog
* Mon Sep 08 2008 Darryl Pierce <dpierce at redhat.com> - 0.1.0-1
- First official build for Fedora.

* Fri Sep 05 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.2-4
- Bad BuildRequires slipped into the last version.

* Wed Sep 03 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.2-3
- Added a build requirement for rubygem-rake.

* Tue Aug 26 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.2-2
- Fixed the licensing in each source module to show the code is released under
  LGPLv2.1.
- Added %check to the spec file to run tests prior to creating the RPM.

* Thu Aug 21 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.2-1
- Added a call to update prior to saving or updating a system. If the update
  fails, then an Exception is raised.

* Wed Aug 13 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.1-3
- Added caching for the auth_token to prevent extraneous calls to login.
- Reworked and refined how cobbler_collection fields are processed, adding 
  support for both array and has properties.
- Rewrote the documentation for Cobbler::Base to make it easier to understand
  how to extend it to support other Cobbler types.
- Refactored the examples to clean up the code.

* Wed Aug 13 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.1-2
- Removed markup of cobbler.yml and a config file. Fixed a few small bugs 
  in the code for using it as a gem.

* Mon Aug 04 2008 Darryl Pierce <dpierce at redhat.com> - 0.0.1-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-cobbler/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Sep 2008 21:06:57 -0000	1.1
+++ .cvsignore	8 Sep 2008 14:47:52 -0000	1.2
@@ -0,0 +1 @@
+cobbler-0.1.0.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-cobbler/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Sep 2008 21:06:57 -0000	1.1
+++ sources	8 Sep 2008 14:47:53 -0000	1.2
@@ -0,0 +1 @@
+17638005f28adaa7bed19cd4a04ccd74  cobbler-0.1.0.gem




More information about the fedora-extras-commits mailing list