[CentOS-devel] rubygems rpm spec file

Ralph Angenendt

ra+centos at br-online.de
Wed Nov 19 11:52:20 UTC 2008


Karanbir Singh wrote:
> projects.centos.org solves this very problem :D
>
> But we would need a standard for the specs to get adopted, and working  
> with atleast the Fedora standards would be a good place to start.

For gems I think adoption of the generated spec files from gem2rpm is
quite okay - those specs look very clean. Find one attached.

> So, is there interest in the ruby SIG ? and who wants to take ownership  
> of spec sanity checking ?

Yes and Hmmm. >:)

Ralph
-------------- next part --------------
# Generated from imagesize-0.1.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 imagesize
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: measure image size(GIF, PNG, JPEG ,,, etc)
Name: rubygem-%{gemname}
Version: 0.1.1
Release: 1%{?dist}
Group: Development/Languages
License: Ruby
URL: http://imagesize.rubyforge.org
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
BuildRequires: rubygems
Provides: rubygem(%{gemname}) = %{version}

%description
measure image size(GIF, PNG, JPEG ,,, etc)


%prep

%build

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

%clean
rm -rf %{buildroot}

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


%changelog
* Thu Jun 12 2008 Ralph Angenendt <ralph at centos.org> - 0.1.1-1
- Initial package
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20081119/957b033d/attachment-0001.sig>


More information about the CentOS-devel mailing list