Revision 4ba2e925
Added by Dominic Cleal almost 10 years ago
rubygem-passenger/rubygem-passenger.spec | ||
---|---|---|
%{!?scl:%global pkg_name %{name}}
|
||
%{?scl:%scl_package rubygem-%{gem_name}}
|
||
|
||
%if 0%{?fedora} >= 19
|
||
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
||
%global gem_extdir %{gem_extdir_mri}
|
||
%endif
|
||
|
||
%if 0%{?rhel} <= 6
|
||
%if 0%{?scl:1}
|
||
%{!?gem_extdir:%global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}}
|
||
%global gem_extdir_lib %{gem_extdir}/lib
|
||
... | ... | |
%{!?gem_extdir:%global gem_extdir %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
|
||
%global gem_extdir_lib %{gem_extdir}
|
||
%endif
|
||
%endif
|
||
|
||
%{!?_root_includedir:%global _root_includedir %{_includedir}}
|
||
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
||
... | ... | |
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
||
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
||
|
||
%if 0%{?rhel} == 7 && 0%{!?scl:1}
|
||
%global enable_check 0
|
||
%else
|
||
%global enable_check 1
|
||
%endif
|
||
|
||
Summary: Passenger Ruby web application server
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
Version: 4.0.18
|
||
... | ... | |
#Requires: %{?scl_prefix}rubygem(daemon_controller) >= 1.0.0
|
||
Requires: %{?scl_prefix}rubygem(rack)
|
||
Requires: %{?scl_prefix}rubygem(rake)
|
||
%if "%{?scl}" == "ruby193" || (0%{?rhel} == 6 && 0%{!?scl:1})
|
||
Requires: %{?scl_prefix}ruby(abi)
|
||
%else
|
||
Requires: %{?scl_prefix}ruby(release)
|
||
%endif
|
||
|
||
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
|
||
BuildRequires: libcurl-devel
|
||
... | ... | |
BuildRequires: %{?scl_prefix}rubygems-devel
|
||
BuildRequires: %{?scl_prefix}rubygem(rake) >= 0.8.1
|
||
BuildRequires: %{?scl_prefix}rubygem(rack)
|
||
%if %{enable_check}
|
||
BuildRequires: %{?scl_prefix}rubygem(rspec)
|
||
%endif
|
||
BuildRequires: %{?scl_prefix}rubygem(mime-types)
|
||
# BuildRequires: source-highlight
|
||
|
||
... | ... | |
|
||
%{__cp} test/config.json.example test/config.json
|
||
|
||
%if %{enable_check}
|
||
rake test --trace ||:
|
||
%endif
|
||
|
||
%files
|
||
%doc %{gem_instdir}/README.md
|
||
... | ... | |
%{gem_instdir}/ext
|
||
|
||
%files -n %{?scl_prefix}mod_passenger
|
||
%if 0%{?rhel} >= 7
|
||
%config(noreplace) %{_httpd_confdir}/*.conf
|
||
%endif
|
||
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
||
%{_httpd_moddir}/mod_passenger.so
|
||
%doc doc/Users?guide?Apache.txt
|
Also available in: Unified diff
refs #4451 - modernise spec for EL7