]> git.pld-linux.org Git - packages/mupdf.git/blame - mupdf.spec
updated deps
[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
b6184cba
JP
4Version: 1.17.0
5Release: 1
f735ca81
JB
6License: AGPL v3+
7Group: Applications/Text
6e4f486a 8Source0: https://www.mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
b6184cba 9# Source0-md5: f6ffcd81fcd4c57016eb630bcd617c50
5622ca89 10Patch0: %{name}-shared.patch
6e4f486a 11URL: https://www.mupdf.com/
f81d51d1 12BuildRequires: OpenGL-glut-devel
7c16c18c
JP
13BuildRequires: curl-devel >= 7.66.0
14BuildRequires: freetype-devel >= 1:2.10.0
15BuildRequires: harfbuzz-devel >= 2.6.4
16BuildRequires: jbig2dec-devel >= 0.18
69d32f06 17BuildRequires: libjpeg-devel
f735ca81 18BuildRequires: libstdc++-devel
5622ca89 19BuildRequires: libtool
2e02666f 20BuildRequires: mujs-devel >= 1.0.6
7c16c18c 21BuildRequires: openjpeg2-devel >= 2.3.1
6e4f486a 22BuildRequires: openssl-devel >= 1.1.0
69d32f06 23BuildRequires: pkgconfig
69d32f06
JB
24BuildRequires: xorg-lib-libX11-devel
25BuildRequires: xorg-lib-libXext-devel
6e4f486a 26BuildRequires: zlib-devel >= 1.2.11
7c16c18c
JP
27Requires: curl-libs >= 7.66.0
28Requires: freetype >= 1:2.10.0
29Requires: harfbuzz >= 2.6.4
30Requires: jbig2dec >= 0.18
31Requires: openjpeg2 >= 2.3.1
6e4f486a 32Requires: zlib >= 1.2.11
69d32f06
JB
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
0845671b 36MuPDF is a lightweight PDF, XPS and CBZ viewer.
69d32f06
JB
37
38%description -l pl.UTF-8
0845671b 39MuPDF to lekka przeglądarka pliki PDF, XPS i CBZ.
69d32f06 40
5622ca89
JB
41%package libs
42Summary: Shared MuPDF libraries
43Summary(pl.UTF-8): Biblioteki współdzielone MuPDF
44Group: Libraries
7c16c18c
JP
45Requires: freetype >= 1:2.10.0
46Requires: jbig2dec >= 0.18
2e02666f 47Requires: mujs >= 1.0.6
5622ca89
JB
48Requires: openjpeg2
49Requires: openssl >= 1.1.0
50Requires: zlib >= 1.2.11
51
52%description libs
53Shared MuPDF libraries.
54
55%description libs -l pl.UTF-8
56Biblioteki współdzielone MuPDF.
57
58%package devel
59Summary: Header files for MuPDF libraries
60Summary(pl.UTF-8): Pliki nagłówkowe bibliotek MuPDF
61Group: Development/Libraries
62Requires: %{name}-libs = %{version}-%{release}
7c16c18c
JP
63Requires: freetype-devel >= 1:2.10.0
64Requires: jbig2dec-devel >= 0.18
5622ca89
JB
65Requires: libjpeg-devel
66Requires: libstdc++-devel
2e02666f 67Requires: mujs-devel >= 1.0.6
7c16c18c 68Requires: openjpeg2-devel >= 2.3.1
5622ca89
JB
69Requires: openssl-devel >= 1.1.0
70Requires: zlib-devel >= 1.2.11
71
72%description devel
73Header files for MuPDF libraries.
74
75%description devel -l pl.UTF-8
76Pliki nagłówkowe bibliotek MuPDF.
77
78%package static
79Summary: Static MuPDF libraries
80Summary(pl.UTF-8): Statyczne biblioteki MuPDF
81Group: Development/Libraries
82Requires: %{name}-devel = %{version}-%{release}
83
84%description static
85Static MuPDF libraries.
86
87%description static -l pl.UTF-8
88Statyczne biblioteki MuPDF.
89
69d32f06
JB
90%prep
91%setup -q -n %{name}-%{version}-source
5622ca89 92%patch0 -p1
69d32f06 93
6e4f486a 94# use system libs instead:
7c16c18c
JP
95# curl 7.66.0
96# freetype 2.10.0
97# harfbuzz 2.6.4 + git update (nothing crucial)
98# jbig2dec 0.18
6e4f486a
JB
99# libjpeg 9
100# mujs ?
7c16c18c 101# openjpeg 2.3.1
6e4f486a 102# zlib 1.2.11
7c16c18c 103%{__rm} -r thirdparty/{curl,freetype,harfbuzz,jbig2dec,libjpeg,mujs,openjpeg,zlib}
6e4f486a
JB
104# but keep:
105# freeglut - 3.0.0 + some additional keyboard and clipboard APIs
106# lcms2 - "art" fork with tread safety
69d32f06
JB
107
108%build
109CFLAGS="%{rpmcflags} %{rpmcppflags}" \
f735ca81 110LDFLAGS="%{rpmldflags}" \
73677cf1 111%{__make} -j1 \
69d32f06 112 CC="%{__cc}" \
f735ca81 113 CXX="%{__cxx}" \
7f62b790 114 SYS_OPENJPEG_CFLAGS="$(pkg-config --cflags libopenjp2)" \
6e4f486a
JB
115 USE_SYSTEM_LIBS=yes \
116 USE_SYSTEM_MUJS=yes \
80c18e69 117 build=release \
f735ca81 118 libdir=%{_libdir} \
0845671b 119 verbose=yes
69d32f06
JB
120
121%install
122rm -rf $RPM_BUILD_ROOT
123
124%{__make} install \
125 DESTDIR=$RPM_BUILD_ROOT \
6e4f486a
JB
126 USE_SYSTEM_LIBS=yes \
127 USE_SYSTEM_MUJS=yes \
69d32f06
JB
128 build=release \
129 prefix=%{_prefix} \
130 libdir=%{_libdir}
131
132# packaged as %doc
133%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mupdf
134
135%clean
136rm -rf $RPM_BUILD_ROOT
137
5622ca89
JB
138%post libs -p /sbin/ldconfig
139%postun libs -p /sbin/ldconfig
140
69d32f06
JB
141%files
142%defattr(644,root,root,755)
5622ca89 143%doc CHANGES CONTRIBUTORS README docs/{index,manual*,thirdparty}.html
0845671b 144%attr(755,root,root) %{_bindir}/mupdf-gl
69d32f06 145%attr(755,root,root) %{_bindir}/mupdf-x11
e74c4977 146%attr(755,root,root) %{_bindir}/mupdf-x11-curl
2e02666f 147%attr(755,root,root) %{_bindir}/muraster
69d32f06 148%attr(755,root,root) %{_bindir}/mutool
69d32f06
JB
149%{_mandir}/man1/mupdf.1*
150%{_mandir}/man1/mutool.1*
5622ca89
JB
151
152%files libs
153%defattr(644,root,root,755)
154%attr(755,root,root) %{_libdir}/libmupdf.so.*.*.*
155%attr(755,root,root) %ghost %{_libdir}/libmupdf.so.0
156%attr(755,root,root) %{_libdir}/libmupdf-third.so.*.*.*
157%attr(755,root,root) %ghost %{_libdir}/libmupdf-third.so.0
158
159%files devel
160%defattr(644,root,root,755)
161%attr(755,root,root) %{_libdir}/libmupdf.so
162%attr(755,root,root) %{_libdir}/libmupdf-third.so
163%{_libdir}/libmupdf.la
164%{_libdir}/libmupdf-third.la
165%{_includedir}/mupdf
166
167%files static
168%defattr(644,root,root,755)
169%{_libdir}/libmupdf.a
170%{_libdir}/libmupdf-third.a
This page took 0.095073 seconds and 4 git commands to generate.