LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dba-apache2-mod_passenger-4027.spec of Package dba-apache2-mod_passenger-4027 (Project home:csbuild:DBA)

%define vers	4027
%define real_vers	4.0.27
%define prefix	/DBA/apache/WWW/2.2.x
%define apavers         2.2.25
%define apapack         2225
%define apahome /DBA/apache/WWW/%{apavers}
%define apxs    %{apahome}/bin/apxs
%define real_name passenger
%define modname   mod_passenger
%define rubypath  /DBA/ruby/1.9.3-p484

Name:           dba-apache2-%{modname}-%{vers}
Summary:        Apache module for Ruby on Rails support 4.0.27
Version:        %{real_vers}
Release:        1
License:        GPL
Url:            http://httpd.apache.org/mod_fcgid/
Source0:        http://rubygems.org/downloads/%{real_name}-%{version}.gem
Group:          Productivity/Networking/Web/Servers
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  dba-apache-%{apapack}
Requires:  	dba-apache-base

# BuildRequires:  ruby-devel rubygems rubygem-rake
BuildRequires:  dba-ruby-193-p484
Requires:	dba-ruby-193-p484
BuildRequires:  gcc gcc-c++ libstdc++-devel curl-devel

#!BuildIgnore:  dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e

%if 0%{?suse_version}
BuildRequires:  libapr-util1-devel >= 1.3 libapr1-devel >= 1.3
%else
BuildRequires:  apr-util-devel apr-devel
%endif

%if 0%{?suse_version} >= 1110
BuildRequires:  -post-build-checks
BuildRequires:  zlib-devel openssl
%endif


%description
Apache module for Ruby on Rails support version 4.0.27 based an dba-ruby-193-p484.


%prep
%setup -q -c -T -n %{real_name}-%{real_vers}
pushd ../
%{rubypath}/bin/gem unpack %{SOURCE0}
popd


%build
%define _disable_ld_no_undefined 1
export CFLAGS="%{optflags} -O0 -march=nocona -pipe"
export APXS2="%{apxs}"
# rake --apxs2-path %{apxs} apache2
ls
%{rubypath}/bin/rake apache2


%install
%{__mkdir_p} %{buildroot}%{prefix}/bin
%{__mkdir_p} %{buildroot}%{prefix}/modules

install -m 755 buildout/apache2/%{modname}.so %{buildroot}%{prefix}/modules/%{modname}-%{version}.so

install -m 755 bin/passenger %{buildroot}%{prefix}/bin/
install -m 755 bin/passenger-config %{buildroot}%{prefix}/bin/
install -m 755 bin/passenger-memory-stats %{buildroot}%{prefix}/bin/
install -m 755 bin/passenger-status %{buildroot}%{prefix}/bin/


%post
cd %{prefix}/modules
%{__ln_s} -f %{modname}-%{version}.so %{modname}.so


%clean
%{__rm} -rf %{buildroot};


%files
%defattr(-,root,root,-)
%{prefix}/bin/passenger*
%{prefix}/modules/%{modname}-%{version}.so


%changelog
* Wed Dec 11 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- add paasenger scripts to package
* Tue Dec 10 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- initial release