- updated to 1.14.0
[packages/mupdf.git] / mupdf.spec
CommitLineData
69d32f06 1Summary: MuPDF - lightweight PDF, XPS and CBZ viewer and parser/rendering library
0845671b 2Summary(pl.UTF-8): MuPDF - lekka przeglądarka PDF, XPS, CBZ
69d32f06 3Name: mupdf
6e4f486a
JB
4Version: 1.14.0
5Release: 1
f735ca81
JB
6License: AGPL v3+
7Group: Applications/Text
6e4f486a
JB
8Source0: https://www.mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
9# Source0-md5: 98adc2f430cc7900397ab50a478485c5
10URL: https://www.mupdf.com/
f81d51d1 11BuildRequires: OpenGL-glut-devel
6e4f486a
JB
12BuildRequires: curl-devel >= 7.51.0
13BuildRequires: freetype-devel >= 1:2.9.1
14BuildRequires: harfbuzz-devel >= 1.9.0
15BuildRequires: jbig2dec-devel >= 0.14
69d32f06 16BuildRequires: libjpeg-devel
f735ca81 17BuildRequires: libstdc++-devel
0845671b 18BuildRequires: mujs-devel >= 1.0.4
6e4f486a
JB
19BuildRequires: openjpeg2-devel >= 2.3.0
20BuildRequires: openssl-devel >= 1.1.0
69d32f06 21BuildRequires: pkgconfig
69d32f06
JB
22BuildRequires: xorg-lib-libX11-devel
23BuildRequires: xorg-lib-libXext-devel
6e4f486a
JB
24BuildRequires: zlib-devel >= 1.2.11
25Requires: curl-libs-devel >= 7.51.0
26Requires: freetype >= 1:2.9.1
27Requires: harfbuzz >= 1.9.0
28Requires: jbig2dec >= 0.14
29Requires: openjpeg2 >= 2.3.0
30Requires: zlib >= 1.2.11
31Obsoletes: mupdf-devel < 1.13.0
32Obsoletes: mupdf-libs < 1.13.0
33Obsoletes: mupdf-static < 1.13.0
69d32f06
JB
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
0845671b 37MuPDF is a lightweight PDF, XPS and CBZ viewer.
69d32f06
JB
38
39%description -l pl.UTF-8
0845671b 40MuPDF to lekka przeglądarka pliki PDF, XPS i CBZ.
69d32f06
JB
41
42%prep
43%setup -q -n %{name}-%{version}-source
69d32f06 44
6e4f486a
JB
45# use system libs instead:
46# curl 7.51.0
47# freetype 2.9.1
48# harfbuzz 1.9.0 + git update (nothing crucial)
49# jbig2dec 0.14
50# libjpeg 9
51# mujs ?
52# openjpeg 2.3.0
53# zlib 1.2.11
0845671b 54%{__rm} -r thirdparty/{curl,freetype,jbig2dec,libjpeg,mujs,openjpeg,zlib}
6e4f486a
JB
55# but keep:
56# freeglut - 3.0.0 + some additional keyboard and clipboard APIs
57# lcms2 - "art" fork with tread safety
69d32f06
JB
58
59%build
60CFLAGS="%{rpmcflags} %{rpmcppflags}" \
f735ca81 61LDFLAGS="%{rpmldflags}" \
73677cf1 62%{__make} -j1 \
69d32f06 63 CC="%{__cc}" \
f735ca81 64 CXX="%{__cxx}" \
7f62b790 65 SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
6e4f486a
JB
66 USE_SYSTEM_LIBS=yes \
67 USE_SYSTEM_MUJS=yes \
80c18e69 68 build=release \
f735ca81 69 libdir=%{_libdir} \
0845671b 70 verbose=yes
69d32f06
JB
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT \
6e4f486a
JB
77 USE_SYSTEM_LIBS=yes \
78 USE_SYSTEM_MUJS=yes \
69d32f06
JB
79 build=release \
80 prefix=%{_prefix} \
81 libdir=%{_libdir}
82
83# packaged as %doc
84%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mupdf
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
69d32f06
JB
89%files
90%defattr(644,root,root,755)
91%doc CHANGES CONTRIBUTORS README
0845671b 92%attr(755,root,root) %{_bindir}/mupdf-gl
69d32f06 93%attr(755,root,root) %{_bindir}/mupdf-x11
69d32f06 94%attr(755,root,root) %{_bindir}/mutool
69d32f06
JB
95%{_mandir}/man1/mupdf.1*
96%{_mandir}/man1/mutool.1*
This page took 0.078711 seconds and 4 git commands to generate.