Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec794260d3 | ||
|
|
d996b5fd5a | ||
|
|
8dcd1501ff | ||
|
|
8272938e70 |
5 changed files with 74 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
highline-1.4.0.tgz
|
||||
21
Makefile
21
Makefile
|
|
@ -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
72
rubygem-highline.spec
Normal 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
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
0e80123ec36cfb59a3c9d264324d62ef highline-1.4.0.tgz
|
||||
Loading…
Add table
Add a link
Reference in a new issue