]> git.pld-linux.org Git - packages/jasper.git/blame - jasper.spec
- updated to 3.0.6 (new soname)
[packages/jasper.git] / jasper.spec
CommitLineData
f3cb6a5f
JK
1#
2# Conditional build:
da63018c 3%bcond_without opengl # (OpenGL-based) jiv viewer
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
da63018c 8Version: 3.0.6
dff7913f 9Release: 1
1c599ece 10Epoch: 0
da63018c 11License: JasPer v2.0 (BSD-like)
7768c950 12Group: Libraries
95bac40e
JB
13#Source0Download: https://github.com/jasper-software/jasper/releases
14Source0: https://github.com/jasper-software/jasper/releases/download/version-%{version}/%{name}-%{version}.tar.gz
da63018c 15# Source0-md5: f9388d52a6220303141a42d4c2c81e62
95bac40e 16URL: https://www.ece.uvic.ca/~frodo/jasper/
d1796761 17%{?with_opengl:BuildRequires: OpenGL-glut-devel}
fc2e7f66
JB
18BuildRequires: cmake >= 2.8.11
19BuildRequires: doxygen
20BuildRequires: gcc >= 6:4.7
7768c950 21BuildRequires: libjpeg-devel
939fb3b8 22BuildRequires: tex-latex-adjustbox
fc2e7f66 23BuildRequires: texlive-format-pdflatex
b7de025b
JB
24BuildRequires: texlive-latex-ams
25BuildRequires: texlive-latex-extend
26BuildRequires: texlive-latex-wasysym
939fb3b8 27BuildRequires: texlive-tex-xkeyval
337b191e 28BuildRequires: texlive-xetex
64d6044f 29BuildRequires: unzip
1c599ece 30Requires: %{name}-libs = %{epoch}:%{version}-%{release}
7768c950
JB
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34JasPer is a collection of software (i.e., a library and application
35programs) for the coding and manipulation of images. This software can
36handle image data in a variety of formats. One such format supported
37by JasPer is the JPEG-2000 code stream format defined in ISO/IEC
3815444-1:2000 (but JasPer contains only partial implementation).
39
b22e6f4e 40%description -l pl.UTF-8
7768c950 41JasPer to zestaw oprogramowania (biblioteka i aplikacje) do kodowania
b22e6f4e
JR
42i obróbki obrazków w różnych formatach. Jednym z nich jest JPEG-2000
43zdefiniowany w ISO/IEC 15444-1:2000 (JasPer zawiera tylko częściową
44implementację tego formatu).
7768c950 45
4990e813
JB
46%package libs
47Summary: JasPer library
f114b46e 48Summary(pl.UTF-8): Biblioteka JasPer
4990e813
JB
49Group: Libraries
50
51%description libs
52JasPer library.
53
b22e6f4e 54%description libs -l pl.UTF-8
4990e813
JB
55Biblioteka JasPer.
56
7768c950
JB
57%package devel
58Summary: JasPer - header files
f114b46e 59Summary(pl.UTF-8): JasPer - pliki nagłówkowe
7768c950 60Group: Development/Libraries
1c599ece 61Requires: %{name}-libs = %{epoch}:%{version}-%{release}
93db89bb 62Requires: libjpeg-devel
91ca937c 63Obsoletes: jasper-static < 2
7768c950
JB
64
65%description devel
66Header files needed to compile programs with libjasper.
67
b22e6f4e
JR
68%description devel -l pl.UTF-8
69Pliki nagłówkowe potrzebne do konsolidacji z libjasper.
7768c950 70
3323487f
JB
71%package jiv
72Summary: JasPer Image Viewer
f114b46e 73Summary(pl.UTF-8): Przeglądarka obrazków JasPer
3323487f 74Group: X11/Applications/Graphics
1c599ece 75Requires: %{name} = %{epoch}:%{version}-%{release}
3323487f
JB
76
77%description jiv
78Simple JasPer Image Viewer. Basic pan and zoom functionality is
79provided. Components of an image may be viewed individually. Color
80components may also be viewed together as a composite image. At
81present, the jiv image viewer has only trivial support for color. It
82recognizes RGB and YCbCr color spaces, but does not use tone
83reproduction curves and the like in order to accurately reproduce
84color. For basic testing purposes, however, the color reproduction
85should suffice.
86
b22e6f4e
JR
87%description jiv -l pl.UTF-8
88Prosta przeglądarka obrazków JasPer. Ma podstawową funkcjonalność
89przewijania i powiększania. Poszczególne składniki obrazka mogą być
90oglądane oddzielnie. Składowe kolory mogą być oglądane także razem,
91jako złożony obraz. Aktualnie przeglądarka ma tylko prostą obsługę
92koloru. Rozpoznaje przestrzenie RGB i YCbCr, ale nie używa krzywych
93reprodukcji tonalnej i podobnych rzeczy mających za zadanie dokładne
94odwzorowanie koloru. Do podstawowych celów testowych taka obsługa
95koloró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
102install -d builddir
103cd 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
114rm -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
123rm -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
This page took 0.144537 seconds and 4 git commands to generate.