[packages/zimg-storage] - initial
qboosh
qboosh at pld-linux.org
Wed Feb 24 18:17:15 CET 2016
commit b62b66be06f6aed5130839455a9d71aa4d0d7d51
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Feb 24 18:20:23 2016 +0100
- initial
zimg-storage.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
zimg-system-lua.patch | 21 +++++++++++++++++
2 files changed, 86 insertions(+)
---
diff --git a/zimg-storage.spec b/zimg-storage.spec
new file mode 100644
index 0000000..15210bc
--- /dev/null
+++ b/zimg-storage.spec
@@ -0,0 +1,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
diff --git a/zimg-system-lua.patch b/zimg-system-lua.patch
new file mode 100644
index 0000000..bd80254
--- /dev/null
+++ b/zimg-system-lua.patch
@@ -0,0 +1,21 @@
+--- zimg-3.1.0/src/CMakeLists.txt.orig 2014-09-08 17:29:15.000000000 +0200
++++ zimg-3.1.0/src/CMakeLists.txt 2016-02-23 16:52:13.753332122 +0100
+@@ -82,8 +82,8 @@
+ set (DEPS_SOURCE_DIR "${PROJECT_SOURCE_DIR}/../deps")
+ include_directories(${DEPS_SOURCE_DIR})
+
+-set (LUAJIT_INCLUDE_DIR ${DEPS_SOURCE_DIR}/LuaJIT-2.0.3/src)
+-set (LUAJIT_LIBRARIES ${DEPS_SOURCE_DIR}/LuaJIT-2.0.3/src/libluajit.a)
++set (LUAJIT_INCLUDE_DIR "/usr/include/luajit-2.0" CACHE STRING "Lua include dir")
++set (LUAJIT_LIBRARIES "luajit-5.1" CACHE STRING "Lua library")
+
+ #set (ImageMagick_INCLUDE_DIRS "/Users/zippo/develop/linuxc/imagemagick-src")
+ #set (ImageMagick_MagickCore_LIBRARY "/Users/zippo/develop/linuxc/imagemagick-src/magick/.libs/libMagickCore-Q16.a")
+@@ -149,7 +149,6 @@
+ message("Build Type: ${CMAKE_BUILD_TYPE}")
+ message("Std CFLAGS: ${CMAKE_C_FLAGS}")
+
+-link_directories("/usr/lib" "/usr/local/lib")
+ add_executable(zimg ${SOURCES})
+ target_link_libraries(zimg ${ZIMG_EXTERNAL_LIBS})
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zimg-storage.git/commitdiff/b62b66be06f6aed5130839455a9d71aa4d0d7d51
More information about the pld-cvs-commit
mailing list