ruby-rgen/ruby-rgen.spec

46 lines
1.5 KiB
RPMSpec
Raw Normal View History

%define gemdir %(ruby -rubygems -e'puts Gem.default_dir')
%define gemname %(echo %{name} | sed "s|^ruby-||")
Name: ruby-rgen
Version: 0.6.6
Release: 1mamba
Summary: A framework for Model Driven Software Development (MDSD) in Ruby
Group: System/Libraries/Ruby
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://rubygems.org/gems/rgen
Source: http://rubygems.org/downloads/rgen-%{version}.gem
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: ruby-devel
Requires: ruby
%description
RGen is a framework for Model Driven Software Development (MDSD) in Ruby. This means that it helps you build Metamodels, instantiate Models, modify and transform Models and finally generate arbitrary textual content from it.
%prep
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
gem install --no-user-install --ignore-dependencies -i "%{buildroot}%{gemdir}" \
--no-ri --no-rdoc -n "%{buildroot}%{_bindir}" "%{SOURCE0}"
rm -rf %{buildroot}%{gemdir}/cache
rm -f %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/.gitignore
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{gemdir}/gems/%{gemname}-%{version}
%{gemdir}/gems/%{gemname}-%{version}/*
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%changelog
* Wed Dec 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.6-1mamba
- package created using the webbuild interface