rpms/rubygem-term-ansicolor/F-11 rubygem-term-ansicolor.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lubomir Rintel lkundrak at fedoraproject.org
Sat Jun 27 07:13:07 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/rubygem-term-ansicolor/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3135/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	rubygem-term-ansicolor.spec 
Log Message:
Import to branches


--- NEW FILE rubygem-term-ansicolor.spec ---
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname term-ansicolor
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary:        Ruby library that colors strings using ANSI escape sequences
Name:           rubygem-%{gemname}
Version:        1.0.3
Release:        3%{?dist}
Group:          Development/Languages
License:        GPLv2
URL:            http://term-ansicolor.rubyforge.org
Source0:        http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       ruby(abi) = 1.8
Requires:       rubygems
BuildRequires:  rubygems
BuildArch:      noarch
Provides:       rubygem(%{gemname}) = %{version}

%description
Small Ruby library that colors strings using ANSI escape sequences.


%prep


%build


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

# We strip bad shebangs (/usr/bin/env) instead of fixing them
# since these files are not executable anyways
find $RPM_BUILD_ROOT%{gemdir} \( -name '*.rb' -o -name 'Rakefile' \) \
        -exec grep -q '^#!' '{}' \; -print |while read F
do
        awk '/^#!/ {if (FNR == 1) next;} {print}' $F >chopped
        touch -r $F chopped
        mv chopped $F
done


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%dir %{geminstdir}
%doc %{geminstdir}/CHANGES
%doc %{geminstdir}/GPL
%doc %{geminstdir}/README.en
%doc %{geminstdir}/VERSION
%doc %{geminstdir}/examples
%{geminstdir}/Rakefile
%{geminstdir}/*.rb
%{geminstdir}/lib/
%doc %{gemdir}/doc/%{gemname}-%{version}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec


%changelog
* Fri Jun 26 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 1.0.3-3
- Get rid of duplicate files (thanks to Mamoru Tasaka)

* Mon Jun 08 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 1.0.3-2
- Fix up documentation list
- Use geminstdir macro where appropriate
- Do not move examples around
- Depend on ruby(abi)
- Replace defines with globals

* Fri Jun 05 2009 Lubomir Rintel (Good Data) <lubo.rintel at gooddata.com> - 1.0.3-1
- Package generated by gem2rpm
- Strip useless shebangs
- Move examples into documentation
- Fix up License


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-term-ansicolor/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	27 Jun 2009 00:43:11 -0000	1.1
+++ .cvsignore	27 Jun 2009 07:12:36 -0000	1.2
@@ -0,0 +1 @@
+term-ansicolor-1.0.3.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-term-ansicolor/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	27 Jun 2009 00:43:11 -0000	1.1
+++ sources	27 Jun 2009 07:12:36 -0000	1.2
@@ -0,0 +1 @@
+a3a0e84293c9aa79e7b3df4a584b84c2  term-ansicolor-1.0.3.gem




More information about the fedora-extras-commits mailing list