/[packages]/cauldron/ruby/current/SPECS/ruby.spec
ViewVC logotype

Contents of /cauldron/ruby/current/SPECS/ruby.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 289998 - (show annotations) (download)
Sat Sep 8 10:10:02 2012 UTC (11 years, 7 months ago) by fwang
File size: 3695 byte(s)
SILENT: bump req
1 %define subver 1.9
2 %define rubyver 1.9.3
3 %define patchversion p194
4 %define rel 1
5
6 Summary: Object Oriented Script Language
7 Name: ruby
8 Version: %{rubyver}.%{patchversion}
9 Release: %mkrel %rel
10 License: Ruby or GPLv2
11 Group: Development/Ruby
12 BuildRequires: autoconf
13 BuildRequires: byacc
14 BuildRequires: ncurses-devel
15 BuildRequires: readline-devel
16 BuildRequires: tcl-devel tk-devel
17 BuildRequires: db-devel
18 BuildRequires: gdbm-devel >= 1.8.3
19 BuildRequires: openssl-devel
20 BuildRequires: zlib-devel
21 BuildRequires: libffi-devel
22 BuildRequires: yaml-devel
23 BuildRequires: rpm-mageia-setup >= 1.158
24 Obsoletes: ruby-rexml
25 Provides: ruby-rexml
26 # explicit file provides (since such requires are automatically added by find-requires)
27 Provides: /usr/bin/ruby
28 Provides: ruby(abi) = %subver
29
30 Source0: http://ftp.ruby-lang.org/pub/ruby/%{subver}/ruby-%{rubyver}-%{patchversion}.tar.bz2
31 Source3: ruby.macros
32 Patch0: ruby-lib64.patch
33 Patch1: ruby-do-not-use-system-ruby-to-generate-ri-doc.patch
34 Patch2: ruby-add-old-os-to-search-path.patch
35 Patch3: ruby-do_not_propagate_no-undefined.patch
36 URL: http://www.ruby-lang.org/
37
38 %package doc
39 Summary: Documentation for the powerful language Ruby
40 Group: Development/Ruby
41 BuildArch: noarch
42
43 %package devel
44 Summary: Development file for the powerful language Ruby
45 Group: Development/Ruby
46 Requires: %{name} = %{version}
47
48 %package tk
49 Summary: Tk extension for the powerful language Ruby
50 Group: Development/Ruby
51 Requires: %{name} = %{version}
52
53 %description
54 Ruby is the interpreted scripting language for quick and
55 easy object-oriented programming. It has many features to
56 process text files and to do system management tasks (as in
57 Perl). It is simple, straight-forward, and extensible.
58
59 %description doc
60 Ruby is the interpreted scripting language for quick and
61 easy object-oriented programming. It has many features to
62 process text files and to do system management tasks (as in
63 Perl). It is simple, straight-forward, and extensible.
64
65 This package contains the Ruby's documentation
66
67 %description devel
68 Ruby is the interpreted scripting language for quick and
69 easy object-oriented programming. It has many features to
70 process text files and to do system management tasks (as in
71 Perl). It is simple, straight-forward, and extensible.
72
73 This package contains the Ruby's devel files.
74
75 %description tk
76 Ruby is the interpreted scripting language for quick and
77 easy object-oriented programming. It has many features to
78 process text files and to do system management tasks (as in
79 Perl). It is simple, straight-forward, and extensible.
80
81 This package contains the Tk extension for Ruby.
82
83 %prep
84 %setup -q -n ruby-%{rubyver}-%{patchversion}
85
86 %build
87 CFLAGS=`echo %optflags | sed 's/-fomit-frame-pointer//'`
88 %configure2_5x --enable-shared --disable-rpath --enable-pthread
89 %make
90
91 %install
92 %makeinstall_std install-doc
93
94 install -d %buildroot%{_datadir}/emacs/site-lisp
95 cp -a misc/ruby-mode.el %buildroot%{_datadir}/emacs/site-lisp
96
97 install -d %buildroot%{_sysconfdir}/emacs/site-start.d
98 cat <<EOF >%buildroot%{_sysconfdir}/emacs/site-start.d/%{name}.el
99 (autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t)
100 (add-to-list 'auto-mode-alist '("\\\\.rb$" . ruby-mode))
101 (add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))
102 EOF
103
104 # Install the rpm macros
105 mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d
106 cp %{SOURCE3} %buildroot%{_sysconfdir}/rpm/macros.d
107
108 %check
109 make test
110
111 %files
112 %{_bindir}/*
113 %{_libdir}/libruby.so.*
114 %{_libdir}/ruby
115 %{_mandir}/*/*
116 %{_datadir}/emacs/site-lisp/*
117 %config(noreplace) %{_sysconfdir}/emacs/site-start.d/*
118 %{_sysconfdir}/rpm/macros.d/%{name}.macros
119
120 %files doc
121 %{_datadir}/ri
122
123 %files devel
124 %{_libdir}/libruby-static.a
125 %{_libdir}/libruby.so
126
127 %files tk

  ViewVC Help
Powered by ViewVC 1.1.30