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