Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
ec794260d3 dist-git conversion 2010-07-29 11:51:24 +00:00
Bill Nottingham
d996b5fd5a Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:31:18 +00:00
Jeroen van Meeuwen
8dcd1501ff 1.4.0-2 2008-10-01 23:43:57 +00:00
Kevin Fenzi
8272938e70 Initialize branch F-9 for rubygem-highline 2008-10-01 18:58:18 +00:00
5 changed files with 74 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
highline-1.4.0.tgz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: rubygem-highline
# $Id$
NAME := rubygem-highline
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

72
rubygem-highline.spec Normal file
View file

@ -0,0 +1,72 @@
# Generated from highline-1.4.0.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 highline
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: HighLine is a high-level command-line IO library
Name: rubygem-%{gemname}
Version: 1.4.0
Release: 2%{?dist}
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://highline.rubyforge.org
Source0: http://rubyforge.org/frs/download.php/23791/%{gemname}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
Requires: ruby(abi) = 1.8
BuildRequires: rubygems
BuildRequires: rubygem-rake
BuildRequires: zip
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
%description
A high-level IO library that provides validation, type conversion, and more
for command-line interfaces. HighLine also includes a complete menu system
that can crank out anything from simple list selection to complete shells with
just minutes of work.
%prep
%setup -q -n %{gemname}-%{version}
# This makes the she-bang look OK...
expr="s|/usr/local/bin/ruby|`which ruby`|"
sed -i -e $expr `find test/ examples/ lib/ -name '*.rb'`
# But these files are not executable either
#expr="/#!\/usr\/local\/bin\/ruby/d"
#sed -i -e $expr `find lib/ -name '*.rb'`
%build
rake package
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
--force --rdoc pkg/%{gemname}-%{version}.gem
cd %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/
find test/ examples/ lib/ -name '*.rb' -exec chmod ugo+x {} \;
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{gemdir}/gems/%{gemname}-%{version}/
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/README
%doc %{geminstdir}/INSTALL
%doc %{geminstdir}/TODO
%doc %{geminstdir}/CHANGELOG
%doc %{geminstdir}/LICENSE
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%changelog
* Mon Sep 08 2008 Jeroen van Meeuwen <kanarip@fedoraproject.org> - 1.4.0-2
- Add ruby(abi) = 1.8 requires
* Sun Jul 13 2008 root <root@oss1-repo.usersys.redhat.com> - 1.4.0-1
- Initial package

View file

@ -0,0 +1 @@
0e80123ec36cfb59a3c9d264324d62ef highline-1.4.0.tgz