Advertisement
vicendominguez

mod_jk RedHat/CentOS EL6 SPEC file minimal

Jun 18th, 2013
2,563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define _httpd_apxs /usr/sbin/apxs
  2. %define httpd httpd
  3.  
  4. Name:           httpd-mod_jk
  5. Version:        1.2.37
  6. Release:        1%{?org_tag}%{?dist}
  7. Epoch:          0
  8. Summary:        Tomcat mod_jk connector for Apache
  9. License:        Apache License
  10. Group:          Development/Java
  11. URL:            http://tomcat.apache.org/
  12. Source0:        http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-%{version}-src.tar.gz
  13. BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. Requires:       %{httpd}
  15. BuildRequires:  %{httpd}-devel
  16. BuildRequires:  libtool
  17. Obsoletes:      mod_jk < %{epoch}:%{version}-%{release}
  18. Provides:       mod_jk = %{epoch}:%{version}-%{release}
  19. Obsoletes:      tomcat-mod < %{epoch}:%{version}-%{release}
  20.  
  21. %description
  22. mod_jk allows Apache to serve as a front-end for Tomcat, GlassFish or any other
  23. AJP1.3-enabled application server, with optional load-balancing.
  24.  
  25. %prep
  26. %setup -q -n tomcat-connectors-%{version}-src
  27.  
  28. (cd native && %{__libtoolize} --copy --force)
  29.  
  30. %build
  31. cd native
  32.  
  33. %configure \
  34.   --with-apxs=%{_httpd_apxs} \
  35.  
  36. make
  37. cd ..
  38.  
  39. %install
  40. rm -rf %{buildroot}
  41.  
  42. mkdir -p %{buildroot}/%{httpd}/modules
  43. mkdir -p %{buildroot}/%{httpd}/conf/
  44. mkdir -p %{buildroot}/%{httpd}/conf.d/
  45.  
  46. %{__install} -D -m 755 native/apache-2.0/mod_jk.so %{buildroot}/%{_sysconfdir}/%{httpd}/modules/mod_jk.so
  47. %{__install} -D -m 644 conf/workers.properties -D %{buildroot}/%{_sysconfdir}/%{httpd}/conf/workers.properties
  48. %{__install} -D -m 644 conf/httpd-jk.conf -D %{buildroot}/%{_sysconfdir}/%{httpd}/conf.d/10_mod_jk.conf
  49.  
  50. %files
  51. %doc LICENSE NOTICE conf/workers.properties.minimal
  52. %doc native/BUILDING.txt native/README.txt native/STATUS.txt native/TODO.txt
  53. %config(noreplace) /%{_sysconfdir}/%{httpd}/conf.d/10_mod_jk.conf
  54. %config(noreplace) /%{_sysconfdir}/%{httpd}/conf/workers.properties
  55. /%{_sysconfdir}/%{httpd}/modules/mod_jk.so
  56.  
  57. %changelog
  58. * Tue Jun 18 2013 Vicente Dominguez <twitter:@vicendominguez> 1.2.37
  59. - Initial release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement