Merge remote-tracking branch 'sf/master'
[hcoop/debian/libapache-mod-waklog.git] / mod_waklog.spec
CommitLineData
9c62213e
JW
1Name: mod_waklog
2Version: 1.1.0
3Release: 1%{?dist}
4Summary: Apache module allowing the web server to acquire AFS credentials
5
6Group: System Environment/Daemons
7License: University of Michigan
8Vendor: Sine Nomine Associates
9URL: http://sourceforge.net/projects/modwaklog/
10Source0: http://sourceforge.net/projects/modwaklog/files/modwaklog/mod_waklog-%{version}.tgz
11BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
12
13BuildRequires: openafs-authlibs-devel httpd-devel apr-devel krb5-devel automake
14Requires: httpd
15
16%description
17mod_waklog is an Apache module that provides aklog-like semantics
18for the web. mod_waklog will acquire (and store in the kernel) an
19AFS credential when a connection is opened, use the credential for
20the duration of the connection, and will remove the credential when
21the connection is closed.
22
23%prep
24%setup -q
25# This goes away with a proper dist tarball; likewise BuildRequires: automake
26./regen.sh
27
28%build
29./configure --libdir=%{_libdir} --with-afs-libs=%{_libdir}/afs
30make %{?_smp_mflags}
31
32%install
33rm -rf $RPM_BUILD_ROOT
34
35install -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules/
36install .libs/mod_waklog.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/
37
38install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
39install -m 644 waklog.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(644,root,root,755)
46%{_libdir}/httpd/modules/mod_waklog.so
47%config(noreplace) %{_sysconfdir}/httpd/conf.d/waklog.conf
48%doc README COPYING AUTHORS NEWS
49
50%changelog
51* Wed Jul 15 2015 Jacob Welsh <jwelsh@sinenomine.net> - 1.1.0-1
52- Initial RPM package