-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod_ranged.spec
46 lines (33 loc) · 1.06 KB
/
mod_ranged.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: mod_ranged
Version: 1.0.0
Release: 1%{?dist}
Group: System/Base
License: BSD
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Url: https://github.com/ytoolshed/mod_ranged
Source: %{name}-%{version}.tar.gz
Obsoletes: mod_ranged <= %{version}-%{release}
Provides: mod_ranged = %{version}-%{release}
Requires: httpd libcrange perl
BuildRequires: libcrange httpd-devel perl
Summary: Apache module interface to libcrange
%description
Apache module interface to libcrange
%prep
%setup -q
%build
apxs -c mod_ranged.c -lcrange $(perl -MExtUtils::Embed -e ldopts)
%install
install -Dp mod_ranged.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/mod_ranged.conf
install -Dp .libs/mod_ranged.so %{buildroot}%{_libdir}/httpd/modules/mod_ranged.so
%clean
%{__rm} -rf %{buildroot}
%post
%preun
%postun
%files
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_ranged.conf
%{_libdir}/httpd/modules/mod_ranged.so
%changelog
* Mon Aug 6 2012 [email protected]
- First pass at mod_ranged.spec