-
Notifications
You must be signed in to change notification settings - Fork 48
/
hyperfastcgi.spec
61 lines (49 loc) · 1.81 KB
/
hyperfastcgi.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Name: hyperfastcgi
Url: https://github.com/xplicit/HyperFastCgi
License: X11/MIT
Group: Productivity/Networking/Web/Servers
Version: 0.4
Release: 1
Summary: Mono WebServer HyperFastCgi
Source: https://github.com/xplicit/HyperFastCgi/archive/master.zip
Requires: mono, glib2, libevent, libmonosgen-2_0-1, systemd
BuildRequires: mono-devel, glib2-devel, libevent-devel, libmonosgen-2_0-devel, autoconf, automake, libtool
# Build from spec file as root user
# yum install rpm-build redhat-rpm-config rpmdevtools yum-utils
# mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
# curl -o ~/rpmbuild/SPECS/hyperfastcgi.spec https://raw.githubusercontent.com/xplicit/HyperFastCgi/master/hyperfastcgi.spec
#
# spectool -g -R ~/rpmbuild/SPECS/hyperfastcgi.spec
# yum-builddep ~/rpmbuild/SPECS/hyperfastcgi.spec
# rpmbuild -ba ~/rpmbuild/SPECS/hyperfastcgi.spec
%description
Performant nginx to mono fastcgi server
%define debug_package %{nil}
%prep
%setup -q -n HyperFastCgi-master
%build
./autogen.sh --prefix=%{_prefix}
make
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_datadir}/%{name}/samples
cp samples/*.config %{buildroot}%{_datadir}/%{name}/samples
mkdir -p %{buildroot}%{_sysconfdir}/hyperfastcgi
cp samples/server.config %{buildroot}%{_sysconfdir}/%{name}/hfc.config
mkdir -p %{buildroot}%{_unitdir}
cp samples/ubuntu-startup/systemd/hyperfastcgi.service %{buildroot}%{_unitdir}
%post
/sbin/ldconfig
/usr/bin/gacutil -package 4.5 -i %{_prefix}/lib/%{name}/4.0/HyperFastCgi.exe
install -m 777 -d /var/log/%{name}
%postun
/usr/bin/gacutil -package 4.5 -u %{_prefix}/lib/%{name}/4.0/HyperFastCgi.exe
/sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%{_bindir}/*
%{_prefix}/lib/*
%config(noreplace) %{_sysconfdir}/*
%{_datadir}/*
%changelog