]> git.pld-linux.org Git - packages/mupdf.git/blame - mupdf.spec
- drops post(up) scriptlets
[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
JR
4Version: 1.13.0
5Release: 1
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
f735ca81 28Requires: %{name}-libs = %{version}-%{release}
69d32f06
JB
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
0845671b 32MuPDF is a lightweight PDF, XPS and CBZ viewer.
69d32f06
JB
33
34%description -l pl.UTF-8
0845671b 35MuPDF to lekka przeglądarka pliki PDF, XPS i CBZ.
69d32f06
JB
36
37%prep
38%setup -q -n %{name}-%{version}-source
69d32f06 39
f735ca81 40# use system libs instead
0845671b 41%{__rm} -r thirdparty/{curl,freetype,jbig2dec,libjpeg,mujs,openjpeg,zlib}
69d32f06
JB
42
43%build
44CFLAGS="%{rpmcflags} %{rpmcppflags}" \
f735ca81 45LDFLAGS="%{rpmldflags}" \
73677cf1 46%{__make} -j1 \
69d32f06 47 CC="%{__cc}" \
f735ca81 48 CXX="%{__cxx}" \
6d5cd20c
JB
49 HAVE_MUJS=yes \
50 MUJS_CFLAGS= \
51 MUJS_LIBS="-lmujs" \
7f62b790 52 SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
80c18e69 53 build=release \
f735ca81 54 libdir=%{_libdir} \
0845671b 55 verbose=yes
69d32f06
JB
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT \
edbf3040 62 HAVE_MUJS=yes \
69d32f06
JB
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
71rm -rf $RPM_BUILD_ROOT
72
69d32f06
JB
73%files
74%defattr(644,root,root,755)
75%doc CHANGES CONTRIBUTORS README
0845671b 76%attr(755,root,root) %{_bindir}/mupdf-gl
69d32f06 77%attr(755,root,root) %{_bindir}/mupdf-x11
69d32f06 78%attr(755,root,root) %{_bindir}/mutool
69d32f06
JB
79%{_mandir}/man1/mupdf.1*
80%{_mandir}/man1/mutool.1*
This page took 0.084808 seconds and 4 git commands to generate.