packages: epsilon-compressor/epsilon-compressor.spec (NEW), epsilon-compres...
qboosh
qboosh at pld-linux.org
Fri Feb 3 19:27:16 CET 2012
Author: qboosh Date: Fri Feb 3 18:27:16 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/epsilon-compressor:
epsilon-compressor.spec (NONE -> 1.1) (NEW), epsilon-link.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/epsilon-compressor/epsilon-compressor.spec
diff -u /dev/null packages/epsilon-compressor/epsilon-compressor.spec:1.1
--- /dev/null Fri Feb 3 19:27:16 2012
+++ packages/epsilon-compressor/epsilon-compressor.spec Fri Feb 3 19:27:11 2012
@@ -0,0 +1,142 @@
+# $Revision$, $Date$
+# NOTE: package name is epsilon, but:
+# - it's somehow common name
+# - it was already occupied by (obsolete now) epsilon library from Enlightenment project
+# so let's use more specific package name.
+# TODO: MPI support
+#
+# Conditional build:
+%bcond_without apidocs # do not build and package API docs
+#
+Summary: EPSILON - powerful Open Source wavelet compressor
+Summary(pl.UTF-8): EPSILON - potężny kompresor falkowy o otwartych źródłach
+Name: epsilon-compressor
+Version: 0.9.2
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: http://downloads.sourceforge.net/epsilon-project/epsilon-%{version}.tar.gz
+# Source0-md5: 56d7f1a41e05be20441728d9e20d22ef
+Source1: http://downloads.sourceforge.net/epsilon-project/refman-%{version}.tar.gz
+# Source1-md5: 953a9e86cfb7435db24ebe5c0c6b1837
+Patch0: epsilon-link.patch
+URL: http://sourceforge.net/projects/epsilon-project/
+BuildRequires: autoconf
+BuildRequires: automake >= 1.4
+BuildRequires: libtool
+BuildRequires: popt-devel
+Conflicts: epsilon
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+EPSILON is a powerful OpenSource wavelet image compressor.
+Wavelet-driven compressors are know to be much more effective than
+traditional DCT-based ones (like JPEG). At the moment, the program
+supports 30+ different wavelet filters, runs in parallel in
+multi-threaded and MPI environments, can process HUGE images and much
+more!
+
+%description -l pl.UTF-8
+EPSILON to potężny kompresor falkowy dla obrazów, mający otwarte
+źródła. Kompresory falkowe są zwykle o wiele bardziej efektywne od
+tradycyjnych, opartych na dyskretnej transformacie cosinusowej (DCT),
+takich jak JPEG. Obecnie program obsługuje ponad 30 różnych filtrów
+falkowych, działa równolegle w środowisku wielowątkowym oraz MPI i
+potrafi przetwarzać OGROMNE obrazy.
+
+%package devel
+Summary: Header files for EPSILON library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki EPSILON
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Conflicts: epsilon-devel
+
+%description devel
+Header files for EPSILON library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki EPSILON.
+
+%package static
+Summary: Static EPSILON library
+Summary(pl.UTF-8): Statyczna biblioteka EPSILON
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Conflicts: epsilon-static
+
+%description static
+Static EPSILON library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka EPSILON.
+
+%package apidocs
+Summary: EPSILON API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki EPSILON
+Group: Documentation
+
+%description apidocs
+API and internal documentation for EPSILON library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki EPSILON.
+
+%prep
+%setup -q -n epsilon-%{version} -a1
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --enable-pthreads
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CONTRIBUTORS ChangeLog NEWS README README.cluster README.mpich TODO
+%attr(755,root,root) %{_bindir}/epsilon
+%attr(755,root,root) %{_bindir}/start_epsilon_nodes.pl
+%attr(755,root,root) %{_bindir}/stop_epsilon_nodes.pl
+%attr(755,root,root) %{_libdir}/libepsilon.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libepsilon.so.1
+%{_mandir}/man1/epsilon.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libepsilon.so
+%{_libdir}/libepsilon.la
+%{_includedir}/epsilon.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libepsilon.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc html/*
+
+%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/02/03 18:27:11 qboosh
+- new
================================================================
Index: packages/epsilon-compressor/epsilon-link.patch
diff -u /dev/null packages/epsilon-compressor/epsilon-link.patch:1.1
--- /dev/null Fri Feb 3 19:27:17 2012
+++ packages/epsilon-compressor/epsilon-link.patch Fri Feb 3 19:27:11 2012
@@ -0,0 +1,43 @@
+--- epsilon-0.9.2/configure.in.orig 2011-05-27 12:47:34.000000000 +0200
++++ epsilon-0.9.2/configure.in 2012-02-03 19:00:24.215650540 +0100
+@@ -31,7 +31,8 @@
+ AC_CHECK_LIB([popt], [poptGetContext], [have_popt_lib=yes], ,)
+
+ if test x$have_popt_h = xyes -a x$have_popt_lib = xyes ; then
+- LIBS="$LIBS -lpopt"
++ POPT_LIBS="-lpopt"
++ AC_SUBST([POPT_LIBS])
+ else
+ AC_MSG_ERROR([
+ =================================================
+@@ -56,7 +56,8 @@
+ AC_CHECK_LIB([pthread], [pthread_create], [have_pthread_lib=yes], ,)
+
+ if test x$have_pthread_h = xyes -a x$have_pthread_lib = xyes ; then
+- LIBS="$LIBS -lpthread"
++ THREAD_LIBS="-lpthread"
++ AC_SUBST([THREAD_LIBS])
+ AC_DEFINE([ENABLE_PTHREADS], [1],)
+ else
+ AC_MSG_ERROR([
+@@ -122,7 +123,8 @@
+ AC_CHECK_LIB([pthread], [pthread_create], [have_pthread_lib=yes], ,)
+
+ if test x$have_pthread_h = xyes -a x$have_pthread_lib = xyes ; then
+- LIBS="$LIBS -lpthread"
++ THREAD_LIBS="-lpthread"
++ AC_SUBST([THREAD_LIBS])
+ AC_DEFINE([ENABLE_PTHREADS], [1],)
+ else
+ AC_MSG_ERROR([
+--- epsilon-0.9.2/src/Makefile.am.orig 2010-04-05 07:01:04.000000000 +0200
++++ epsilon-0.9.2/src/Makefile.am 2012-02-03 19:07:50.418998813 +0100
+@@ -8,7 +8,7 @@
+
+ # the library search path.
+ epsilon_LDFLAGS = $(all_libraries)
+-epsilon_LDADD = $(top_builddir)/lib/libepsilon.la
++epsilon_LDADD = $(top_builddir)/lib/libepsilon.la $(POPT_LIBS) $(THREAD_LIBS)
+ noinst_HEADERS = pbm.h options.h cmd_version.h cmd_list_all_fb.h \
+ cmd_encode_file.h psi.h misc.h cmd_decode_file.h cmd_truncate_file.h cmd_start_node.h \
+ worker_mpi_node.h epsilon_version.h
================================================================
More information about the pld-cvs-commit
mailing list