]> git.pld-linux.org Git - packages/epsilon-compressor.git/commitdiff
- new auto/th/epsilon-compressor-0_9_2-1 auto/ti/epsilon-compressor-0_9_2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 3 Feb 2012 18:27:11 +0000 (18:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    epsilon-compressor.spec -> 1.1
    epsilon-link.patch -> 1.1

epsilon-compressor.spec [new file with mode: 0644]
epsilon-link.patch [new file with mode: 0644]

diff --git a/epsilon-compressor.spec b/epsilon-compressor.spec
new file mode 100644 (file)
index 0000000..0d13543
--- /dev/null
@@ -0,0 +1,132 @@
+# 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/*
diff --git a/epsilon-link.patch b/epsilon-link.patch
new file mode 100644 (file)
index 0000000..6bdeeeb
--- /dev/null
@@ -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
This page took 0.054563 seconds and 4 git commands to generate.