Summary: Provisioning and deployment of virtual instances
Name: vagrant
Version: 1.5.4
-Release: 0.3
+Release: 0.4
License: MIT
Group: Applications/Emulators
Source0: https://github.com/mitchellh/vagrant/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: rubygems.patch
Patch2: no-warning.patch
Patch3: %{name}file-shell-provision.patch
+Patch4: version.patch
URL: http://www.vagrantup.com/
BuildRequires: bash
BuildRequires: rpm-rubyprov
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
+
+VERSION=$(cat version.txt)
+sed -i -e "s/__VERSION__/$VERSION/" lib/vagrant/version.rb
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
--- /dev/null
+--- vagrant-1.5.4/lib/vagrant/version.rb~ 2014-04-21 21:50:01.000000000 +0300
++++ vagrant-1.5.4/lib/vagrant/version.rb 2014-05-04 11:10:11.382221217 +0300
+@@ -2,6 +2,5 @@
+ # This will always be up to date with the current version of Vagrant,
+ # since it is used to generate the gemspec and is also the source of
+ # the version for `vagrant -v`
+- VERSION = File.read(
+- File.expand_path("../../../version.txt", __FILE__)).chomp
++ VERSION = '__VERSION__'
+ end