- do not require obsolete package
[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
0845671b 4Version: 1.13.0
67eba3a3 5Release: 2
f735ca81
JB
6License: AGPL v3+
7Group: Applications/Text
6d5cd20c 8Source0: http://www.mupdf.com/downloads/%{name}-%{version}-source.tar.gz
0845671b 9# Source0-md5: 447bc5c3305efe9645e12fce759e0198
69d32f06 10URL: http://www.mupdf.com/
f81d51d1 11BuildRequires: OpenGL-glut-devel
69d32f06
JB
12BuildRequires: curl-devel
13BuildRequires: freetype-devel >= 2
f81d51d1 14BuildRequires: glfw-devel
69d32f06
JB
15BuildRequires: jbig2dec-devel
16BuildRequires: libjpeg-devel
f735ca81 17BuildRequires: libstdc++-devel
0845671b 18BuildRequires: mujs-devel >= 1.0.4
7f62b790 19BuildRequires: openjpeg2-devel >= 2.1.0
69d32f06
JB
20BuildRequires: openssl-devel
21BuildRequires: pkgconfig
69d32f06
JB
22BuildRequires: xorg-lib-libX11-devel
23BuildRequires: xorg-lib-libXext-devel
24BuildRequires: zlib-devel
0845671b
JR
25Obsoletes: mpudf-devel < 1.13.0
26Obsoletes: mpudf-libs < 1.13.0
27Obsoletes: mpudf-static < 1.13.0
69d32f06
JB
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
0845671b 31MuPDF is a lightweight PDF, XPS and CBZ viewer.
69d32f06
JB
32
33%description -l pl.UTF-8
0845671b 34MuPDF to lekka przeglądarka pliki PDF, XPS i CBZ.
69d32f06
JB
35
36%prep
37%setup -q -n %{name}-%{version}-source
69d32f06 38
f735ca81 39# use system libs instead
0845671b 40%{__rm} -r thirdparty/{curl,freetype,jbig2dec,libjpeg,mujs,openjpeg,zlib}
69d32f06
JB
41
42%build
43CFLAGS="%{rpmcflags} %{rpmcppflags}" \
f735ca81 44LDFLAGS="%{rpmldflags}" \
73677cf1 45%{__make} -j1 \
69d32f06 46 CC="%{__cc}" \
f735ca81 47 CXX="%{__cxx}" \
6d5cd20c
JB
48 HAVE_MUJS=yes \
49 MUJS_CFLAGS= \
50 MUJS_LIBS="-lmujs" \
7f62b790 51 SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
80c18e69 52 build=release \
f735ca81 53 libdir=%{_libdir} \
0845671b 54 verbose=yes
69d32f06
JB
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT \
edbf3040 61 HAVE_MUJS=yes \
69d32f06
JB
62 build=release \
63 prefix=%{_prefix} \
64 libdir=%{_libdir}
65
66# packaged as %doc
67%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mupdf
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
69d32f06
JB
72%files
73%defattr(644,root,root,755)
74%doc CHANGES CONTRIBUTORS README
0845671b 75%attr(755,root,root) %{_bindir}/mupdf-gl
69d32f06 76%attr(755,root,root) %{_bindir}/mupdf-x11
69d32f06 77%attr(755,root,root) %{_bindir}/mutool
69d32f06
JB
78%{_mandir}/man1/mupdf.1*
79%{_mandir}/man1/mutool.1*
This page took 0.093277 seconds and 4 git commands to generate.