]>
Commit | Line | Data |
---|---|---|
f3cb6a5f JK |
1 | # |
2 | # Conditional build: | |
05318357 | 3 | %bcond_without opengl # don't build (OpenGL-based) jiv |
f3cb6a5f | 4 | # |
7768c950 | 5 | Summary: JasPer - collection of software for coding and manipulation of images |
f114b46e | 6 | Summary(pl.UTF-8): JasPer - zestaw oprogramowania do obróbki obrazków |
7768c950 | 7 | Name: jasper |
e77c3fad | 8 | Version: 1.900.1 |
49ac8c7f | 9 | Release: 3 |
1c599ece | 10 | Epoch: 0 |
7768c950 JB |
11 | License: BSD-like |
12 | Group: Libraries | |
e4872c90 | 13 | Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/%{name}-%{version}.zip |
e77c3fad | 14 | # Source0-md5: a342b2b4495b3e1394e161eb5d85d754 |
e4872c90 | 15 | URL: http://www.ece.uvic.ca/~mdadams/jasper/ |
a800fa2d | 16 | %{?with_opengl:BuildRequires: OpenGL-glut-devel >= 4.0} |
05318357 | 17 | BuildRequires: autoconf >= 2.59-9 |
146cb403 | 18 | BuildRequires: automake |
7768c950 | 19 | BuildRequires: libjpeg-devel |
23b36aeb | 20 | BuildRequires: libtool |
c94588b0 | 21 | BuildRequires: sed >= 4.0 |
64d6044f | 22 | BuildRequires: unzip |
1c599ece | 23 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
a800fa2d | 24 | %{?with_opengl:Requires: OpenGL-glut >= 4.0} |
7768c950 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | JasPer is a collection of software (i.e., a library and application | |
29 | programs) for the coding and manipulation of images. This software can | |
30 | handle image data in a variety of formats. One such format supported | |
31 | by JasPer is the JPEG-2000 code stream format defined in ISO/IEC | |
32 | 15444-1:2000 (but JasPer contains only partial implementation). | |
33 | ||
b22e6f4e | 34 | %description -l pl.UTF-8 |
7768c950 | 35 | JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania |
b22e6f4e JR |
36 | i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000 |
37 | zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową | |
38 | implementację tego formatu). | |
7768c950 | 39 | |
4990e813 JB |
40 | %package libs |
41 | Summary: JasPer library | |
f114b46e | 42 | Summary(pl.UTF-8): Biblioteka JasPer |
4990e813 JB |
43 | Group: Libraries |
44 | ||
45 | %description libs | |
46 | JasPer library. | |
47 | ||
b22e6f4e | 48 | %description libs -l pl.UTF-8 |
4990e813 JB |
49 | Biblioteka JasPer. |
50 | ||
7768c950 JB |
51 | %package devel |
52 | Summary: JasPer - header files | |
f114b46e | 53 | Summary(pl.UTF-8): JasPer - pliki nagłówkowe |
7768c950 | 54 | Group: Development/Libraries |
1c599ece | 55 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
93db89bb | 56 | Requires: libjpeg-devel |
7768c950 JB |
57 | |
58 | %description devel | |
59 | Header files needed to compile programs with libjasper. | |
60 | ||
b22e6f4e JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe potrzebne do konsolidacji z libjasper. | |
7768c950 JB |
63 | |
64 | %package static | |
65 | Summary: JasPer - static library | |
f114b46e | 66 | Summary(pl.UTF-8): JasPer - biblioteka statyczna |
7768c950 | 67 | Group: Development/Libraries |
1c599ece | 68 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7768c950 JB |
69 | |
70 | %description static | |
3e4cf843 | 71 | Static version of libjasper. |
7768c950 | 72 | |
b22e6f4e | 73 | %description static -l pl.UTF-8 |
7768c950 JB |
74 | Statyczna biblioteka libjasper. |
75 | ||
3323487f JB |
76 | %package jiv |
77 | Summary: JasPer Image Viewer | |
f114b46e | 78 | Summary(pl.UTF-8): Przeglądarka obrazków JasPer |
3323487f | 79 | Group: X11/Applications/Graphics |
1c599ece | 80 | Requires: %{name} = %{epoch}:%{version}-%{release} |
3323487f JB |
81 | |
82 | %description jiv | |
83 | Simple JasPer Image Viewer. Basic pan and zoom functionality is | |
84 | provided. Components of an image may be viewed individually. Color | |
85 | components may also be viewed together as a composite image. At | |
86 | present, the jiv image viewer has only trivial support for color. It | |
87 | recognizes RGB and YCbCr color spaces, but does not use tone | |
88 | reproduction curves and the like in order to accurately reproduce | |
89 | color. For basic testing purposes, however, the color reproduction | |
90 | should suffice. | |
91 | ||
b22e6f4e JR |
92 | %description jiv -l pl.UTF-8 |
93 | Prosta przeglądarka obrazków JasPer. Ma podstawową funkcjonalność | |
94 | przewijania i powiększania. Poszczególne składniki obrazka mogą być | |
95 | oglądane oddzielnie. Składowe kolory mogą być oglądane także razem, | |
96 | jako złożony obraz. Aktualnie przeglądarka ma tylko prostą obsługę | |
97 | koloru. Rozpoznaje przestrzenie RGB i YCbCr, ale nie używa krzywych | |
98 | reprodukcji tonalnej i podobnych rzeczy mających za zadanie dokładne | |
99 | odwzorowanie koloru. Do podstawowych celów testowych taka obsługa | |
100 | kolorów powinna jednak wystarczyć. | |
3323487f | 101 | |
7768c950 JB |
102 | %prep |
103 | %setup -q | |
c94588b0 | 104 | %{__sed} 's/ -lXmu -lXi -lXext -lXt / /' -i configure.ac |
7768c950 JB |
105 | |
106 | %build | |
23b36aeb JB |
107 | %{__libtoolize} |
108 | %{__aclocal} | |
494e470b | 109 | %{__autoconf} |
23b36aeb JB |
110 | %{__autoheader} |
111 | %{__automake} | |
7768c950 | 112 | %configure \ |
c94588b0 | 113 | %{!?with_opengl:--disable-opengl} \ |
23b36aeb | 114 | --enable-shared |
7768c950 JB |
115 | |
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
6cd178e4 JB |
121 | %{__make} install \ |
122 | DESTDIR=$RPM_BUILD_ROOT | |
7768c950 | 123 | |
05318357 JB |
124 | # nothing interesting |
125 | rm -f $RPM_BUILD_ROOT%{_bindir}/tmrdemo | |
126 | ||
7768c950 JB |
127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
1c599ece ER |
130 | %post libs -p /sbin/ldconfig |
131 | %postun libs -p /sbin/ldconfig | |
7768c950 JB |
132 | |
133 | %files | |
134 | %defattr(644,root,root,755) | |
05318357 | 135 | %doc LICENSE NEWS README doc/jasper.pdf doc/jpeg2000.pdf |
61c35653 JB |
136 | %attr(755,root,root) %{_bindir}/img* |
137 | %attr(755,root,root) %{_bindir}/jasper | |
05318357 JB |
138 | %{_mandir}/man1/img*.1* |
139 | %{_mandir}/man1/jasper.1* | |
7768c950 | 140 | |
4990e813 JB |
141 | %files libs |
142 | %defattr(644,root,root,755) | |
05318357 | 143 | %attr(755,root,root) %{_libdir}/libjasper.so.*.*.* |
c94588b0 | 144 | %attr(755,root,root) %ghost %{_libdir}/libjasper.so.1 |
4990e813 | 145 | |
7768c950 JB |
146 | %files devel |
147 | %defattr(644,root,root,755) | |
05318357 JB |
148 | %attr(755,root,root) %{_libdir}/libjasper.so |
149 | %{_libdir}/libjasper.la | |
7768c950 JB |
150 | %{_includedir}/jasper |
151 | ||
152 | %files static | |
153 | %defattr(644,root,root,755) | |
05318357 | 154 | %{_libdir}/libjasper.a |
3323487f | 155 | |
f3cb6a5f | 156 | %if %{with opengl} |
6cd178e4 JB |
157 | %files jiv |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_bindir}/jiv | |
05318357 | 160 | %{_mandir}/man1/jiv.1* |
f3cb6a5f | 161 | %endif |