home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ruby164.zip
/
rbemx164.zip
/
ruby
/
share
/
doc
/
optparse-0.8.2
/
optparse.spec
< prev
next >
Wrap
Text File
|
2001-06-18
|
2KB
|
86 lines
%define oname optparse
%define oversion 0.7.10
%define ruby /usr/bin/ruby
%define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]')
%define rlibdir %(%{ruby} -r mkmf -e 'print $libdir')
%define rarchdir %(%{ruby} -r mkmf -e 'print $archdir')
Summary: A command line option parser class for Ruby
Name: ruby-%{oname}
Version: %{oversion}
Release: 0vl1
Copyright: distributable
Group: Development/Languages
Source0: http://member.nifty.ne.jp/nokada/archive/%{oname}-%{version}.tar.gz
URL: http://member.nifty.ne.jp/nokada/ruby.html
Prefix: /usr
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: ruby ruby-devel
Requires: libruby
Summary(ja): Ñ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤ѬÑ╫Ñ╖ÑτÑ≤ñ≥▓≥└╧ñ╣ñδRuby═╤ñ╬Ñ»ÑΘÑ╣ÑΘÑñÑ╓ÑΘÑΩ
%description
Parser for command line options.
A command line option parser class for Ruby, which supports short and
crunchable switches and long(GNU-style) switches. Also arguments to
switches are converted automatically.
And this also provides option summary.
%description -l ja
Ñ│Ñ▐Ñ≤Ñ╔ÑΘÑñÑ≤ѬÑ╫Ñ╖ÑτÑ≤ñ╬Ñ╤í╝Ñ╢ñ╟ñ╣íúGNUÑ╣Ñ┐ÑñÑδñ╬─╣ññÑ╣ÑñÑ├Ñ┴ñ╚
├╗ññÑ╣ÑñÑ├Ñ┴ñ╬╬╛╩²ñ≥Ñ╡Ñ▌í╝Ñ╚ñ╖ñ╞ñññ▐ñ╣íúñ▐ñ┐íóÑ╣ÑñÑ├Ñ┴ñ╦═┐ñ¿ñΘñ∞ñ┐
░·┐⌠ñ≥╝½╞░┼¬ñ╦╩╤┤╣ñ╟ñ¡ñ▐ñ╣íú
%prep
%setup -q -c
cd %{oname}-%{version}
cd ..
%build
cd %{oname}-%{version}
cd ..
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
# installing binaries ...
cd %{oname}-%{version}
ruby install.rb --destdir=${RPM_BUILD_ROOT}%{rlibdir} more
cd ..
# listing all files in optparse-all.files
(find \
$RPM_BUILD_ROOT%{rlibdir} \
-type f -o -type l) |
sort | sed -e "s,^$RPM_BUILD_ROOT,," \
-e "s,\(/man/man./.*\)$,\1*," > optparse-all.files
%clean
rm -rf ${RPM_BUILD_ROOT}
rm -f *.files
%files -f optparse-all.files
%defattr(-, root, root)
%doc %{oname}-%{version}/README.en
%doc %{oname}-%{version}/README.ja
%doc %{oname}-%{version}/FIRSTSTEP.ja.rd
%doc %{oname}-%{version}/optparse.en.rd
%doc %{oname}-%{version}/optparse.ja.rd
%doc %{oname}-%{version}/cmd.rb
%doc %{oname}-%{version}/cmd-ls.rb
%doc %{oname}-%{version}/getopts.test
%doc %{oname}-%{version}/getopts.test.en
%doc %{oname}-%{version}/opttest.rb
%changelog
* Tue Apr 10 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
- 0.7.10
* Tue Mar 27 2001 akira yamada <akira@vinelinux.org>
- Initial packaging.