[packages/fcgiwrap] - pl, updated build, adjusted version to indicate post-release snapshot
qboosh
qboosh at pld-linux.org
Fri May 22 20:38:39 CEST 2026
commit 6fdac354c08a5d1ffe9ef83ab2506dde06e8e8c1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri May 22 20:38:37 2026 +0200
- pl, updated build, adjusted version to indicate post-release snapshot
fcgiwrap.spec | 70 ++++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 45 insertions(+), 25 deletions(-)
---
diff --git a/fcgiwrap.spec b/fcgiwrap.spec
index ee6ba94..6a36c8e 100644
--- a/fcgiwrap.spec
+++ b/fcgiwrap.spec
@@ -1,12 +1,14 @@
-%global commit 99c942c90063c73734e56bacaa65f947772d9186
-
Summary: Simple FastCGI wrapper for CGI scripts
+Summary(pl.UTF-8): Proste obudowanie FastCGI dla skryptów CGI
Name: fcgiwrap
Version: 1.1.0
-Release: 1
+%define gitref 99c942c90063c73734e56bacaa65f947772d9186
+%define snap 20150420
+%define rel 1
+Release: 1.%{snap}.%{rel}
License: MIT
-URL: https://github.com/gnosek/fcgiwrap
-Source0: https://github.com/gnosek/fcgiwrap/archive/%{commit}/%{name}-%{commit}.tar.gz
+#Source0Download: https://github.com/gnosek/fcgiwrap/tags
+Source0: https://github.com/gnosek/fcgiwrap/archive/%{gitref}/%{name}-%{gitref}.tar.gz
# Source0-md5: b092e95b676e23407732b4a2fbf800ae
Source1: %{name}@.service
Source2: %{name}@.socket
@@ -17,22 +19,23 @@ Patch0: %{name}-1.1.0-use_pkg-config_libsystemd.patch
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: autoconf
+URL: https://github.com/gnosek/fcgiwrap
+BuildRequires: autoconf >= 2.61
BuildRequires: automake
-BuildRequires: coreutils
BuildRequires: fcgi-devel
-BuildRequires: gcc
+BuildRequires: pkgconfig
BuildRequires: systemd-devel
-Provides: webserver(cgi)
+Provides: webserver(cgi)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This package provides a simple FastCGI wrapper for CGI scripts with/
-following features:
+This package provides a simple FastCGI wrapper for CGI scripts with
+the 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 )
+ 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
@@ -40,32 +43,49 @@ following features:
- support systemd socket activation, launcher program like spawn-fcgi
is no longer required on systemd-enabled distributions
+%description -l pl.UTF-8
+Ten pakiet udostępnia proste obudowanie FastCGI dla skryptów CGI,
+mające następującą funkcjonalność:
+- bardzo lekki (84kB prywatnej pamięci na instancję)
+- naprawa popsutych CR/LF w nagłówkach
+- rozsądna obsługa środowiska (skrypty CGI pobierają zmienne
+ środowiskowe związane z HTTP z parametrów FastCGI i dzidziczą
+ pozostałe ze środowiska fcgiwrap)
+- brak konfiguracji, można uruchamiać kilka serwisów z tej samej puli
+ fcgiwrap
+- przekazywanie standardowego wyjścia diagnostycznego CGI na strumień
+ wyjścia diagnostycznego cgiwrap lub FastCGI
+- obsługa aktywacji gniazdem w systemd, program uruchamiający typu
+ spawn-fcgi nie jest już potrzebny do obsługi systemd
+
%prep
-%setup -q -n %{name}-%{commit}
+%setup -q -n %{name}-%{gitref}
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
%build
-autoreconf -i
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+install -m755 /usr/share/autoconf/build-aux/config.{guess,sub} .
+CPPFLAGS="%{rpmcppflags} -I%{_includedir}/fastcgi"
%configure \
- CFLAGS="-I%{_includedir}/fastcgi %{rpmcflags}" \
- --prefix="" \
- --with-systemd
+ --prefix="" \
+ --with-systemd
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# Remove the default systemd files
-rm -f $RPM_BUILD_ROOT%{systemdunitdir}/fcgiwrap.service
-rm -f $RPM_BUILD_ROOT%{systemdunitdir}/fcgiwrap.socket
+%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/fcgiwrap.service
+%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/fcgiwrap.socket
# Install our own systemd config files
install -Dm 644 %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}@.service
@@ -87,8 +107,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.rst COPYING
-%attr(755,root,root) %{_sbindir}/%{name}
-%{_mandir}/man8/%{name}.8*
-%{systemdunitdir}/%{name}@.service
-%{systemdunitdir}/%{name}@.socket
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(755,root,root) %{_sbindir}/fcgiwrap
+%{_mandir}/man8/fcgiwrap.8*
+%{systemdunitdir}/fcgiwrap at .service
+%{systemdunitdir}/fcgiwrap at .socket
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fcgiwrap
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fcgiwrap.git/commitdiff/6fdac354c08a5d1ffe9ef83ab2506dde06e8e8c1
More information about the pld-cvs-commit
mailing list