]> git.pld-linux.org Git - packages/apache-mod_whois.git/blob - apache-mod_whois.spec
- new
[packages/apache-mod_whois.git] / apache-mod_whois.spec
1 %define         mod_name        whois
2 %define         ver             0.1
3 %define         apxs            /usr/sbin/apxs
4 Summary:        Apache module: WHOIS->WEB gateway
5 Name:           apache-mod_%{mod_name}
6 Version:        %{ver}
7 Release:        0.1
8 License:        distributable
9 Group:          Networking/Daemons
10 Source0:        http://dl.sourceforge.net/modwhois/mod_%{mod_name}-%{version}.tar.gz
11 # Source0-md5:  8b4f29868c221b2d54f59b7a0c090698
12 Source1:        %{name}.conf
13 URL:            http://modwhois.sourceforge.net/
14 BuildRequires:  %{apxs}
15 BuildRequires:  apache-devel >= 2.0.0
16 Requires(post,preun):   %{apxs}
17 Requires:       apache
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
21
22 %description
23 Apache 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
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/httpd/httpd.conf,%{_pkglibdir}}
34
35 libtool install mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}
36 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/83_mod-whois.conf
37
38 %clean
39 rm -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.110559 seconds and 3 git commands to generate.