update BR
[packages/apache-mod_mime_xattr.git] / apache-mod_mime_xattr.spec
CommitLineData
4e37a036
ER
1%define mod_name mime_xattr
2%define apxs %{_sbindir}/apxs
3Summary: Apache HTTPD module: mod_mime_xattr
4Name: apache-mod_%{mod_name}
5Version: 0.4
6Release: 1
7License: Apache v2.0
8Group: Networking/Daemons/HTTP
9Source0: http://0pointer.de/lennart/projects/mod_mime_xattr/mod_mime_xattr-%{version}.tar.gz
10# Source0-md5: cf04dd8d8ce31a9690f7ddc4495f1b3b
11Source1: apache.conf
12URL: http://0pointer.de/lennart/projects/mod_mime_xattr/
13BuildRequires: %{apxs}
14BuildRequires: apache-devel >= 2.2
5c4881eb 15BuildRequires: attr-devel
4e37a036
ER
16BuildRequires: autoconf >= 2.57
17BuildRequires: automake >= 1:1.9
5c4881eb
ER
18BuildRequires: lynx
19BuildRequires: pkgconfig
4e37a036
ER
20BuildRequires: rpmbuild(macros) >= 1.268
21Requires: apache(modules-api) = %apache_modules_api
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
25%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
26
27%description
28mod_mime_xattr is a module for the Apache HTTPD which may be used to
29set a range of MIME properties of files served from a document tree
30with extended attributes (EAs) as supported by the underlying file
31system.
32
33The current version of mod_mime_xattr has support for Linux style EAs
34which are supported by Linux 2.4 with the ACL/EA patches applied and
35vanilla Linux 2.6. The following attributes may be used:
36
37- user.mime_type: set the MIME type of a file explicitly. This
38 attribute is compatible with the shared MIME database specification as
39 published by freedesktop.org
40- user.charset: set the charset used in a file
41- user.mime_encoding: set the MIME encoding of a file (e.g. gzip)
42- user.apache_handler: set the apache handler of a file explicitly
43
44%prep
45%setup -q -n mod_%{mod_name}-%{version}
46
47%build
48%configure \
49 --with-apxs=%{apxs}
50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
55install -p src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
56
57cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post
63%service -q httpd restart
64
65%postun
66if [ "$1" = "0" ]; then
67 %service -q httpd restart
68fi
69
70%files
71%defattr(644,root,root,755)
72%doc README
73%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
74%attr(755,root,root) %{_pkglibdir}/mod_%{mod_name}.so
This page took 0.044111 seconds and 4 git commands to generate.