]>
Commit | Line | Data |
---|---|---|
7c9d78a2 JB |
1 | # NOTE: package name is epsilon, but: |
2 | # - it's somehow common name | |
3 | # - it was already occupied by (obsolete now) epsilon library from Enlightenment project | |
4 | # so let's use more specific package name. | |
5 | # TODO: MPI support | |
6 | # | |
7 | # Conditional build: | |
8 | %bcond_without apidocs # do not build and package API docs | |
ac802a76 | 9 | |
7c9d78a2 JB |
10 | Summary: EPSILON - powerful Open Source wavelet compressor |
11 | Summary(pl.UTF-8): EPSILON - potężny kompresor falkowy o otwartych źródłach | |
12 | Name: epsilon-compressor | |
13 | Version: 0.9.2 | |
a23f44a1 | 14 | Release: 3 |
7c9d78a2 JB |
15 | License: LGPL v3+ |
16 | Group: Libraries | |
17 | Source0: http://downloads.sourceforge.net/epsilon-project/epsilon-%{version}.tar.gz | |
18 | # Source0-md5: 56d7f1a41e05be20441728d9e20d22ef | |
19 | Source1: http://downloads.sourceforge.net/epsilon-project/refman-%{version}.tar.gz | |
20 | # Source1-md5: 953a9e86cfb7435db24ebe5c0c6b1837 | |
21 | Patch0: epsilon-link.patch | |
22 | URL: http://sourceforge.net/projects/epsilon-project/ | |
23 | BuildRequires: autoconf | |
24 | BuildRequires: automake >= 1.4 | |
25 | BuildRequires: libtool | |
26 | BuildRequires: popt-devel | |
27 | Conflicts: epsilon | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | EPSILON is a powerful OpenSource wavelet image compressor. | |
32 | Wavelet-driven compressors are know to be much more effective than | |
33 | traditional DCT-based ones (like JPEG). At the moment, the program | |
34 | supports 30+ different wavelet filters, runs in parallel in | |
35 | multi-threaded and MPI environments, can process HUGE images and much | |
36 | more! | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | EPSILON to potężny kompresor falkowy dla obrazów, mający otwarte | |
40 | źródła. Kompresory falkowe są zwykle o wiele bardziej efektywne od | |
41 | tradycyjnych, opartych na dyskretnej transformacie cosinusowej (DCT), | |
42 | takich jak JPEG. Obecnie program obsługuje ponad 30 różnych filtrów | |
43 | falkowych, działa równolegle w środowisku wielowątkowym oraz MPI i | |
44 | potrafi przetwarzać OGROMNE obrazy. | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for EPSILON library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki EPSILON | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Conflicts: epsilon-devel | |
52 | ||
53 | %description devel | |
54 | Header files for EPSILON library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki EPSILON. | |
58 | ||
59 | %package static | |
60 | Summary: Static EPSILON library | |
61 | Summary(pl.UTF-8): Statyczna biblioteka EPSILON | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | Conflicts: epsilon-static | |
65 | ||
66 | %description static | |
67 | Static EPSILON library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka EPSILON. | |
71 | ||
72 | %package apidocs | |
73 | Summary: EPSILON API documentation | |
74 | Summary(pl.UTF-8): Dokumentacja API biblioteki EPSILON | |
75 | Group: Documentation | |
ac802a76 | 76 | BuildArch: noarch |
7c9d78a2 JB |
77 | |
78 | %description apidocs | |
79 | API and internal documentation for EPSILON library. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API biblioteki EPSILON. | |
83 | ||
84 | %prep | |
85 | %setup -q -n epsilon-%{version} -a1 | |
86 | %patch0 -p1 | |
87 | ||
88 | %build | |
89 | %{__libtoolize} | |
90 | %{__aclocal} | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
94 | %configure \ | |
95 | --enable-pthreads | |
96 | ||
97 | %{__make} | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS CONTRIBUTORS ChangeLog NEWS README README.cluster README.mpich TODO | |
114 | %attr(755,root,root) %{_bindir}/epsilon | |
115 | %attr(755,root,root) %{_bindir}/start_epsilon_nodes.pl | |
116 | %attr(755,root,root) %{_bindir}/stop_epsilon_nodes.pl | |
117 | %attr(755,root,root) %{_libdir}/libepsilon.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libepsilon.so.1 | |
119 | %{_mandir}/man1/epsilon.1* | |
120 | ||
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_libdir}/libepsilon.so | |
124 | %{_libdir}/libepsilon.la | |
125 | %{_includedir}/epsilon.h | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libepsilon.a | |
130 | ||
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %doc html/* |