forked from beetlebugorg/mod_dims
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmod_dims.spec
62 lines (44 loc) · 1.51 KB
/
mod_dims.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
Summary: Apache Module mod_dims
Name: mod_dims
Version: 3.3.0
Release: 6.is24
License: APL
Vendor: BeetleBugOrg at GitHub
Packager: $Id:$
Group: System Environment/Daemons
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: x86_64
BuildRequires: ImageMagick-devel
BuildRequires: curl-devel
BuildRequires: httpd-devel
BuildRequires: libtool
Requires: curl, httpd, ImageMagick
%description
DIMS is a webservice that allows for dynamic image manipulation. It allows for easy image resizing and thumbnail generation directly in HTML pages, eliminating the need to pre-compute different image sizes and store their locations for use on a page.
The source can be found on our github account: https://github.com/Scout24-CoC-MPS/mod_dims.git
which is a fork of https://github.com/beetlebugorg/mod_dims.git
To checkout the source, do: git clone https://github.com/Scout24-CoC-MPS/mod_dims.git
%post
%prep
%setup
%build
./autorun.sh
export LDFLAGS="$LDFLAGS -L/usr/lib64/httpd"
export CFLAGS="$CFLAGS -I/usr/include/httpd -I/usr/include/ImageMagick"
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
install -m 0644 src/.libs/libmod_dims.so -D %{buildroot}%{_libdir}/httpd/modules/mod_dims.so
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING README.markdown
%{_libdir}/httpd/modules/mod_dims.so
%changelog