- up to 1.13.0
[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:        1
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 Requires:       %{name}-libs = %{version}-%{release}
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 MuPDF is a lightweight PDF, XPS and CBZ viewer.
33
34 %description -l pl.UTF-8
35 MuPDF to lekka przeglÄ…darka pliki PDF, XPS i CBZ.
36
37 %prep
38 %setup -q -n %{name}-%{version}-source
39
40 # use system libs instead
41 %{__rm} -r thirdparty/{curl,freetype,jbig2dec,libjpeg,mujs,openjpeg,zlib}
42
43 %build
44 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
45 LDFLAGS="%{rpmldflags}" \
46 %{__make} -j1 \
47         CC="%{__cc}" \
48         CXX="%{__cxx}" \
49         HAVE_MUJS=yes \
50         MUJS_CFLAGS= \
51         MUJS_LIBS="-lmujs" \
52         SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
53         build=release \
54         libdir=%{_libdir} \
55         verbose=yes
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT \
62         HAVE_MUJS=yes \
63         build=release \
64         prefix=%{_prefix} \
65         libdir=%{_libdir}
66
67 # packaged as %doc
68 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mupdf
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   libs -p /sbin/ldconfig
74 %postun libs -p /sbin/ldconfig
75
76 %files
77 %defattr(644,root,root,755)
78 %doc CHANGES CONTRIBUTORS README
79 %attr(755,root,root) %{_bindir}/mupdf-gl
80 %attr(755,root,root) %{_bindir}/mupdf-x11
81 %attr(755,root,root) %{_bindir}/mutool
82 %{_mandir}/man1/mupdf.1*
83 %{_mandir}/man1/mutool.1*
This page took 0.063558 seconds and 3 git commands to generate.