-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_magick.spec.in
67 lines (57 loc) · 1.4 KB
/
mod_magick.spec.in
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# RPM Spec file for @PACKAGE_NAME@
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Image filtering for Apache httpd server
License: ASL 2.0
Group: System Environment/Daemons
Source: https://github.com/minfrin/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
Url: https://github.com/minfrin/%{name}
BuildRequires: gcc, pkgconfig(apr-1), pkgconfig(apr-util-1), pkgconfig(GraphicsMagick)
%if 0%{?is_opensuse}
BuildRequires: apache2-devel
Requires: apache2
%else
%if 0%{?mgaversion}
BuildRequires: apache-devel
Requires: apache
%else
BuildRequires: httpd-devel
Requires: httpd
%endif
%endif
%if 0%{?is_opensuse}
%define moduledir %{_libdir}/apache2
%define includedir %{_includedir}/apache2
%else
%define moduledir %{_libdir}/httpd/modules
%define includedir %{_includedir}/httpd
%endif
%description
The Apache mod_magick filter provides image filtering for requests.
%package devel
Group: Development/Libraries
Summary: Development tools for the mod_magick provider.
%if 0%{?is_opensuse}
Requires: apache2-devel
%else
%if 0%{?mgaversion}
Requires: apache-devel
%else
Requires: httpd-devel
%endif
%endif
%description devel
Header file for the mod_magick filter and magick bucket used to
manipulate image requests.
%prep
%setup -q
%build
%configure
%make_build
%install
%make_install
%files
%{moduledir}/%{name}*.so
%files devel
%{includedir}/mod_magick.h