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