%{?mingw_package_header} %global pkgname fcgi Name: mingw-%{pkgname} Version: 2.4.2 Release: 15%{?dist} Summary: MinGW Windows %{pkgname} library BuildArch: noarch License: OML URL: https://fastcgi-archives.github.io/ Source0: https://github.com/FastCGI-Archives/fcgi2/archive/%{version}/%{name}-%{version}.tar.gz # Fix multiple initializations from incompatible pointer types Patch0: fcgi-incompat-pointer-types.patch BuildRequires: make BuildRequires: autoconf automake libtool BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc-c++ BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc-c++ %description MinGW Windows %{pkgname} library. %package -n mingw32-%{pkgname} Summary: MinGW Windows %{pkgname} library %description -n mingw32-%{pkgname} MinGW Windows %{pkgname} library. %package -n mingw64-%{pkgname} Summary: MinGW Windows %{pkgname} library %description -n mingw64-%{pkgname} MinGW Windows %{pkgname} library. %{?mingw_debug_package} %prep %autosetup -p1 -n %{pkgname}2-%{version} # remove DOS End Of Line Encoding sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm # fix file permissions chmod a-x include/fcgios.h libfcgi/os_unix.c %build autoreconf -ifv %mingw_configure --disable-static %mingw_make_build %install %mingw_make_install # Delete *.la files find %{buildroot} -name '*.la' -exec rm -f {} ';' %files -n mingw32-%{pkgname} %license LICENSE.TERMS %{mingw32_bindir}/cgi-fcgi.exe %{mingw32_bindir}/libfcgi-0.dll %{mingw32_bindir}/libfcgi++-0.dll %{mingw32_libdir}/libfcgi.dll.a %{mingw32_libdir}/libfcgi++.dll.a %{mingw32_libdir}/pkgconfig/fcgi.pc %{mingw32_libdir}/pkgconfig/fcgi++.pc %{mingw32_includedir}/* %files -n mingw64-%{pkgname} %license LICENSE.TERMS %{mingw64_bindir}/cgi-fcgi.exe %{mingw64_bindir}/libfcgi-0.dll %{mingw64_bindir}/libfcgi++-0.dll %{mingw64_libdir}/libfcgi.dll.a %{mingw64_libdir}/libfcgi++.dll.a %{mingw64_libdir}/pkgconfig/fcgi.pc %{mingw64_libdir}/pkgconfig/fcgi++.pc %{mingw64_includedir}/* %changelog * Thu Jul 18 2024 Fedora Release Engineering - 2.4.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 2.4.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.4.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 2.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 2.4.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 2.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 25 2022 Sandro Mani - 2.4.2-9 - Rebuild with mingw-gcc-12 * Thu Jan 20 2022 Fedora Release Engineering - 2.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 2.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 08 2019 Sandro Mani - 2.4.2-3 - Rebuild (Changes/Mingw32GccDwarf2) * Thu Jul 25 2019 Fedora Release Engineering - 2.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 29 2019 Sandro Mani - 2.4.2-1 - Update to 2.4.2 * Fri Feb 01 2019 Fedora Release Engineering - 2.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 31 2017 Sandro Mani - 2.4.1-1 - Update to 2.4.1 * Wed Jun 24 2015 Sandro Mani - 2.4.0-1 - Initial package