fcgi/fcgi.spec

95 lines
2.4 KiB
RPMSpec

Name: fcgi
Version: 2.4.2
Release: 1mamba
Summary: FASTCgi (fcgi) is a language independent, high performant extension to CGI
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/FastCGI-Archives/fcgi2
Source: https://github.com/FastCGI-Archives/fcgi2.git/%{version}/fcgi2-%{version}.tar.bz2
License: Custom
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libe2fs-devel
BuildRequires: libgcc
BuildRequires: libkrb5-devel
BuildRequires: libnsl-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtirpc-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
FASTCgi (fcgi) is a language independent, high performant extension to CGI.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n fcgi2-%{version}
./autogen.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/cgi-fcgi
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libfcgi++.so.*
%{_libdir}/libfcgi.so.*
%doc LICENSE.TERMS
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/fastcgi.h
%{_includedir}/fcgi_config.h
%{_includedir}/fcgi_stdio.h
%{_includedir}/fcgiapp.h
%{_includedir}/fcgimisc.h
%{_includedir}/fcgio.h
%{_includedir}/fcgios.h
%{_libdir}/libfcgi++.a
%{_libdir}/libfcgi++.so
%{_libdir}/libfcgi.a
%{_libdir}/libfcgi.so
%{_libdir}/pkgconfig/fcgi++.pc
%{_libdir}/pkgconfig/fcgi.pc
%doc README.md
%changelog
* Sat Aug 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-1mamba
- package created using the webbuild interface