RPM support
Artur Zaprzała <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Here are the files that I use to build RPM package for Fedora. It would be nice to have them in mod_fasctcgi tarball. mod_fastcgi.spec has version number set to 2.4.7 and it must be updated with every release. To build binary rpm, just type (when the next version is released): rpmbuild -tb mod_fastcgi-2.4.7.tar.gz Using mod_fastcgi under Fedora with SELinux enabled requires a custom SELinux policy module, but I don't have one ready for release. _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
mod_fastcgi.spec
(text/plain, 1.2 KB)
Summary: FastCGI module for Apache web server.
Name: mod_fastcgi
Version: 2.4.7
Release: 1
Group: System Environment/Daemons
URL: http://www.fastcgi.com/
Source: %{name}-%{version}.tar.gz
License: FastCGI
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: httpd-devel
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing httpd-devel)
%description
mod_fastcgi is a module for the Apache web server, that enables
FastCGI - a standards based protocol for communicating with
applications that generate dynamic content for web pages.
%prep
%setup -q
%build
%{_sbindir}/apxs -Wc,-Wall -o mod_fastcgi.so -c *.c
%install
[ "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules
install -m755 .libs/%{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
# Install the config file
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
install -m 644 $RPM_SOURCE_DIR/fastcgi.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%doc docs/LICENSE.TERMS
%doc docs/mod_fastcgi.html
%{_libdir}/httpd/modules/*.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
%changelog
fastcgi.conf
(text/plain, 50 B)
LoadModule fastcgi_module modules/mod_fastcgi.so