File: optparse.spec

package info (click to toggle)
liboptparse-ruby 0.8.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 428 kB
  • ctags: 644
  • sloc: ruby: 1,819; makefile: 47
file content (85 lines) | stat: -rw-r--r-- 2,319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%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.