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