Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9.1
-
None
-
RHEL, Centos, Fedora, ...
-
Patch Available
Description
While a thrift gem is currently provided, many prefer to install gems that are encapsulated in an RPM. This provides deployment consistency with other components of their system.
Also noticed that a full rpmbuild run (where php is installed on the build machine) would break as it will attempt to install the php files into the system itself (rather than the build-root, requiring elevated permissions)
Detailed list -
Support packaging ruby RPM (as a rubygem)
+ Following convention for packaging gems as RPMs
by naming the subpackage as rubygem-thrift
https://fedoraproject.org/wiki/Packaging:Ruby?rd=Packaging/Ruby#RubyGems
+ Includes one obsoletes statement but various builders may have used
different names for previously built ruby lib RPMs, so more may
need to be added.
+ Set a local GEM_HOME during build/install stages so that the gems
installed during the build will be tossed and no root access will
be required for the build
+ Set RUBYLIB to first search the local (./lib/rb) path to prevent
conflicts with other versions of thrift that may be installed on
the build machine.
Support for packaging php RPM
+ New sub-backage to house the results of "make install" of lib/php
+ Set PHP_PREFIX in configure to be in the build root