]>
Commit | Line | Data |
---|---|---|
6e661cbe | 1 | %define mod_name cvs |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: Apache module: Automatically updates files in a CVS-based webtree | |
e74c6f4a | 4 | Summary(pl.UTF-8): Moduł do apache: Automatyczne uaktualnianie plików z drzewa CVS |
6e661cbe | 5 | Name: apache-mod_%{mod_name} |
6 | Version: 0.5.91 | |
7 | Release: 2 | |
8 | License: GPL | |
7480d72e | 9 | Group: Networking/Daemons/HTTP |
6e661cbe | 10 | Source0: http://resare.com/noa/mod_cvs/dist/mod_%{mod_name}-%{version}.tar.gz |
11 | # Source0-md5: ef100c30ff734464c6194a2e707136b5 | |
12 | URL: http://www.resare.com/noa/mod_cvs/ | |
84e3f120 | 13 | BuildRequires: %{apxs} |
6e661cbe | 14 | BuildRequires: apache-devel |
15 | BuildRequires: rpmbuild(macros) >= 1.268 | |
16 | BuildRequires: zlib-devel | |
17 | Requires(triggerpostun): %{apxs} | |
d8cc46ba | 18 | Requires: apache(modules-api) = %apache_modules_api |
6e661cbe | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
94b5b567 | 22 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
6e661cbe | 23 | |
24 | %description | |
25 | Apache module: Automatically updates files in a CVS-based webtree. | |
26 | ||
e3a3add2 JR |
27 | %description -l pl.UTF-8 |
28 | Moduł do apache: Automatyczne uaktualnianie plików z drzewa CVS. | |
6e661cbe | 29 | |
30 | %prep | |
31 | %setup -q -n mod_%{mod_name}-%{version} | |
32 | ||
33 | %build | |
34 | %{apxs} -c mod_%{mod_name}.c | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
94b5b567 | 38 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} |
6e661cbe | 39 | |
40 | install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so | |
41 | ||
42 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ | |
94b5b567 | 43 | $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf |
6e661cbe | 44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %post | |
49 | %service -q httpd restart | |
50 | ||
51 | %postun | |
52 | if [ "$1" = "0" ]; then | |
53 | %service -q httpd restart | |
54 | fi | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc README doc/*.html | |
94b5b567 | 59 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf |
6e661cbe | 60 | %attr(755,root,root) %{_pkglibdir}/* |