]> git.pld-linux.org Git - packages/mupdf.git/blame - mupdf.spec
- release 2 (by relup.sh)
[packages/mupdf.git] / mupdf.spec
CommitLineData
69d32f06
JB
1Summary: MuPDF - lightweight PDF, XPS and CBZ viewer and parser/rendering library
2Summary(pl.UTF-8): MuPDF - lekka przeglądarka oraz biblioteka renderująca PDF, XPS, CBZ
3Name: mupdf
4Version: 1.3
26a1c075 5Release: 2
f735ca81
JB
6License: AGPL v3+
7Group: Applications/Text
69d32f06
JB
8#Source0Download: http://code.google.com/p/mupdf/downloads/list?q=source
9Source0: http://mupdf.googlecode.com/files/%{name}-%{version}-source.tar.gz
10# Source0-md5: fe53c2a56ebd7759f5f965bc4ff66359
11Patch0: %{name}-openjpeg.patch
12Patch1: %{name}-curl.patch
13Patch2: %{name}-v8.patch
f735ca81 14Patch3: %{name}-shared.patch
69d32f06
JB
15URL: http://www.mupdf.com/
16BuildRequires: curl-devel
17BuildRequires: freetype-devel >= 2
18BuildRequires: jbig2dec-devel
19BuildRequires: libjpeg-devel
f735ca81 20BuildRequires: libstdc++-devel
69d32f06
JB
21BuildRequires: openjpeg2-devel >= 2
22BuildRequires: openssl-devel
23BuildRequires: pkgconfig
24BuildRequires: v8-devel
25BuildRequires: xorg-lib-libX11-devel
26BuildRequires: xorg-lib-libXext-devel
27BuildRequires: zlib-devel
f735ca81 28Requires: %{name}-libs = %{version}-%{release}
69d32f06
JB
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
f735ca81
JB
31# needs symbols from one of libmupdf-js-*
32%define skip_post_check_so libmupdf.so.*
33
69d32f06
JB
34%description
35MuPDF is a lightweight PDF, XPS and CBZ viewer and parser/rendering
36library.
37
38%description -l pl.UTF-8
39MuPDF to lekka przeglądarka oraz biblioteka analizująca/renderująca
40pliki PDF, XPS i CBZ.
41
f735ca81
JB
42%package libs
43Summary: Shared MuPDF libraries
44Summary(pl.UTF-8): Biblioteki współdzielone MuPDF
45Group: Libraries
46
47%description libs
48Shared MuPDF libraries.
49
50%description libs -l pl.UTF-8
51Biblioteki współdzielone MuPDF.
52
69d32f06 53%package devel
f735ca81
JB
54Summary: Header files for MuPDF libraries
55Summary(pl.UTF-8): Pliki nagłówkowe bibliotek MuPDF
69d32f06 56Group: Development/Libraries
f735ca81 57Requires: %{name}-libs = %{version}-%{release}
973c4d4a 58Requires: freetype-devel >= 2
f735ca81
JB
59Requires: jbig2dec-devel
60Requires: libjpeg-devel
61Requires: libstdc++-devel
62Requires: openjpeg2-devel >= 2
63Requires: openssl-devel
64Requires: v8-devel
65Requires: zlib-devel
69d32f06
JB
66
67%description devel
f735ca81 68Header files for MuPDF libraries.
69d32f06
JB
69
70%description devel -l pl.UTF-8
f735ca81 71Pliki nagłówkowe bibliotek MuPDF.
69d32f06
JB
72
73%package static
f735ca81
JB
74Summary: Static MuPDF libraries
75Summary(pl.UTF-8): Statyczne biblioteki MuPDF
69d32f06
JB
76Group: Development/Libraries
77Requires: %{name}-devel = %{version}-%{release}
78
79%description static
f735ca81 80Static MuPDF libraries.
69d32f06
JB
81
82%description static -l pl.UTF-8
f735ca81 83Statyczne biblioteki MuPDF.
69d32f06
JB
84
85%prep
86%setup -q -n %{name}-%{version}-source
87%patch0 -p1
88%patch1 -p1
89%patch2 -p1
f735ca81 90%patch3 -p1
69d32f06 91
f735ca81 92# use system libs instead
69d32f06
JB
93%{__rm} -r thirdparty/{curl,freetype,jbig2dec,jpeg,openjpeg,zlib}
94
95%build
96CFLAGS="%{rpmcflags} %{rpmcppflags}" \
f735ca81 97LDFLAGS="%{rpmldflags}" \
69d32f06
JB
98%{__make} \
99 CC="%{__cc}" \
f735ca81 100 CXX="%{__cxx}" \
69d32f06 101 V8_PRESENT=yes \
80c18e69 102 build=release \
f735ca81 103 libdir=%{_libdir} \
80c18e69 104 verbose=1
69d32f06
JB
105
106%install
107rm -rf $RPM_BUILD_ROOT
108
109%{__make} install \
110 DESTDIR=$RPM_BUILD_ROOT \
111 V8_PRESENT=yes \
112 build=release \
113 prefix=%{_prefix} \
114 libdir=%{_libdir}
115
116# packaged as %doc
117%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mupdf
118
119%clean
120rm -rf $RPM_BUILD_ROOT
121
f735ca81
JB
122%post libs -p /sbin/ldconfig
123%postun libs -p /sbin/ldconfig
69d32f06
JB
124
125%files
126%defattr(644,root,root,755)
127%doc CHANGES CONTRIBUTORS README
128%attr(755,root,root) %{_bindir}/mudraw
129%attr(755,root,root) %{_bindir}/mujstest-v8
130%attr(755,root,root) %{_bindir}/mupdf-x11
131%attr(755,root,root) %{_bindir}/mupdf-x11-curl
132%attr(755,root,root) %{_bindir}/mupdf-x11-v8
133%attr(755,root,root) %{_bindir}/mutool
134%{_mandir}/man1/mudraw.1*
135%{_mandir}/man1/mupdf.1*
136%{_mandir}/man1/mutool.1*
137
f735ca81
JB
138%files libs
139%defattr(644,root,root,755)
140%attr(755,root,root) %{_libdir}/libmupdf.so.*.*.*
141%attr(755,root,root) %ghost %{_libdir}/libmupdf.so.0
142%attr(755,root,root) %{_libdir}/libmupdf-js-none.so.*.*.*
143%attr(755,root,root) %ghost %{_libdir}/libmupdf-js-none.so.0
144%attr(755,root,root) %{_libdir}/libmupdf-js-v8.so.*.*.*
145%attr(755,root,root) %ghost %{_libdir}/libmupdf-js-v8.so.0
146
69d32f06
JB
147%files devel
148%defattr(644,root,root,755)
149%doc docs/{naming,overview,progressive,refcount,thirdparty}.txt
f735ca81
JB
150%attr(755,root,root) %{_libdir}/libmupdf.so
151%attr(755,root,root) %{_libdir}/libmupdf-js-none.so
152%attr(755,root,root) %{_libdir}/libmupdf-js-v8.so
153%{_libdir}/libmupdf.la
154%{_libdir}/libmupdf-js-none.la
155%{_libdir}/libmupdf-js-v8.la
69d32f06
JB
156%{_includedir}/mupdf
157
69d32f06
JB
158%files static
159%defattr(644,root,root,755)
160%{_libdir}/libmupdf.a
161%{_libdir}/libmupdf-js-none.a
162%{_libdir}/libmupdf-js-v8.a
This page took 0.11231 seconds and 4 git commands to generate.