]> git.pld-linux.org Git - packages/apache-mod_whois.git/blame - apache-mod_whois.spec
- new
[packages/apache-mod_whois.git] / apache-mod_whois.spec
CommitLineData
c838cd33
AM
1%define mod_name whois
2%define ver 0.1
3%define apxs /usr/sbin/apxs
4Summary: Apache module: WHOIS->WEB gateway
5Name: apache-mod_%{mod_name}
6Version: %{ver}
7Release: 0.1
8License: distributable
9Group: Networking/Daemons
10Source0: http://dl.sourceforge.net/modwhois/mod_%{mod_name}-%{version}.tar.gz
11# Source0-md5: 8b4f29868c221b2d54f59b7a0c090698
12Source1: %{name}.conf
13URL: http://modwhois.sourceforge.net/
14BuildRequires: %{apxs}
15BuildRequires: apache-devel >= 2.0.0
16Requires(post,preun): %{apxs}
17Requires: apache
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
21
22%description
23Apache module: WHOIS->WEB gateway
24
25%prep
26%setup -q -n mod_%{mod_name}
27
28%build
29%{apxs} -c mod_%{mod_name}.c
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT{%{_sysconfdir}/httpd/httpd.conf,%{_pkglibdir}}
34
35libtool install mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}
36install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/83_mod-whois.conf
37
38%clean
39rm -rf $RPM_BUILD_ROOT
40
41%files
42%defattr(644,root,root,755)
43%doc LICENSE README
44%attr(755,root,root) %{_pkglibdir}/*.so
45%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/*.conf
This page took 0.068174 seconds and 4 git commands to generate.