packages: openjpip/openjpip-opt.patch (NEW), openjpip/openjpip.spec (NEW) -...

qboosh qboosh at pld-linux.org
Sat Jan 21 17:23:03 CET 2012


Author: qboosh                       Date: Sat Jan 21 16:23:03 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/openjpip:
   openjpip-opt.patch (NONE -> 1.1)  (NEW), openjpip.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/openjpip/openjpip-opt.patch
diff -u /dev/null packages/openjpip/openjpip-opt.patch:1.1
--- /dev/null	Sat Jan 21 17:23:03 2012
+++ packages/openjpip/openjpip-opt.patch	Sat Jan 21 17:22:58 2012
@@ -0,0 +1,55 @@
+--- openjpip_v1_0/libopenjpip/comMakefile.mk.orig	2011-04-14 17:37:18.000000000 +0200
++++ openjpip_v1_0/libopenjpip/comMakefile.mk	2012-01-21 15:59:53.894345704 +0100
+@@ -1,8 +1,9 @@
++OPTFLAGS=-O3
+ ifdef jpipserver
+-CFLAGS  = -O3 -Wall -std=c99 -pedantic -m32 -DSERVER
++CFLAGS  = $(OPTFLAGS) -Wall -std=c99 -pedantic -DSERVER
+ LIBNAME = libopenjpip_server.a
+ else
+-CFLAGS  = -O3 -Wall -std=c99 -pedantic
++CFLAGS  = $(OPTFLAGS) -Wall -std=c99 -pedantic
+ LIBNAME = libopenjpip_local.a
+ endif
+ 
+--- openjpip_v1_0/opj_server/Makefile.orig	2011-04-14 17:37:18.000000000 +0200
++++ openjpip_v1_0/opj_server/Makefile	2012-01-21 16:03:44.497686758 +0100
+@@ -1,6 +1,6 @@
+ LIBDIR = ../libopenjpip
+ LIBFNAME = $(LIBDIR)/libopenjpip_server.a
+-CFLAGS  = -O3 -Wall -std=c99 -pedantic -m32 -DSERVER -I$(LIBDIR)
++CFLAGS  = $(OPTFLAGS) -Wall -std=c99 -pedantic -DSERVER -I$(LIBDIR)
+ LDFLAGS = -L$(LIBDIR) -lm -lfcgi -lopenjpip_server
+ 
+ ALL = opj_server
+--- openjpip_v1_0/opj_client/opj_dec_server/Makefile.orig	2011-04-14 17:39:48.000000000 +0200
++++ openjpip_v1_0/opj_client/opj_dec_server/Makefile	2012-01-21 16:13:20.464372710 +0100
+@@ -1,6 +1,6 @@
+ LIBDIR = ../../libopenjpip
+ LIBFNAME = $(LIBDIR)/libopenjpip_local.a
+-CFLAGS  = -O3 -Wall -std=c99 -pedantic -I$(LIBDIR)
++CFLAGS  = $(OPTFLAGS) -Wall -std=c99 -pedantic -I$(LIBDIR)
+ LDFLAGS = -L$(LIBDIR) -lm -lopenjpeg -lopenjpip_local
+ 
+ 
+--- openjpip_v1_0/tools/Makefile.orig	2011-04-14 18:05:49.000000000 +0200
++++ openjpip_v1_0/tools/Makefile	2012-01-21 16:57:32.887794856 +0100
+@@ -1,6 +1,6 @@
+ LIBDIR = ../libopenjpip
+ LIBFNAME = $(LIBDIR)/libopenjpip_local.a
+-CFLAGS  = -O3 -Wall -std=c99 -pedantic -I$(LIBDIR)
++CFLAGS  = $(OPTFLAGS) -Wall -std=c99 -pedantic -I$(LIBDIR)
+ LDFLAGS = -L$(LIBDIR) -lm -lopenjpip_local
+ 
+ ALL = jpt_to_jp2 jpt_to_j2k test_index addXMLinJP2
+--- openjpip_v1_0/tools/indexer/Makefile.orig	2011-02-18 18:58:16.000000000 +0100
++++ openjpip_v1_0/tools/indexer/Makefile	2012-01-21 16:58:05.014462598 +0100
+@@ -1,7 +1,7 @@
+ CC = gcc
+ 
+ LDFLAGS = -lm
+-CFLAGS = -Wall
++CFLAGS = $(OPTFLAGS) -Wall
+ 
+ all: index_create
+ 

