summaryrefslogtreecommitdiff
path: root/zimg-storage.spec
blob: 15210bcc0cf2ab5b7a3aa7add5965a48c2c40cb3 (plain)
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
# NOTE: zimg name reserved for https://github.com/sekrit-twc/zimg
# TODO:
# - system libevhtp, hiredis, ...
# - use (lib)onig
# - use plain lua where luajit not available (see system-lua for appropriate variables)
#
# Conditional build:
%bcond_without	apidocs		# do not build and package API docs
%bcond_without	static_libs	# don't build static libraries
#
Summary:	Light image storage and processing system
Summary(pl.UTF-8):	Lekki system do przechowywania i przetwarzania obrazów
Name:		zimg-storage
Version:	3.1.0
Release:	0.1
License:	BSD
Group:		Applications/Graphics
#Source0Download: https://github.com/buaazp/zimg/releases
Source0:	https://github.com/buaazp/zimg/archive/v%{version}/zimg-%{version}.tar.gz
# Source0-md5:	e2d003f9fe981ff7839a8a47b9a54dcc
Patch0:		zimg-system-lua.patch
URL:		http://zimg.buaa.us/
BuildRequires:	ImageMagick-devel
BuildRequires:	cmake >= 2.8
BuildRequires:	libevent-devel >= 2.0.20
BuildRequires:	libmemcached-devel >= 1.0.8
BuildRequires:	luajit-devel >= 2.0.4
BuildRequires:	openssl-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Project zimg is a light image storage and processing system. It's
written by C and it has high performance in image field. The zimg is
designed for high concurrency image server. It supports many features
for storing and processing images.  

%description -l pl.UTF-8
Projekt zimg to lekki system do przechowywania i przetwarzania
obrazów. Jest napisany w C ze zwróceniem uwagi na wysoką wydajność.
Jest przeznaczony dla serwera obrazów o dużym zrównolegleniu.
Obsługuje wiele opcji do przechowywania i przetwarzania obrazów.

%prep
%setup -q -n zimg-%{version}
%patch0 -p1

%build
install -d build
cd build
%cmake ../src
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}

install build/zimg $RPM_BUILD_ROOT%{_bindir}/zimg

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc LICENSE README.md
%attr(755,root,root) %{_bindir}/zimg