]> git.pld-linux.org Git - packages/fontconfig.git/blame - fontconfig.spec
up to 2.15.0
[packages/fontconfig.git] / fontconfig.spec
CommitLineData
3c4010ce 1#
8a1d19fc 2# Conditional build
4d2ac7f9 3%bcond_without static_libs # don't build static library
1f7890d1
JB
4%bcond_without doc # don't build HTML and man docs
5%bcond_without tests # don't perform make check
b9d4e63a 6
6bccae59 7Summary: Font configuration and customization tools
1f073758
ER
8Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
9Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
542fe095 10Name: fontconfig
ee94d77c
JP
11Version: 2.15.0
12Release: 1
80708623 13Epoch: 1
542fe095 14License: MIT
a2ca8118 15Group: Libraries
caff1e1c 16Source0: https://www.freedesktop.org/software/fontconfig/release/%{name}-%{version}.tar.xz
ee94d77c 17# Source0-md5: 5bb3a2829aecb22ae553c39099bd0d6a
d1ef9f56 18Source1: %{name}-lcd-filter.conf
4d5ef8cc 19Patch0: %{name}-bitstream-cyberbit.patch
e129e349 20Patch1: disable-tests.patch
7d3744a1 21URL: http://fontconfig.org/
ee94d77c 22BuildRequires: autoconf >= 2.71
814a191a 23BuildRequires: automake >= 1:1.11
d96ee8f0 24%{?with_tests:BuildRequires: bubblewrap}
f271d168 25%if %{with doc}
b8cc9f44 26BuildRequires: docbook-dtd31-sgml
1f6a3c63 27BuildRequires: docbook-dtd41-sgml
2cc361d3 28BuildRequires: docbook-utils >= 0.6.13-3
f271d168 29%endif
542fe095 30BuildRequires: ed
7d3744a1 31BuildRequires: expat-devel
f14aacd5 32# pkgconfig(freetype) >= 21.0.15
350d98e1 33BuildRequires: freetype-devel >= 1:2.9
6aebbf07 34BuildRequires: gettext-tools >= 0.19.8
2ce6b9cf 35BuildRequires: gperf
f14aacd5 36%{?with_tests:BuildRequires: json-c-devel}
4d53bb1e 37BuildRequires: libtool >= 2:2.2
f14aacd5 38BuildRequires: libuuid-devel
7fed9776 39BuildRequires: pkgconfig
caff1e1c
JP
40%{?with_doc:BuildRequires: python3}
41BuildRequires: tar >= 1:1.22
42BuildRequires: xz
33fde975 43Requires: %{name}-libs = %{epoch}:%{version}-%{release}
d1f51495 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
542fe095 45
542fe095 46%description
47Fontconfig is designed to locate fonts within the system and select
48them according to requirements specified by applications.
49
6bccae59 50This package contains tools and documentation.
51
0fe8c3eb
JR
52%description -l pl.UTF-8
53Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
54systemie i wybierania ich w zależności od potrzeb aplikacji.
542fe095 55
0fe8c3eb 56Paket ten zawiera programy narzędziowe i dokumentację.
6bccae59 57
0fe8c3eb
JR
58%description -l pt_BR.UTF-8
59Fontconfig é uma biblioteca para configuração e customização do acesso
48dec51f 60a fontes.
61
0fe8c3eb 62Este pacote contém as ferramentas e documentação.
e625f5c6 63
2084b6d9
JB
64%package libs
65Summary: Font configuration and customization library
1f073758
ER
66Summary(pl.UTF-8): Biblioteka do konfigurowania fontów
67Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes
dc3ae6e7 68Group: Libraries
350d98e1 69Requires: freetype >= 1:2.9
70aeb29b 70Provides: XFree86-fontconfig
f97a4e50 71Obsoletes: XFree86-fontconfig < 4.4
2cc361d3 72Conflicts: fontconfig <= 1:2.2.98-1
2084b6d9
JB
73
74%description libs
75Fontconfig is designed to locate fonts within the system and select
76them according to requirements specified by applications.
77
0fe8c3eb
JR
78%description libs -l pl.UTF-8
79Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
80systemie i wybierania ich w zależności od potrzeb aplikacji.
2084b6d9 81
0fe8c3eb
JR
82%description libs -l pt_BR.UTF-8
83Fontconfig é uma biblioteca para configuração e customização do acesso
2084b6d9
JB
84a fontes.
85
7fed9776
AM
86%package devel
87Summary: Font configuration and customization library - development files
1f073758
ER
88Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów
89Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
a2ca8118 90Group: Development/Libraries
6bccae59 91Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a025902e 92Requires: expat-devel
350d98e1 93Requires: freetype-devel >= 1:2.9
f14aacd5 94Requires: libuuid-devel
a025902e 95Provides: XFree86-fontconfig-devel
f97a4e50 96Obsoletes: XFree86-fontconfig-devel < 4.4
542fe095 97
98%description devel
99Fontconfig is designed to locate fonts within the system and select
100them according to requirements specified by applications.
101
102This package contains the header files needed to develop programs that
103use these fontconfig.
104
0fe8c3eb
JR
105%description devel -l pl.UTF-8
106Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
107systemie i wybierania ich w zależności od potrzeb aplikacji.
542fe095 108
0fe8c3eb
JR
109Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
110programów korzystających z biblioteki fontconfig.
542fe095 111
0fe8c3eb
JR
112%description devel -l pt_BR.UTF-8
113Fontconfig é uma biblioteca para configuração e customização do acesso
e625f5c6 114a fontes.
115
0fe8c3eb
JR
116Este pacote contém arquivos de desenvolvimento necessários à criação
117de extensões baseadas na biblioteca fontconfig.
48dec51f 118
a025902e
JB
119%package static
120Summary: Static font configuration and customization library
1f073758
ER
121Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów
122Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes
a025902e 123Group: Development/Libraries
613b8d3f 124Requires: %{name}-devel = %{epoch}:%{version}-%{release}
a025902e 125Provides: XFree86-fontconfig-static
f97a4e50 126Obsoletes: XFree86-fontconfig-static < 4.4
a025902e
JB
127
128%description static
129This package contains static version of fontconfig library.
130
0fe8c3eb
JR
131%description static -l pl.UTF-8
132Ten pakiet zawiera statyczną wersję biblioteki fontconfig.
a025902e 133
0fe8c3eb
JR
134%description static -l pt_BR.UTF-8
135Este pacote contém a biblioteca estática do fontconfig
48dec51f 136
542fe095 137%prep
f972731d 138%setup -q
f7c0bd55 139%patch0 -p1
e129e349 140%patch1 -p1
8a1d19fc 141
8c8cfad5
AM
142# bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces...
143sed -i -e 's#BWRAP=.*#BWRAP=#g' test/run-test.sh
144
542fe095 145%build
6aebbf07 146%{__gettextize}
e625f5c6 147%{__libtoolize}
3c4010ce 148%{__aclocal} -I m4
542fe095 149%{__autoconf}
1898f128 150%{__autoheader}
e625f5c6 151%{__automake}
3fa7fff0
AM
152
153# don't rebuild docs by default, use prebuild ones
154export HASDOCBOOK=no
155
cc3e4384 156%configure \
1f7890d1 157 --enable-docs%{!?with_doc:=no} \
30625434 158 --disable-silent-rules \
eb6fe805 159 --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static
f7c0bd55 160%{__make}
542fe095 161
d8cf30eb 162%{?with_tests:%{__make} OSTYPE=linux check || (cat test/test-suite.log && /bin/false)}
13cfe41e 163
542fe095 164%install
165rm -rf $RPM_BUILD_ROOT
f271d168 166install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig} \
542fe095 167
168%{__make} install \
c6dd4c1c
JB
169 DESTDIR=$RPM_BUILD_ROOT \
170 htmldoc_DATA= \
171 doc_DATA=
f271d168 172
d1ef9f56
AM
173install %{SOURCE1} \
174 $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.avail/10-lcd-filter.conf
175
f271d168 176ln -s %{_datadir}/%{name}/conf.avail $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
542fe095 177
97d755c0 178cp -pf conf.d/README README.confd
36a8ce6e 179
6aebbf07
JP
180%find_lang %{name}
181%find_lang %{name}-conf -a %{name}.lang
182
542fe095 183%clean
184rm -rf $RPM_BUILD_ROOT
185
97d755c0
ER
186%pretrans
187# this needs to be a symlink
0ae39400 188if [ -d %{_sysconfdir}/fonts/conf.avail ] && [ ! -L %{_sysconfdir}/fonts/conf.avail ]; then
97d755c0
ER
189 mv -f %{_sysconfdir}/fonts/conf.avail{,.rpmsave}
190 install -d %{_datadir}/%{name}/conf.avail
191 ln -s %{_datadir}/%{name}/conf.avail %{_sysconfdir}/fonts/conf.avail
66a7b20e 192 mv -f %{_sysconfdir}/fonts/conf.avail.rpmsave/*.conf %{_sysconfdir}/fonts/conf.avail/
b9d4e63a 193 rmdir %{_sysconfdir}/fonts/conf.avail.rpmsave 2>/dev/null || :
97d755c0
ER
194fi
195
17ff777e 196%post
1b300991 197umask 022
23fb93ae 198HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
17ff777e 199
1c88da95
JB
200%post libs -p /sbin/ldconfig
201%postun libs -p /sbin/ldconfig
542fe095 202
6aebbf07 203%files -f %{name}.lang
542fe095 204%defattr(644,root,root,755)
ee94d77c 205%doc AUTHORS COPYING ChangeLog NEWS README.md README.confd doc/fontconfig-user.html
2084b6d9 206%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
97d755c0 207%{_sysconfdir}/fonts/conf.avail
c6dd4c1c 208%{_sysconfdir}/fonts/conf.d/README
cfe5197f 209%config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
2cc361d3
ER
210%attr(755,root,root) %{_bindir}/fc-cache
211%attr(755,root,root) %{_bindir}/fc-cat
6aebbf07 212%attr(755,root,root) %{_bindir}/fc-conflist
2cc361d3
ER
213%attr(755,root,root) %{_bindir}/fc-list
214%attr(755,root,root) %{_bindir}/fc-match
215%attr(755,root,root) %{_bindir}/fc-query
f8375c1d 216%attr(755,root,root) %{_bindir}/fc-pattern
2cc361d3 217%attr(755,root,root) %{_bindir}/fc-scan
9e93660c 218%attr(755,root,root) %{_bindir}/fc-validate
09233398
ER
219%dir %{_datadir}/xml/%{name}
220%{_datadir}/xml/%{name}/fonts.dtd
221%{_datadir}/%{name}/conf.avail/*.conf
f271d168 222%if %{with doc}
5cbeee5b
ER
223%{_mandir}/man1/fc-*.1*
224%{_mandir}/man5/fonts-conf.5*
f271d168 225%endif
0ae39400 226%dir /var/cache/fontconfig
5cbeee5b
ER
227
228%files libs
229%defattr(644,root,root,755)
c6dd4c1c
JB
230%attr(755,root,root) %{_libdir}/libfontconfig.so.*.*.*
231%attr(755,root,root) %ghost %{_libdir}/libfontconfig.so.1
2084b6d9 232
542fe095 233%files devel
234%defattr(644,root,root,755)
cc3e4384 235%doc doc/fontconfig-devel/*.html
c6dd4c1c
JB
236%attr(755,root,root) %{_libdir}/libfontconfig.so
237%{_libdir}/libfontconfig.la
a025902e 238%{_includedir}/fontconfig
542fe095 239%{_pkgconfigdir}/fontconfig.pc
6aebbf07
JP
240%{_datadir}/gettext/its/fontconfig.its
241%{_datadir}/gettext/its/fontconfig.loc
f271d168 242%if %{with doc}
c6dd4c1c 243%{_mandir}/man3/Fc*.3*
f271d168 244%endif
a025902e 245
4d2ac7f9 246%if %{with static_libs}
a025902e
JB
247%files static
248%defattr(644,root,root,755)
c6dd4c1c 249%{_libdir}/libfontconfig.a
4d2ac7f9 250%endif
This page took 0.28373 seconds and 4 git commands to generate.