================================================================
Index: packages/openjpip/openjpip.spec
diff -u /dev/null packages/openjpip/openjpip.spec:1.1
--- /dev/null	Sat Jan 21 17:23:03 2012
+++ packages/openjpip/openjpip.spec	Sat Jan 21 17:22:58 2012
@@ -0,0 +1,99 @@
+# $Revision$, $Date$
+# TODO:
+# - opj_viewer (Java-based, requires xerces-j)
+# - FCGI configuration for web server
+# - library and headers?
+%define fver    %(echo %{version} | tr . _)
+Summary:	OpenJPIP - implementation of JPEG 2000 Part 9: Interactivity tools, APIs and protocols
+Summary(pl.UTF-8):	OpenJPIP - implementacja JPEG 2000 Part 9: narzędzia, API i protokoły interaktywne
+Name:		openjpip
+Version:	1.0.1
+Release:	0.1
+License:	BSD
+Group:		Libraries
+#Source0Download: http://code.google.com/p/openjpeg/downloads/list
+Source0:	http://openjpeg.googlecode.com/files/%{name}_v%{fver}.tar.gz
+# Source0-md5:	04a651a01341302f66ff987dbba24f4a
+Patch0:		%{name}-opt.patch
+URL:		http://www.openjpeg.org/
+BuildRequires:	fcgi-devel
+BuildRequires:	openjpeg-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenJPIP software is an implementation of JPEG 2000 Part 9:
+Interactivity tools, APIs and protocols (JPIP).
+
+For more info about JPIP, check the website:
+<http://www.jpeg.org/jpeg2000/j2kpart9.html>.
+The current implementation uses some results from the 2KAN project:
+<http://www.2kan.org/>.
+
+First Version 1.0 covers:
+ - JPT-stream (Tile based) media types
+ - Session, channels, cache model managements
+ - JPIP over HTTP
+ - Indexing JPEG 2000 files
+ - Embedding XML formatted metadata
+ - Region Of Interest (ROI) requests
+
+%description -l pl.UTF-8
+OpenJPIP to implementacja JPEG 2000 Part 9, czyli narzędzi, API i
+protokołów interaktywnych (JPIP).
+
+Więcej informacji o JPIP można znaleźć na stronie:
+<http://www.jpeg.org/jpeg2000/j2kpart9.html>.
+Obecna implementacja wykorzystuje część pracy projektu 2KAN:
+<http://www.2kan.org/>.
+
+Wersja 1.0 pokrywa:
+ - strumienie JPT (oparte na kaflach)
+ - zarządzanie sesjami, kanałami, pamięcią podręczną
+ - JPIP po HTTP
+ - indeksowanie plików JPEG 2000
+ - osadzanie metadanych w formacie XML
+ - żądania ROI (Region Of Interest)
+
+%prep
+%setup -q -n %{name}_v1_0
+%patch0 -p1
+
+%build
+%{__make} -j1 \
+	CC="%{__cc}" \
+	OPTFLAGS="%{rpmcflags}" \
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/fastcgi"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+install opj_server/opj_server $RPM_BUILD_ROOT%{_bindir}
+install opj_client/opj_dec_server/opj_dec_server $RPM_BUILD_ROOT%{_bindir}
+install tools/{addXMLinJP2,jpt_to_j2k,jpt_to_jp2} $RPM_BUILD_ROOT%{_bindir}
+install tools/indexer/index_create $RPM_BUILD_ROOT%{_bindir}/opj_index_create
+# TODO: opj_client/opj_viewer (Java)
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README doc/jpip_protocol.png
+%attr(755,root,root) %{_bindir}/addXMLinJP2
+%attr(755,root,root) %{_bindir}/jpt_to_j2k
+%attr(755,root,root) %{_bindir}/jpt_to_jp2
+%attr(755,root,root) %{_bindir}/opj_dec_server
+%attr(755,root,root) %{_bindir}/opj_index_create
+%attr(755,root,root) %{_bindir}/opj_server
+
+# TODO: libs and headers?
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/21 16:22:58  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list