You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
5.9 KiB
160 lines
5.9 KiB
%global commit 99c942c90063c73734e56bacaa65f947772d9186 |
|
%global shortcommit %(c=%{commit}; echo ${c:0:7}) |
|
%global date 20181108 |
|
|
|
Name: fcgiwrap |
|
Version: 1.1.0 |
|
Release: 18.%{date}git%{shortcommit}%{?dist} |
|
Summary: Simple FastCGI wrapper for CGI scripts |
|
License: MIT |
|
URL: https://github.com/gnosek/fcgiwrap |
|
Source0: https://github.com/gnosek/fcgiwrap/archive/%{commit}/%{name}-%{commit}.tar.gz |
|
Source1: %{name}@.service |
|
Source2: %{name}@.socket |
|
Source3: %{name} |
|
Source4: SETUP |
|
Source5: README.SELinux |
|
|
|
# https://github.com/gnosek/fcgiwrap/pull/39 |
|
Patch0: %{name}-1.1.0-use_pkg-config_libsystemd.patch |
|
# https://github.com/gnosek/fcgiwrap/pull/43 |
|
Patch1: %{name}-1.1.0-declare_cgi_error_noreturn.patch |
|
# https://github.com/gnosek/fcgiwrap/pull/44 |
|
Patch2: %{name}-1.1.0-fix_kill_param_sequence.patch |
|
|
|
BuildRequires: coreutils |
|
BuildRequires: gcc |
|
BuildRequires: autoconf |
|
BuildRequires: automake |
|
BuildRequires: fcgi-devel |
|
BuildRequires: systemd-devel |
|
BuildRequires: make |
|
%{?systemd_requires} |
|
|
|
%description |
|
This package provides a simple FastCGI wrapper for CGI scripts with/ |
|
following features: |
|
- very lightweight (84KB of private memory per instance) |
|
- fixes broken CR/LF in headers |
|
- handles environment in a sane way (CGI scripts get HTTP-related environment |
|
vars from FastCGI parameters and inherit all the others from |
|
environment of fcgiwrap ) |
|
- no configuration, so you can run several sites off the same |
|
fcgiwrap pool |
|
- passes CGI std error output to std error stream of cgiwrap or FastCGI |
|
- support systemd socket activation, launcher program like spawn-fcgi |
|
is no longer required on systemd-enabled distributions |
|
|
|
%prep |
|
%autosetup -n %{name}-%{commit} |
|
install -pm 0644 %{SOURCE4} . |
|
install -pm 0644 %{SOURCE5} . |
|
|
|
%build |
|
autoreconf -i |
|
%configure --prefix="" --with-systemd |
|
%make_build |
|
|
|
%install |
|
%make_install |
|
|
|
# Remove the default systemd files |
|
rm -f %{buildroot}%{_unitdir}/fcgiwrap.service |
|
rm -f %{buildroot}%{_unitdir}/fcgiwrap.socket |
|
|
|
# Install our own systemd config files |
|
install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}@.service |
|
install -Dm 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}@.socket |
|
install -Dm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name} |
|
|
|
%post |
|
%systemd_post %{name}@.service %{name}@.socket |
|
|
|
%preun |
|
%systemd_preun %{name}@.service %{name}@.socket |
|
|
|
%postun |
|
%systemd_postun_with_restart %{name}@.service %{name}@.socket |
|
|
|
%files |
|
%doc README.rst README.SELinux SETUP |
|
%license COPYING |
|
%{_sbindir}/%{name} |
|
%{_mandir}/man8/%{name}.8* |
|
%{_unitdir}/%{name}@.service |
|
%{_unitdir}/%{name}@.socket |
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
|
|
|
%changelog |
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-18.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-17.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-16.20181108git99c942c |
|
- Rebuilt for updated systemd-rpm-macros |
|
See https://pagure.io/fesco/issue/2583. |
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-14.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-13.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
|
|
|
* Sun Oct 06 2019 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.1.0-12.20181108git99c942c |
|
- Update SETUP instructions. Fixes RHBZ 1740030. |
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10.20181108git99c942c |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
|
|
|
* Fri Dec 14 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.1.0-9.20181108git99c942c |
|
- fix typo in fcgiwrap socket file |
|
|
|
* Tue Dec 04 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.1.0-8.20181108git99c942c |
|
- Modify socket file based on feedback in BZ 1655281 |
|
- Add README.SELinux |
|
|
|
* Thu Nov 08 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.1.0-7.20181108git99c942c |
|
- Feedback from fedora package review |
|
- Remove Group from unit file |
|
- Set date to snapshot date, not commit date |
|
|
|
* Sat Nov 03 2018 Andrew Bauer <zonexpertconsulting@outlook.com> - 1.1.0-6.20150530git99c942c |
|
- Supply our own systemd service, socket, and environment files |
|
- Add Patch2 to fix kill parameter sequence |
|
|
|
* Wed Aug 30 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-5.20150530git99c942c |
|
- Add license |
|
- Use systemd_requires macro |
|
- Update URL |
|
- Add Patch1 to fix compilation with gcc 7 |
|
|
|
* Wed Nov 09 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-4.20150530git99c942c |
|
- Patch0 to rename pkg-config libsystemd-daemon to libsystemd |
|
|
|
* Thu Feb 04 2016 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-3.20150530git99c942c |
|
- Use %%make_build macro |
|
|
|
* Sat May 30 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-2.20150530git99c942c |
|
- Update to commit 99c942c |
|
|
|
* Fri Feb 08 2013 Hiroaki Nakamura <hnakamur@gmail.com> - 1.1.0-1 |
|
- new upstream release. |
|
|
|
* Fri Jan 11 2013 Hiroaki Nakamura <hnakamur@gmail.com> - 1.0.3.20120908-1 |
|
- Change version to increase monotonously. |
|
|
|
* Wed Jan 9 2013 Hiroaki Nakamura <hnakamur@gmail.com> - 1.0.3-3.gitb9f03e6377 |
|
- Make the rpm relocatable. |
|
|
|
* Tue Dec 25 2012 Hiroaki Nakamura <hnakamur@gmail.com> - 1.0.3-2.gitb9f03e6377 |
|
|
|
* Tue Jan 31 2012 Craig Barnes <cr@igbarn.es> - 1.0.3-1.git1328862 |
|
- Initial package
|
|
|