]> git.pld-linux.org Git - packages/apache1-mod_accounting.git/blame - apache1-mod_accounting.spec
- tabs in preamble
[packages/apache1-mod_accounting.git] / apache1-mod_accounting.spec
CommitLineData
bf9a4580
ER
1# TODO
2# - ipv6 patch not implemented
3%bcond_without ipv6 # disable IPv6 support
4
1952fccc 5%define mod_name accounting
42d03263 6%define apxs %{_sbindir}/apxs1
034d994f 7Summary: Apache module: record traffic statistics into a database
6dd0abc1 8Summary(pl.UTF-8): Moduł do apache: zapisuje statystyki ruchu do bazy danych
42d03263 9Name: apache1-mod_%{mod_name}
10Version: 0.5
6b81e1df 11Release: 0.5
034d994f 12License: BSD
1952fccc 13Group: Networking/Daemons
ead23562 14Source0: http://dl.sourceforge.net/mod-acct/mod_accounting-%{version}.tar.gz
42d03263 15# Source0-md5: fc045bbdc5ae32241765fea2967a63fb
034d994f 16Source1: %{name}.conf
1952fccc 17URL: http://sourceforge.net/projects/mod-acct/
1e8424a0 18%{?with_ipv6:BuildRequires: apache1(ipv6)-devel}
bf9a4580 19BuildRequires: apache1-devel >= 1.3.33-2
3dd41429 20BuildRequires: mysql-devel
21BuildRequires: postgresql-devel
457a1f8a 22BuildRequires: rpmbuild(macros) >= 1.268
bf9a4580
ER
23%{!?with_ipv6:BuildConflicts: apache1(ipv6)-devel}
24Requires: apache1 >= 1.3.33-2
fbe7f0a2 25Obsoletes: apache-mod_accounting <= 0.5
1952fccc 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
bf9a4580
ER
28%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
29%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
1952fccc 30
31%description
c6175dbd 32mod_accounting is a simple Apache module that can record traffic
16556972 33statistics into a database (bytes in/out per HTTP request)
1952fccc 34
d93668e4
JR
35%description -l pl.UTF-8
36mod_accounting to prosty moduł Apache pozwalający na zapisywanie
16556972 37informacji o ruchu HTTP do bazy danych (bajty
d93668e4 38przychodzące/wychodzące).
1952fccc 39
3518e0c7 40%prep
1952fccc 41%setup -q -n mod_%{mod_name}-%{version}
42
43%build
8ef4ba44 44PATH=$PATH:%{_sbindir}
42d03263 45%{__make} \
46 APXS=%{apxs} \
bf9a4580 47 LIB="-L%{_includedir}/postgresql -L%{_includedir}/mysql -lpq -lmysqlclient"
1952fccc 48
49%install
50rm -rf $RPM_BUILD_ROOT
bf9a4580 51install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
1952fccc 52
53install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
bf9a4580 54install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
1952fccc 55
efbeab1f
JB
56%clean
57rm -rf $RPM_BUILD_ROOT
58
1952fccc 59%post
457a1f8a 60%service -q apache restart
1952fccc 61
6b81e1df 62%postun
1952fccc 63if [ "$1" = "0" ]; then
457a1f8a 64 %service -q apache restart
1952fccc 65fi
66
67%files
68%defattr(644,root,root,755)
76d509fa 69%doc README ChangeLog
1e8424a0 70%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
1952fccc 71%attr(755,root,root) %{_pkglibdir}/*
This page took 0.031806 seconds and 4 git commands to generate.