forked from nmilford/rpm-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathruby.spec
95 lines (84 loc) · 2.88 KB
/
ruby.spec
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
86
87
88
89
90
91
92
93
94
95
#
# ruby.spec
#
%define rubyver 2.2.4
Name: ruby
Version: %{rubyver}
Release: 1%{?dist}
License: Ruby License/GPL - see COPYING
URL: http://www.ruby-lang.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline libyaml libyaml-devel readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl-devel gcc unzip openssl-devel db4-devel byacc make libffi-devel
Requires: libyaml openssl
Source0: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-%{rubyver}.tar.gz
Summary: An interpreter of object-oriented scripting language
Group: Development/Languages
Provides: ruby(abi) = 2.2
Provides: ruby-irb
Provides: ruby-rdoc
Provides: ruby-libs
Provides: ruby-devel
Provides: rubygems
Obsoletes: ruby
Obsoletes: ruby-libs
Obsoletes: ruby-irb
Obsoletes: ruby-rdoc
Obsoletes: ruby-devel
Obsoletes: rubygems
%description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming. It has many features to process text
files and to do system management tasks (as in Perl). It is simple,
straight-forward, and extensible.
%prep
%setup -n ruby-%{rubyver}
%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
%configure \
--enable-shared \
--disable-rpath \
--includedir=%{_includedir}/ruby \
--libdir=%{_libdir}
make %{?_smp_mflags}
%install
# installing binaries ...
make install DESTDIR=$RPM_BUILD_ROOT
#we don't want to keep the src directory
rm -rf $RPM_BUILD_ROOT/usr/src
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_bindir}
%{_includedir}
%{_datadir}
%{_libdir}
%changelog
* Thu Feb 4 2016 Innotronic Ingenieurbüro GmbH <[email protected]> - 2.2.4
- Update to 2.2.4
* Tue Aug 19 2015 Innotronic Ingenieurbüro GmbH <[email protected]> - 2.2.3
- Update to 2.2.3
* Tue Aug 18 2015 Tanner Jones <[email protected]> - 2.2.2
- Update to 2.2.2
* Sat Jul 25 2015 Innotronic Ingenieurbüro GmbH <[email protected]> - 2.1.6
- Update to 2.1.6
* Sat Nov 29 2014 Innotronic Ingenieurbüro GmbH <[email protected]> - 2.1.5
- Update to 2.1.5
* Fri Apr 25 2014 Spike Grobstein <[email protected]> - 2.1.1
- Bumps 2.1.1
* Wed Dec 25 2013 Nathan Milford <[email protected]> - 2.1.0
- Bumped 2.1.0
* Wed Dec 18 2013 Nathan Milford <[email protected]> - 2.0.0-p353
- Bumped 2.0.0-p353.
* Fri Jun 28 2013 Nathan Milford <[email protected]> - 2.0.0-p247
- Bumped 2.0.0-p247.
* Sun Feb 24 2013 Nathan Milford <[email protected]> - 2.0.0-p0
- Initial 2.0.0-p0 for realz.
* Mon Jan 7 2013 Nathan Milford <[email protected]> - 2.0.0-rc1
- Initial 2.0.0 release candidate.
* Sun Nov 25 2012 Gareth Jones <[email protected]> - 1.9.3-p327
- Update for Ruby 1.9.3-p327 release.
* Wed Apr 25 2012 mathew <[email protected]> - 1.9.3-p194-1
- Update for Ruby 1.9.3-p194 release.
* Sat Feb 24 2012 Ian Meyer <[email protected]> - 1.9.3-p125-1
- Spec to replace system ruby with 1.9.3-p125