]> git.pld-linux.org Git - packages/mupdf.git/blob - mupdf.spec
- typo
[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 oraz biblioteka renderująca PDF, XPS, CBZ
3 Name:           mupdf
4 Version:        1.3
5 Release:        1
6 License:        AGPL v3+
7 Group:          Applications/Text
8 #Source0Download: http://code.google.com/p/mupdf/downloads/list?q=source
9 Source0:        http://mupdf.googlecode.com/files/%{name}-%{version}-source.tar.gz
10 # Source0-md5:  fe53c2a56ebd7759f5f965bc4ff66359
11 Patch0:         %{name}-openjpeg.patch
12 Patch1:         %{name}-curl.patch
13 Patch2:         %{name}-v8.patch
14 Patch3:         %{name}-shared.patch
15 URL:            http://www.mupdf.com/
16 BuildRequires:  curl-devel
17 BuildRequires:  freetype-devel >= 2
18 BuildRequires:  jbig2dec-devel
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  openjpeg2-devel >= 2
22 BuildRequires:  openssl-devel
23 BuildRequires:  pkgconfig
24 BuildRequires:  v8-devel
25 BuildRequires:  xorg-lib-libX11-devel
26 BuildRequires:  xorg-lib-libXext-devel
27 BuildRequires:  zlib-devel
28 Requires:       %{name}-libs = %{version}-%{release}
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 # needs symbols from one of libmupdf-js-*
32 %define         skip_post_check_so      libmupdf.so.*
33
34 %description
35 MuPDF is a lightweight PDF, XPS and CBZ viewer and parser/rendering
36 library.
37
38 %description -l pl.UTF-8
39 MuPDF to lekka przeglądarka oraz biblioteka analizująca/renderująca
40 pliki PDF, XPS i CBZ.
41
42 %package libs
43 Summary:        Shared MuPDF libraries
44 Summary(pl.UTF-8):      Biblioteki współdzielone MuPDF
45 Group:          Libraries
46
47 %description libs
48 Shared MuPDF libraries.
49
50 %description libs -l pl.UTF-8
51 Biblioteki współdzielone MuPDF.
52
53 %package devel
54 Summary:        Header files for MuPDF libraries
55 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek MuPDF
56 Group:          Development/Libraries
57 Requires:       %{name}-libs = %{version}-%{release}
58 Requires:       freetype-devel >= 2
59 Requires:       jbig2dec-devel
60 Requires:       libjpeg-devel
61 Requires:       libstdc++-devel
62 Requires:       openjpeg2-devel >= 2
63 Requires:       openssl-devel
64 Requires:       v8-devel
65 Requires:       zlib-devel
66
67 %description devel
68 Header files for MuPDF libraries.
69
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe bibliotek MuPDF.
72
73 %package static
74 Summary:        Static MuPDF libraries
75 Summary(pl.UTF-8):      Statyczne biblioteki MuPDF
76 Group:          Development/Libraries
77 Requires:       %{name}-devel = %{version}-%{release}
78
79 %description static
80 Static MuPDF libraries.
81
82 %description static -l pl.UTF-8
83 Statyczne biblioteki MuPDF.
84
85 %prep
86 %setup -q -n %{name}-%{version}-source
87 %patch0 -p1
88 %patch1 -p1
89 %patch2 -p1
90 %patch3 -p1
91
92 # use system libs instead
93 %{__rm} -r thirdparty/{curl,freetype,jbig2dec,jpeg,openjpeg,zlib}
94
95 %build
96 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
97 LDFLAGS="%{rpmldflags}" \
98 %{__make} \
99         CC="%{__cc}" \
100         CXX="%{__cxx}" \
101         V8_PRESENT=yes \
102         build=release \
103         libdir=%{_libdir} \
104         verbose=1
105
106 %install
107 rm -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
120 rm -rf $RPM_BUILD_ROOT
121
122 %post   libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
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
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
147 %files devel
148 %defattr(644,root,root,755)
149 %doc docs/{naming,overview,progressive,refcount,thirdparty}.txt
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
156 %{_includedir}/mupdf
157
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.08247 seconds and 3 git commands to generate.