日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | bb353a0aa4951e90ebf15b797c883cb59785cbab (tree) |
---|---|
Time | 2013-07-28 17:58:41 |
Author | Fumihisa TONAKA <fumi.ftnk@gmai...> |
Commiter | Fumihisa TONAKA |
SFEapache-fastcgi: initial commit
@@ -0,0 +1,60 @@ | ||
1 | +%include Solaris.inc | |
2 | +%include packagenamemacros.inc | |
3 | + | |
4 | +%define tarball_name mod_fastcgi | |
5 | +%define tarball_version 2.4.6 | |
6 | + | |
7 | +Name: SFEapache-fastcgi | |
8 | +IPS_package_name: web/server/apache-22/module/apache-fastcgi | |
9 | +Summary: FastCGI module for Apache | |
10 | +Version: 2.4.6 | |
11 | +License: other | |
12 | +Url: http://www.fastcgi.com/ | |
13 | +Source: http://www.fastcgi.com/dist/%{tarball_name}-%{tarball_version}.tar.gz | |
14 | +# Source1: fastcgi.conf | |
15 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
16 | + | |
17 | +BuildRequires: web/server/apache-22 | |
18 | +Requires: web/server/apache-22 | |
19 | + | |
20 | +%description | |
21 | +mod_fastcgi is a module for the Apache web server, that enables | |
22 | +FastCGI - a standards based protocol for communicating with | |
23 | +applications that generate dynamic content for web pages. | |
24 | + | |
25 | +%prep | |
26 | +%setup -n %{tarball_name}-%{tarball_version} | |
27 | + | |
28 | +mkdir amd64 | |
29 | +cp *.c *.h amd64 | |
30 | + | |
31 | +%build | |
32 | +/usr/apache2/2.2/bin/apxs -o mod_fastcgi.so -c *.c | |
33 | +cd amd64 | |
34 | +/usr/apache2/2.2/bin/amd64/apxs -o mod_fastcgi.so -c *.c | |
35 | +cd ../ | |
36 | + | |
37 | +%install | |
38 | +rm -rf $RPM_BUILD_ROOT | |
39 | + | |
40 | +mkdir -p $RPM_BUILD_ROOT/usr/apache2/2.2/libexec/amd64 | |
41 | +cp .libs/mod_fastcgi.so $RPM_BUILD_ROOT/usr/apache2/2.2/libexec/ | |
42 | +cp amd64/.libs/mod_fastcgi.so $RPM_BUILD_ROOT/usr/apache2/2.2/libexec/amd64/ | |
43 | + | |
44 | +# mkdir -p $RPM_BUILD_ROOT/etc/apache2/2.2/conf.d | |
45 | +# cp %{SOURCE1} $RPM_BUILD_ROOT/etc/apache2/2.2/conf.d/ | |
46 | + | |
47 | +%clean | |
48 | +rm -rf $RPM_BUILD_ROOT | |
49 | + | |
50 | +%files | |
51 | +%defattr (-, root, bin) | |
52 | +%dir %attr (0755, root, sys) /usr | |
53 | +%attr (0444, root, bin) /usr/apache2/2.2/libexec/mod_fastcgi.so | |
54 | +%attr (0444, root, bin) /usr/apache2/2.2/libexec/amd64/mod_fastcgi.so | |
55 | +# %dir %attr (0755, root, sys) /etc | |
56 | +# %attr (0444, root, bin) %config(noreplace) /etc/apache2/2.2/conf.d/fastcgi.conf | |
57 | + | |
58 | +%changelog | |
59 | +* Sun Jul 28 JST 2013 Fumihisa TONAKA <fumi.ftnk@gmail.com> | |
60 | +- initial commit |