%global commit 99c942c90063c73734e56bacaa65f947772d9186 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20150530 Name: fcgiwrap Version: 1.1.0 Release: 5.%{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 # 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 BuildRequires: autoconf BuildRequires: automake BuildRequires: fcgi-devel BuildRequires: systemd-devel %{?systemd_requires} %description fcgiwrap is a simple server for running CGI applications over FastCGI. It hopes to provide clean CGI support to Nginx (and other web servers that may need it). %prep %autosetup -n %{name}-%{commit} %build autoreconf -i %configure --prefix="" --with-systemd %make_build %install %make_install %post %systemd_post fcgiwrap.service %systemd_post fcgiwrap.socket %preun %systemd_preun fcgiwrap.service %systemd_preun fcgiwrap.socket %postun %systemd_postun_with_restart fcgiwrap.service %systemd_postun_with_restart fcgiwrap.socket %files %doc README.rst %license COPYING %{_sbindir}/fcgiwrap %{_mandir}/man8/fcgiwrap.8* %{_unitdir}/fcgiwrap.service %{_unitdir}/fcgiwrap.socket %changelog * Wed Aug 30 2017 Juan Orti Alcaine - 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 - 1.1.0-4.20150530git99c942c - Patch0 to rename pkg-config libsystemd-daemon to libsystemd * Thu Feb 04 2016 Juan Orti Alcaine - 1.1.0-3.20150530git99c942c - Use %%make_build macro * Sat May 30 2015 Juan Orti Alcaine - 1.1.0-2.20150530git99c942c - Update to commit 99c942c * Fri Feb 08 2013 Hiroaki Nakamura - 1.1.0-1 - new upstream release. * Fri Jan 11 2013 Hiroaki Nakamura - 1.0.3.20120908-1 - Change version to increase monotonously. * Wed Jan 9 2013 Hiroaki Nakamura - 1.0.3-3.gitb9f03e6377 - Make the rpm relocatable. * Tue Dec 25 2012 Hiroaki Nakamura - 1.0.3-2.gitb9f03e6377 * Tue Jan 31 2012 Craig Barnes - 1.0.3-1.git1328862 - Initial package