]>
Commit | Line | Data |
---|---|---|
f3cb6a5f JK |
1 | # |
2 | # Conditional build: | |
da63018c | 3 | %bcond_without opengl # (OpenGL-based) jiv viewer |
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 |
da63018c | 8 | Version: 3.0.6 |
dff7913f | 9 | Release: 1 |
1c599ece | 10 | Epoch: 0 |
da63018c | 11 | License: JasPer v2.0 (BSD-like) |
7768c950 | 12 | Group: Libraries |
95bac40e JB |
13 | #Source0Download: https://github.com/jasper-software/jasper/releases |
14 | Source0: https://github.com/jasper-software/jasper/releases/download/version-%{version}/%{name}-%{version}.tar.gz | |
da63018c | 15 | # Source0-md5: f9388d52a6220303141a42d4c2c81e62 |
95bac40e | 16 | URL: https://www.ece.uvic.ca/~frodo/jasper/ |
d1796761 | 17 | %{?with_opengl:BuildRequires: OpenGL-glut-devel} |
fc2e7f66 JB |
18 | BuildRequires: cmake >= 2.8.11 |
19 | BuildRequires: doxygen | |
20 | BuildRequires: gcc >= 6:4.7 | |
7768c950 | 21 | BuildRequires: libjpeg-devel |
939fb3b8 | 22 | BuildRequires: tex-latex-adjustbox |
fc2e7f66 | 23 | BuildRequires: texlive-format-pdflatex |
b7de025b JB |
24 | BuildRequires: texlive-latex-ams |
25 | BuildRequires: texlive-latex-extend | |
26 | BuildRequires: texlive-latex-wasysym | |
939fb3b8 | 27 | BuildRequires: texlive-tex-xkeyval |
337b191e | 28 | BuildRequires: texlive-xetex |
64d6044f | 29 | BuildRequires: unzip |
1c599ece | 30 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
7768c950 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | JasPer is a collection of software (i.e., a library and application | |
35 | programs) for the coding and manipulation of images. This software can | |
36 | handle image data in a variety of formats. One such format supported | |
37 | by JasPer is the JPEG-2000 code stream format defined in ISO/IEC | |
38 | 15444-1:2000 (but JasPer contains only partial implementation). | |
39 | ||
b22e6f4e | 40 | %description -l pl.UTF-8 |
7768c950 | 41 | JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania |
b22e6f4e JR |
42 | i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000 |
43 | zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową | |
44 | implementację tego formatu). | |
7768c950 | 45 | |
4990e813 JB |
46 | %package libs |
47 | Summary: JasPer library | |
f114b46e | 48 | Summary(pl.UTF-8): Biblioteka JasPer |
4990e813 JB |
49 | Group: Libraries |
50 | ||
51 | %description libs | |
52 | JasPer library. | |
53 | ||
b22e6f4e | 54 | %description libs -l pl.UTF-8 |
4990e813 JB |
55 | Biblioteka JasPer. |
56 | ||
7768c950 JB |
57 | %package devel |
58 | Summary: JasPer - header files | |
f114b46e | 59 | Summary(pl.UTF-8): JasPer - pliki nagłówkowe |
7768c950 | 60 | Group: Development/Libraries |
1c599ece | 61 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
93db89bb | 62 | Requires: libjpeg-devel |
91ca937c | 63 | Obsoletes: jasper-static < 2 |
7768c950 JB |
64 | |
65 | %description devel | |
66 | Header files needed to compile programs with libjasper. | |
67 | ||
b22e6f4e JR |
68 | %description devel -l pl.UTF-8 |
69 | Pliki nagłówkowe potrzebne do konsolidacji z libjasper. | |
7768c950 | 70 | |
3323487f JB |
71 | %package jiv |
72 | Summary: JasPer Image Viewer | |
f114b46e | 73 | Summary(pl.UTF-8): Przeglądarka obrazków JasPer |
3323487f | 74 | Group: X11/Applications/Graphics |
1c599ece | 75 | Requires: %{name} = %{epoch}:%{version}-%{release} |
3323487f JB |
76 | |
77 | %description jiv | |
78 | Simple JasPer Image Viewer. Basic pan and zoom functionality is | |
79 | provided. Components of an image may be viewed individually. Color | |
80 | components may also be viewed together as a composite image. At | |
81 | present, the jiv image viewer has only trivial support for color. It | |
82 | recognizes RGB and YCbCr color spaces, but does not use tone | |
83 | reproduction curves and the like in order to accurately reproduce | |
84 | color. For basic testing purposes, however, the color reproduction | |
85 | should suffice. | |
86 | ||
b22e6f4e JR |
87 | %description jiv -l pl.UTF-8 |
88 | Prosta przeglądarka obrazków JasPer. Ma podstawową funkcjonalność | |
89 | przewijania i powiększania. Poszczególne składniki obrazka mogą być | |
90 | oglądane oddzielnie. Składowe kolory mogą być oglądane także razem, | |
91 | jako złożony obraz. Aktualnie przeglądarka ma tylko prostą obsługę | |
92 | koloru. Rozpoznaje przestrzenie RGB i YCbCr, ale nie używa krzywych | |
93 | reprodukcji tonalnej i podobnych rzeczy mających za zadanie dokładne | |
94 | odwzorowanie koloru. Do podstawowych celów testowych taka obsługa | |
95 | kolorów powinna jednak wystarczyć. | |
3323487f | 96 | |
7768c950 | 97 | %prep |
95bac40e | 98 | %setup -q |
7768c950 JB |
99 | |
100 | %build | |
fc2e7f66 JB |
101 | # there is upstream directory named "build", use different name |
102 | install -d builddir | |
103 | cd builddir | |
104 | # note: build/jasper.pc.in expects CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR relative to CMAKE_INSTALL_PREFIX | |
105 | %cmake .. \ | |
106 | -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \ | |
107 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ | |
f8326374 JB |
108 | -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF \ |
109 | -DJAS_ENABLE_OPENGL=ON | |
7768c950 JB |
110 | |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
fc2e7f66 | 116 | %{__make} -C builddir install \ |
6cd178e4 | 117 | DESTDIR=$RPM_BUILD_ROOT |
7768c950 | 118 | |
fc2e7f66 | 119 | # PDFs packaged as %doc, HTML redundant |
da63018c | 120 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{html,*.pdf,README.md} |
05318357 | 121 | |
7768c950 JB |
122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
1c599ece ER |
125 | %post libs -p /sbin/ldconfig |
126 | %postun libs -p /sbin/ldconfig | |
7768c950 JB |
127 | |
128 | %files | |
129 | %defattr(644,root,root,755) | |
da63018c JB |
130 | %attr(755,root,root) %{_bindir}/imgcmp |
131 | %attr(755,root,root) %{_bindir}/imginfo | |
61c35653 | 132 | %attr(755,root,root) %{_bindir}/jasper |
da63018c JB |
133 | %{_mandir}/man1/imgcmp.1* |
134 | %{_mandir}/man1/imginfo.1* | |
05318357 | 135 | %{_mandir}/man1/jasper.1* |
7768c950 | 136 | |
4990e813 JB |
137 | %files libs |
138 | %defattr(644,root,root,755) | |
da63018c | 139 | %doc ChangeLog LICENSE.txt NEWS.txt README.md doc/jpeg2000.pdf |
05318357 | 140 | %attr(755,root,root) %{_libdir}/libjasper.so.*.*.* |
da63018c | 141 | %attr(755,root,root) %ghost %{_libdir}/libjasper.so.6 |
4990e813 | 142 | |
7768c950 JB |
143 | %files devel |
144 | %defattr(644,root,root,755) | |
05318357 | 145 | %attr(755,root,root) %{_libdir}/libjasper.so |
7768c950 | 146 | %{_includedir}/jasper |
395bf30d | 147 | %{_pkgconfigdir}/jasper.pc |
7768c950 | 148 | |
f3cb6a5f | 149 | %if %{with opengl} |
6cd178e4 JB |
150 | %files jiv |
151 | %defattr(644,root,root,755) | |
152 | %attr(755,root,root) %{_bindir}/jiv | |
05318357 | 153 | %{_mandir}/man1/jiv.1* |
f3cb6a5f | 154 | %endif |