From 36e353f31f66db846abe20c9e7299fbd8efe2a28 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Wed, 29 Oct 2014 16:23:35 +0900 Subject: [PATCH 01/26] Remove dependencies of tcl-devel and byacc --- ruby21x.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index b557327..4188956 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,7 +6,7 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl-devel gcc unzip openssl-devel db4-devel byacc make libyaml libyaml-devel libffi libffi-devel +BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml libyaml-devel libffi libffi-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages @@ -63,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/* %changelog +* Wed Oct 29 2014 Takashi Masuda - 2.1.2 +- Remove dependencies on tcl-devel and byacc + * Fri May 9 2014 Masahito Yoshida - 2.1.2 - Update ruby version to 2.1.2 From 3b1d35ad2ef069adb62461a8d5d8785b2930fd29 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 16:36:22 +0900 Subject: [PATCH 02/26] Add dependency `zlib` `zlib-devel` --- ruby21x.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index 4188956..4eaf537 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,7 +6,7 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml libyaml-devel libffi libffi-devel +BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages From d5365d69efcc6f5b6836c03022473a54c38acb12 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 16:38:18 +0900 Subject: [PATCH 03/26] Add dependencies `glibc` `openssl` `db4` --- ruby21x.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index 4eaf537..d30d50c 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,7 +6,7 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel +BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc glibc-devel gcc unzip openssl openssl-devel db4 db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages From 1adac29349067900acf43dff64529f582de4522b Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 16:41:09 +0900 Subject: [PATCH 04/26] Add Requires --- ruby21x.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ruby21x.spec b/ruby21x.spec index d30d50c..18f34c1 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,6 +6,7 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: libyaml BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc glibc-devel gcc unzip openssl openssl-devel db4 db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language From da7e003670150fee3a97ca8d592938312da445ab Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 15:55:43 +0900 Subject: [PATCH 05/26] $ vagrant init chef/centos-6.5 --- Vagrantfile | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..ec81f67 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,122 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + # All Vagrant configuration is done here. The most common configuration + # options are documented and commented below. For a complete reference, + # please see the online documentation at vagrantup.com. + + # Every Vagrant virtual environment requires a box to build off of. + config.vm.box = "chef/centos-6.5" + + # Disable automatic box update checking. If you disable this, then + # boxes will only be checked for updates when the user runs + # `vagrant box outdated`. This is not recommended. + # config.vm.box_check_update = false + + # Create a forwarded port mapping which allows access to a specific port + # within the machine from a port on the host machine. In the example below, + # accessing "localhost:8080" will access port 80 on the guest machine. + # config.vm.network "forwarded_port", guest: 80, host: 8080 + + # Create a private network, which allows host-only access to the machine + # using a specific IP. + # config.vm.network "private_network", ip: "192.168.33.10" + + # Create a public network, which generally matched to bridged network. + # Bridged networks make the machine appear as another physical device on + # your network. + # config.vm.network "public_network" + + # If true, then any SSH connections made will enable agent forwarding. + # Default value: false + # config.ssh.forward_agent = true + + # Share an additional folder to the guest VM. The first argument is + # the path on the host to the actual folder. The second argument is + # the path on the guest to mount the folder. And the optional third + # argument is a set of non-required options. + # config.vm.synced_folder "../data", "/vagrant_data" + + # Provider-specific configuration so you can fine-tune various + # backing providers for Vagrant. These expose provider-specific options. + # Example for VirtualBox: + # + # config.vm.provider "virtualbox" do |vb| + # # Don't boot with headless mode + # vb.gui = true + # + # # Use VBoxManage to customize the VM. For example to change memory: + # vb.customize ["modifyvm", :id, "--memory", "1024"] + # end + # + # View the documentation for the provider you're using for more + # information on available options. + + # Enable provisioning with CFEngine. CFEngine Community packages are + # automatically installed. For example, configure the host as a + # policy server and optionally a policy file to run: + # + # config.vm.provision "cfengine" do |cf| + # cf.am_policy_hub = true + # # cf.run_file = "motd.cf" + # end + # + # You can also configure and bootstrap a client to an existing + # policy server: + # + # config.vm.provision "cfengine" do |cf| + # cf.policy_server_address = "10.0.2.15" + # end + + # Enable provisioning with Puppet stand alone. Puppet manifests + # are contained in a directory path relative to this Vagrantfile. + # You will need to create the manifests directory and a manifest in + # the file default.pp in the manifests_path directory. + # + # config.vm.provision "puppet" do |puppet| + # puppet.manifests_path = "manifests" + # puppet.manifest_file = "default.pp" + # end + + # Enable provisioning with chef solo, specifying a cookbooks path, roles + # path, and data_bags path (all relative to this Vagrantfile), and adding + # some recipes and/or roles. + # + # config.vm.provision "chef_solo" do |chef| + # chef.cookbooks_path = "../my-recipes/cookbooks" + # chef.roles_path = "../my-recipes/roles" + # chef.data_bags_path = "../my-recipes/data_bags" + # chef.add_recipe "mysql" + # chef.add_role "web" + # + # # You may also specify custom JSON attributes: + # chef.json = { mysql_password: "foo" } + # end + + # Enable provisioning with chef server, specifying the chef server URL, + # and the path to the validation key (relative to this Vagrantfile). + # + # The Opscode Platform uses HTTPS. Substitute your organization for + # ORGNAME in the URL and validation key. + # + # If you have your own Chef Server, use the appropriate URL, which may be + # HTTP instead of HTTPS depending on your configuration. Also change the + # validation key to validation.pem. + # + # config.vm.provision "chef_client" do |chef| + # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" + # chef.validation_key_path = "ORGNAME-validator.pem" + # end + # + # If you're using the Opscode platform, your validator client is + # ORGNAME-validator, replacing ORGNAME with your organization name. + # + # If you have your own Chef Server, the default validation client name is + # chef-validator, unless you changed the configuration. + # + # chef.validation_client_name = "ORGNAME-validator" +end From fd95f3f28869bec64430efa0f01290288a4a1243 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 15:57:15 +0900 Subject: [PATCH 06/26] Add private ip address 192.168.33.24 --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index ec81f67..444dc7b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -24,7 +24,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Create a private network, which allows host-only access to the machine # using a specific IP. - # config.vm.network "private_network", ip: "192.168.33.10" + config.vm.network "private_network", ip: "192.168.33.24" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on From 5cb896c2f5a71997d1b43ce4419dac8996502951 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 16:21:48 +0900 Subject: [PATCH 07/26] Add .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dace708 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.vagrant From 73848b115b58e1c8562ec87994942ef6702c8e5d Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 16:30:01 +0900 Subject: [PATCH 08/26] Add section `A example to make {SRPM,RPM}` --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index fbe691b..70059e7 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,35 @@ Forked from imeyer's ruby-1.9.2-rpm project at https://github.com/imeyer/ruby-1.9.2-rpm and updated for 2.0.0. This spec is an attempt to push for a stable replacement of Ruby 1.8.x with 1.9.2+ on RHEL based systems. The original author based it off of the work of [FrameOS](http://www.frameos.org) specs for Ruby 1.9.2 and Ruby Enterprise Edition. + +# A example to make {SRPM,RPM} + +You need to install [VirtualBox](https://www.virtualbox.org/) and [Vagrant](http://www.vagrantup.com/). + +``` +$ vagrant up +$ vagrant ssh +$ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} +$ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz) +$ cp /vagrant/ruby21x.spec ~/rpmbuild/SPECS +$ yes n | sudo yum update +$ sudo yum install -y rpm-build +$ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec +エラー: ビルド依存性の失敗: + readline-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + ncurses-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + gdbm-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + glibc-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + gcc は ruby-2.1.2-2.el6.x86_64 に必要とされています + openssl-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + db4-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + libyaml は ruby-2.1.2-2.el6.x86_64 に必要とされています + libyaml-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + libffi-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + zlib-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています +$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel db4-devel libyaml libyaml-devel libffi-devel zlib-devel +$ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec +(snip) +書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.2-2.el6.src.rpm +書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.2-2.el6.x86_64.rpm +``` From 68493549707d9891b2a7c732e23b8763f7394bf4 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Thu, 30 Oct 2014 17:33:13 +0900 Subject: [PATCH 09/26] Add some packages to Requires --- ruby21x.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index 18f34c1..91b36ea 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,7 +6,7 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: libyaml +Requires: readline ncurses gdbm glibc openssl db4 libyaml libffi zlib BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc glibc-devel gcc unzip openssl openssl-devel db4 db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language From d94cfacf3092362ca3d4892f4f0c568d620e896d Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 13:12:21 +0900 Subject: [PATCH 10/26] Fix `yum update` its always update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70059e7..c413129 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ vagrant ssh $ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} $ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz) $ cp /vagrant/ruby21x.spec ~/rpmbuild/SPECS -$ yes n | sudo yum update +$ sudo yum update -y $ sudo yum install -y rpm-build $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec エラー: ビルド依存性の失敗: From 52de93ec43f69148744ccff2603e0d63a5714150 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 13:12:37 +0900 Subject: [PATCH 11/26] Add setting of vagrant-cachier --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 444dc7b..647ec87 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,6 +26,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # using a specific IP. config.vm.network "private_network", ip: "192.168.33.24" + config.cache.scope = :box if Vagrant.has_plugin? 'vagrant-cachier' + # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on # your network. From e426a0cdda538e18ca4b070d498a95e8dd8e098e Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 13:19:45 +0900 Subject: [PATCH 12/26] Remove comments --- Vagrantfile | 113 ---------------------------------------------------- 1 file changed, 113 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 647ec87..5d728bf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,120 +5,7 @@ VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - # All Vagrant configuration is done here. The most common configuration - # options are documented and commented below. For a complete reference, - # please see the online documentation at vagrantup.com. - - # Every Vagrant virtual environment requires a box to build off of. config.vm.box = "chef/centos-6.5" - - # Disable automatic box update checking. If you disable this, then - # boxes will only be checked for updates when the user runs - # `vagrant box outdated`. This is not recommended. - # config.vm.box_check_update = false - - # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine. In the example below, - # accessing "localhost:8080" will access port 80 on the guest machine. - # config.vm.network "forwarded_port", guest: 80, host: 8080 - - # Create a private network, which allows host-only access to the machine - # using a specific IP. config.vm.network "private_network", ip: "192.168.33.24" - config.cache.scope = :box if Vagrant.has_plugin? 'vagrant-cachier' - - # Create a public network, which generally matched to bridged network. - # Bridged networks make the machine appear as another physical device on - # your network. - # config.vm.network "public_network" - - # If true, then any SSH connections made will enable agent forwarding. - # Default value: false - # config.ssh.forward_agent = true - - # Share an additional folder to the guest VM. The first argument is - # the path on the host to the actual folder. The second argument is - # the path on the guest to mount the folder. And the optional third - # argument is a set of non-required options. - # config.vm.synced_folder "../data", "/vagrant_data" - - # Provider-specific configuration so you can fine-tune various - # backing providers for Vagrant. These expose provider-specific options. - # Example for VirtualBox: - # - # config.vm.provider "virtualbox" do |vb| - # # Don't boot with headless mode - # vb.gui = true - # - # # Use VBoxManage to customize the VM. For example to change memory: - # vb.customize ["modifyvm", :id, "--memory", "1024"] - # end - # - # View the documentation for the provider you're using for more - # information on available options. - - # Enable provisioning with CFEngine. CFEngine Community packages are - # automatically installed. For example, configure the host as a - # policy server and optionally a policy file to run: - # - # config.vm.provision "cfengine" do |cf| - # cf.am_policy_hub = true - # # cf.run_file = "motd.cf" - # end - # - # You can also configure and bootstrap a client to an existing - # policy server: - # - # config.vm.provision "cfengine" do |cf| - # cf.policy_server_address = "10.0.2.15" - # end - - # Enable provisioning with Puppet stand alone. Puppet manifests - # are contained in a directory path relative to this Vagrantfile. - # You will need to create the manifests directory and a manifest in - # the file default.pp in the manifests_path directory. - # - # config.vm.provision "puppet" do |puppet| - # puppet.manifests_path = "manifests" - # puppet.manifest_file = "default.pp" - # end - - # Enable provisioning with chef solo, specifying a cookbooks path, roles - # path, and data_bags path (all relative to this Vagrantfile), and adding - # some recipes and/or roles. - # - # config.vm.provision "chef_solo" do |chef| - # chef.cookbooks_path = "../my-recipes/cookbooks" - # chef.roles_path = "../my-recipes/roles" - # chef.data_bags_path = "../my-recipes/data_bags" - # chef.add_recipe "mysql" - # chef.add_role "web" - # - # # You may also specify custom JSON attributes: - # chef.json = { mysql_password: "foo" } - # end - - # Enable provisioning with chef server, specifying the chef server URL, - # and the path to the validation key (relative to this Vagrantfile). - # - # The Opscode Platform uses HTTPS. Substitute your organization for - # ORGNAME in the URL and validation key. - # - # If you have your own Chef Server, use the appropriate URL, which may be - # HTTP instead of HTTPS depending on your configuration. Also change the - # validation key to validation.pem. - # - # config.vm.provision "chef_client" do |chef| - # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME" - # chef.validation_key_path = "ORGNAME-validator.pem" - # end - # - # If you're using the Opscode platform, your validator client is - # ORGNAME-validator, replacing ORGNAME with your organization name. - # - # If you have your own Chef Server, the default validation client name is - # chef-validator, unless you changed the configuration. - # - # chef.validation_client_name = "ORGNAME-validator" end From d46d823e074e03b54f63d1179238c2e3e1fd1a82 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 17:14:45 +0900 Subject: [PATCH 13/26] Remove lib dependencies from BuildRequires --- ruby21x.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index 91b36ea..f2cf185 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -7,7 +7,7 @@ License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: readline ncurses gdbm glibc openssl db4 libyaml libffi zlib -BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc glibc-devel gcc unzip openssl openssl-devel db4 db4-devel make libyaml libyaml-devel libffi libffi-devel zlib zlib-devel +BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml-devel libffi-devel zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages From 4b0cc3fef13d4a5a5ce5a0b10545a4ee292bea54 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 17:33:16 +0900 Subject: [PATCH 14/26] Fix README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c413129..2aa175b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,6 @@ $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec gcc は ruby-2.1.2-2.el6.x86_64 に必要とされています openssl-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています db4-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - libyaml は ruby-2.1.2-2.el6.x86_64 に必要とされています libyaml-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています libffi-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています zlib-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています From 6da427259a006949a1ecf20d87daa559281d1024 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 31 Oct 2014 17:51:45 +0900 Subject: [PATCH 15/26] Update ruby version to 2.1.4 --- README.md | 26 +++++++++++++------------- ruby21x.spec | 5 ++++- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2aa175b..f283d2b 100644 --- a/README.md +++ b/README.md @@ -12,25 +12,25 @@ You need to install [VirtualBox](https://www.virtualbox.org/) and [Vagrant](http $ vagrant up $ vagrant ssh $ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} -$ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz) +$ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz) $ cp /vagrant/ruby21x.spec ~/rpmbuild/SPECS $ sudo yum update -y $ sudo yum install -y rpm-build $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec エラー: ビルド依存性の失敗: - readline-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - ncurses-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - gdbm-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - glibc-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - gcc は ruby-2.1.2-2.el6.x86_64 に必要とされています - openssl-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - db4-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - libyaml-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - libffi-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています - zlib-devel は ruby-2.1.2-2.el6.x86_64 に必要とされています + readline-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + ncurses-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + gdbm-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています + openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + db4-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています $ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel db4-devel libyaml libyaml-devel libffi-devel zlib-devel $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec (snip) -書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.2-2.el6.src.rpm -書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.2-2.el6.x86_64.rpm +書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.4-2.el6.src.rpm +書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm ``` diff --git a/ruby21x.spec b/ruby21x.spec index f2cf185..bd7442e 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -1,4 +1,4 @@ -%define rubyver 2.1.2 +%define rubyver 2.1.4 Name: ruby Version: %{rubyver} @@ -64,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/* %changelog +* Fri Oct 31 2014 Takashi Masuda - 2.1.4 +- Update ruby version to 2.1.4 + * Wed Oct 29 2014 Takashi Masuda - 2.1.2 - Remove dependencies on tcl-devel and byacc From b29df367cfb3516e27a24be036c8e2a5ffc7f810 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Tue, 4 Nov 2014 12:11:00 +0900 Subject: [PATCH 16/26] Add section 'How to make RPM from SRPM' --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f283d2b..0664e20 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Forked from imeyer's ruby-1.9.2-rpm project at https://github.com/imeyer/ruby-1. This spec is an attempt to push for a stable replacement of Ruby 1.8.x with 1.9.2+ on RHEL based systems. The original author based it off of the work of [FrameOS](http://www.frameos.org) specs for Ruby 1.9.2 and Ruby Enterprise Edition. -# A example to make {SRPM,RPM} +# A example to build SRPM and RPM You need to install [VirtualBox](https://www.virtualbox.org/) and [Vagrant](http://www.vagrantup.com/). @@ -34,3 +34,30 @@ $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec 書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.4-2.el6.src.rpm 書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm ``` + +## How to build RPM from SRPM + +``` +$ vagrant up +$ vagrant ssh +$ sudo yum update -y +$ sudo yum install -y rpm-build +$ curl -LO https://github.com/feedforce/ruby-2.1.x-rpm/releases/download/2.1.4/ruby-2.1.4-2.el6.src.rpm +$ rpmbuild --rebuild ruby-2.1.4-2.el6.src.rpm +ruby-2.1.4-2.el6.src.rpm をインストール中です。 +エラー: ビルド依存性の失敗: + readline-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + ncurses-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + gdbm-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています + openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + db4-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています +$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel db4-devel libyaml-devel libffi-devel zlib-devel +$ rpmbuild --rebuild ruby-2.1.4-2.el6.src.rpm +(snip) +書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm +``` From cc1f7c1d8a6fdf0edc012e9415c9f04e44f0532e Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Tue, 4 Nov 2014 18:04:08 +0900 Subject: [PATCH 17/26] Fix English --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0664e20..95b9845 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Forked from imeyer's ruby-1.9.2-rpm project at https://github.com/imeyer/ruby-1. This spec is an attempt to push for a stable replacement of Ruby 1.8.x with 1.9.2+ on RHEL based systems. The original author based it off of the work of [FrameOS](http://www.frameos.org) specs for Ruby 1.9.2 and Ruby Enterprise Edition. -# A example to build SRPM and RPM +# Example to build SRPM and RPM You need to install [VirtualBox](https://www.virtualbox.org/) and [Vagrant](http://www.vagrantup.com/). From cbea7e213104729682373f32aedb730798538987 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Wed, 5 Nov 2014 10:39:33 +0900 Subject: [PATCH 18/26] Remove dependency db4 and db4-devel --- ruby21x.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ruby21x.spec b/ruby21x.spec index bd7442e..b39d25f 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -6,8 +6,8 @@ Release: 2%{?dist} License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: readline ncurses gdbm glibc openssl db4 libyaml libffi zlib -BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc unzip openssl-devel db4-devel make libyaml-devel libffi-devel zlib-devel +Requires: readline ncurses gdbm glibc openssl libyaml libffi zlib +BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc unzip openssl-devel make libyaml-devel libffi-devel zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages @@ -64,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/* %changelog +* Wed Nov 5 2014 Takashi Masuda - 2.1.4-2 +- Remove dependency db4 and db4-devel + * Fri Oct 31 2014 Takashi Masuda - 2.1.4 - Update ruby version to 2.1.4 From 9d783eb2b007c8e8bf2bc1a50855d4b31f0e425e Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Wed, 5 Nov 2014 11:00:25 +0900 Subject: [PATCH 19/26] Remove unnecessary packages --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 95b9845..448018d 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,10 @@ $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - db4-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています -$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel db4-devel libyaml libyaml-devel libffi-devel zlib-devel +$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel libyaml-devel libffi-devel zlib-devel $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec (snip) 書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.4-2.el6.src.rpm @@ -52,11 +51,10 @@ ruby-2.1.4-2.el6.src.rpm をインストール中です。 glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - db4-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています -$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel db4-devel libyaml-devel libffi-devel zlib-devel +$ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel libyaml-devel libffi-devel zlib-devel $ rpmbuild --rebuild ruby-2.1.4-2.el6.src.rpm (snip) 書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm From 458524fed0b29970c76beb613fb8accfb8b1f2e9 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 14 Nov 2014 11:26:08 +0900 Subject: [PATCH 20/26] Remove dependency `unzip` --- ruby21x.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index b39d25f..a70e70f 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -7,7 +7,7 @@ License: Ruby License/GPL - see COPYING URL: http://www.ruby-lang.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: readline ncurses gdbm glibc openssl libyaml libffi zlib -BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc unzip openssl-devel make libyaml-devel libffi-devel zlib-devel +BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel make libyaml-devel libffi-devel zlib-devel Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz Summary: An interpreter of object-oriented scripting language Group: Development/Languages From c1011008bc60ce67268a462acbf87463f52c06ec Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 14 Nov 2014 11:32:52 +0900 Subject: [PATCH 21/26] Remove private ip address --- Vagrantfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 5d728bf..5ff6cd0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,6 +6,5 @@ VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "chef/centos-6.5" - config.vm.network "private_network", ip: "192.168.33.24" config.cache.scope = :box if Vagrant.has_plugin? 'vagrant-cachier' end From e48582132988cef0376a163ee036975813209785 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 14 Nov 2014 11:42:54 +0900 Subject: [PATCH 22/26] Use CentOS 6.6 --- Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 5ff6cd0..531721e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,9 +2,9 @@ # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" +VAGRANTFILE_API_VERSION = '2' Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "chef/centos-6.5" + config.vm.box = 'chef/centos-6.6' config.cache.scope = :box if Vagrant.has_plugin? 'vagrant-cachier' end From 4064fe0655cf9dc1427760ee48ef19be8a3a0366 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 14 Nov 2014 11:59:46 +0900 Subject: [PATCH 23/26] Update ruby version to 2.1.5 --- ruby21x.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ruby21x.spec b/ruby21x.spec index a70e70f..482c194 100644 --- a/ruby21x.spec +++ b/ruby21x.spec @@ -1,4 +1,4 @@ -%define rubyver 2.1.4 +%define rubyver 2.1.5 Name: ruby Version: %{rubyver} @@ -64,6 +64,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/* %changelog +* Fri Nov 14 2014 Takashi Masuda - 2.1.5 +- Update ruby version to 2.1.5 +- Remove dependency unzip + * Wed Nov 5 2014 Takashi Masuda - 2.1.4-2 - Remove dependency db4 and db4-devel From b8fd5502c7f34581fbcce614d8c6bf79f9d00c57 Mon Sep 17 00:00:00 2001 From: Takashi Masuda Date: Fri, 14 Nov 2014 12:00:00 +0900 Subject: [PATCH 24/26] Update README.md --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 448018d..a545d59 100644 --- a/README.md +++ b/README.md @@ -12,26 +12,26 @@ You need to install [VirtualBox](https://www.virtualbox.org/) and [Vagrant](http $ vagrant up $ vagrant ssh $ mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} -$ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz) +$ (cd ~/rpmbuild/SOURCES && curl -LO http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz) $ cp /vagrant/ruby21x.spec ~/rpmbuild/SPECS $ sudo yum update -y $ sudo yum install -y rpm-build $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec エラー: ビルド依存性の失敗: - readline-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - ncurses-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - gdbm-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています - openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + readline-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + ncurses-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + gdbm-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + glibc-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + gcc は ruby-2.1.5-2.el6.x86_64 に必要とされています + openssl-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + libyaml-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + libffi-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + zlib-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています $ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel libyaml-devel libffi-devel zlib-devel $ rpmbuild -ba ~/rpmbuild/SPECS/ruby21x.spec (snip) -書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.4-2.el6.src.rpm -書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm +書き込み完了: /home/vagrant/rpmbuild/SRPMS/ruby-2.1.5-2.el6.src.rpm +書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.5-2.el6.x86_64.rpm ``` ## How to build RPM from SRPM @@ -41,21 +41,21 @@ $ vagrant up $ vagrant ssh $ sudo yum update -y $ sudo yum install -y rpm-build -$ curl -LO https://github.com/feedforce/ruby-2.1.x-rpm/releases/download/2.1.4/ruby-2.1.4-2.el6.src.rpm -$ rpmbuild --rebuild ruby-2.1.4-2.el6.src.rpm -ruby-2.1.4-2.el6.src.rpm をインストール中です。 +$ curl -LO https://github.com/feedforce/ruby-2.1.x-rpm/releases/download/2.1.5/ruby-2.1.5-2.el6.src.rpm +$ rpmbuild --rebuild ruby-2.1.5-2.el6.src.rpm +ruby-2.1.5-2.el6.src.rpm をインストール中です。 エラー: ビルド依存性の失敗: - readline-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - ncurses-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - gdbm-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - glibc-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - gcc は ruby-2.1.4-2.el6.x86_64 に必要とされています - openssl-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - libyaml-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - libffi-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています - zlib-devel は ruby-2.1.4-2.el6.x86_64 に必要とされています + readline-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + ncurses-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + gdbm-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + glibc-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + gcc は ruby-2.1.5-2.el6.x86_64 に必要とされています + openssl-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + libyaml-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + libffi-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています + zlib-devel は ruby-2.1.5-2.el6.x86_64 に必要とされています $ sudo yum install -y readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel libyaml-devel libffi-devel zlib-devel -$ rpmbuild --rebuild ruby-2.1.4-2.el6.src.rpm +$ rpmbuild --rebuild ruby-2.1.5-2.el6.src.rpm (snip) -書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.4-2.el6.x86_64.rpm +書き込み完了: /home/vagrant/rpmbuild/RPMS/x86_64/ruby-2.1.5-2.el6.x86_64.rpm ``` From f02a0248b8bb6d74f4c570bdedfd84e432903790 Mon Sep 17 00:00:00 2001 From: Kenta ONISHI Date: Fri, 26 Dec 2014 11:47:13 +0900 Subject: [PATCH 25/26] * commit to create PR From ad349e4b281d00d7dc00fbf41741f2e16b234471 Mon Sep 17 00:00:00 2001 From: Kenta ONISHI Date: Mon, 29 Dec 2014 10:44:40 +0900 Subject: [PATCH 26/26] * Add ruby22x.spec. --- ruby22x.spec | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 ruby22x.spec diff --git a/ruby22x.spec b/ruby22x.spec new file mode 100644 index 0000000..2ecc9e4 --- /dev/null +++ b/ruby22x.spec @@ -0,0 +1,137 @@ +%define rubyver 2.2.0 + +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) +Requires: readline ncurses gdbm glibc openssl libyaml libffi zlib +BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel make libyaml-devel libffi-devel zlib-devel +Source0: ftp://ftp.ruby-lang.org/pub/ruby/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 \ + --without-X11 \ + --without-tk \ + --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 +* Fri Dec 26 2014 Kenta ONISHI - 2.2.0 +- Version bumped to 2.2.0 + +* Fri Nov 14 2014 Takashi Masuda - 2.1.5 +- Update ruby version to 2.1.5 +- Remove dependency unzip + +* Wed Nov 5 2014 Takashi Masuda - 2.1.4-2 +- Remove dependency db4 and db4-devel + +* Fri Oct 31 2014 Takashi Masuda - 2.1.4 +- Update ruby version to 2.1.4 + +* Wed Oct 29 2014 Takashi Masuda - 2.1.2 +- Remove dependencies on tcl-devel and byacc + +* Fri May 9 2014 Masahito Yoshida - 2.1.2 +- Update ruby version to 2.1.2 + +* Thu Dec 26 2013 Masahito Yoshida - 2.1.0 +- Update ruby version to 2.1.0 + +* Sat Nov 23 2013 Masahito Yoshida - 2.0.0-p353 +- Update ruby version to 2.0.0-p353 + +* Tue Jul 2 2013 Masahito Yoshida - 2.0.0-p247 +- Update ruby version to 2.0.0-p247 + +* Sun May 19 2013 Masahito Yoshida - 2.0.0-p195 +- Update ruby version to 2.0.0-p195 + +* Sat Mar 23 2013 Masahito Yoshida - 2.0.0-p0 +- Update ruby version to 2.0.0-p0 + +* Sun Feb 24 2013 Masahito Yoshida - 1.9.3-p392 +- Update ruby version to 1.9.3-p392 + +* Tue Jan 29 2013 Carlos Villela - 1.9.3-p374 +- Update ruby version to 1.9.3-p374 + +* Tue Jan 15 2013 Carlos Villela - 1.9.3-p362 +- Update ruby version to 1.9.3-p362 + +* Thu Nov 15 2012 Rajat Vig - 1.9.3-p327 +- Update ruby version to 1.9.3-p327 + +* Mon Oct 22 2012 Carlos Villela - 1.9.3-p286 +- Update ruby version to 1.9.3-p286 + +* Wed Jul 4 2012 Carlos Villela - 1.9.3-p194 +- Update ruby version to 1.9.3-p194 + +* Wed Jan 18 2012 Mandi Walls - 1.9.3-p0 +- Update ruby version to 1.9.3-p0 + +* Mon Aug 29 2011 Gregory Graf - 1.9.2-p290 +- Update ruby version to 1.9.2-p290 + +* Sat Jun 25 2011 Ian Meyer - 1.9.2-p180-2 +- Remove non-existant --sitearchdir and --vedorarchdir from %configure +- Replace --sitedir --vendordir with simpler --libdir +- Change %{_prefix}/share to %{_datadir} + +* Tue Mar 7 2011 Robert Duncan - 1.9.2-p180-1 +- Update prerequisites to include make +- Update ruby version to 1.9.2-p180 +- Install /usr/share documentation +- (Hopefully!?) platform agnostic + +* Sun Jan 2 2011 Ian Meyer - 1.9.2-p136-1 +- Initial spec to replace system ruby with 1.9.2-p136