]> git.pld-linux.org Git - packages/fontconfig.git/blame - fontconfig.spec
- updated to 2.5.0
[packages/fontconfig.git] / fontconfig.spec
CommitLineData
8a1d19fc
JB
1#
2# Conditional build
4d2ac7f9 3%bcond_without static_libs # don't build static library
8a1d19fc 4#
6bccae59 5Summary: Font configuration and customization tools
1f073758
ER
6Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
7Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
542fe095 8Name: fontconfig
ee0a3c7b 9Version: 2.5.0
9e9f8b7d 10Release: 1
80708623 11Epoch: 1
542fe095 12License: MIT
a2ca8118 13Group: Libraries
3ef12d15 14Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz
ee0a3c7b 15# Source0-md5: 21d14af8ecf645ef76211c782cdd7aeb
f7c0bd55 16Patch0: %{name}-blacklist.patch
332bb5d4 17Patch1: %{name}-bitstream-cyberbit.patch
7d3744a1 18URL: http://fontconfig.org/
542fe095 19BuildRequires: autoconf
20BuildRequires: automake
1f6a3c63
JB
21BuildRequires: docbook-utils >= 0.6.13-3
22BuildRequires: docbook-dtd41-sgml
542fe095 23BuildRequires: ed
7d3744a1 24BuildRequires: expat-devel
2fb7fe46 25BuildRequires: freetype-devel >= 2.1.5
7d3744a1 26BuildRequires: libtool
7fed9776 27BuildRequires: pkgconfig
33fde975 28Requires: %{name}-libs = %{epoch}:%{version}-%{release}
613b8d3f 29Requires: freetype >= 2.1.5
d1f51495 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
542fe095 31
542fe095 32%description
33Fontconfig is designed to locate fonts within the system and select
34them according to requirements specified by applications.
35
6bccae59 36This package contains tools and documentation.
37
0fe8c3eb
JR
38%description -l pl.UTF-8
39Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
40systemie i wybierania ich w zależności od potrzeb aplikacji.
542fe095 41
0fe8c3eb 42Paket ten zawiera programy narzędziowe i dokumentację.
6bccae59 43
0fe8c3eb
JR
44%description -l pt_BR.UTF-8
45Fontconfig é uma biblioteca para configuração e customização do acesso
48dec51f 46a fontes.
47
0fe8c3eb 48Este pacote contém as ferramentas e documentação.
e625f5c6 49
2084b6d9
JB
50%package libs
51Summary: Font configuration and customization library
1f073758
ER
52Summary(pl.UTF-8): Biblioteka do konfigurowania fontów
53Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes
2084b6d9
JB
54Group: Development/Libraries
55Requires: freetype >= 2.1.5
70aeb29b 56Provides: XFree86-fontconfig
2084b6d9 57Conflicts: fontconfig <= 1:2.2.98-1
70aeb29b 58Obsoletes: XFree86-fontconfig
2084b6d9
JB
59
60%description libs
61Fontconfig is designed to locate fonts within the system and select
62them according to requirements specified by applications.
63
0fe8c3eb
JR
64%description libs -l pl.UTF-8
65Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
66systemie i wybierania ich w zależności od potrzeb aplikacji.
2084b6d9 67
0fe8c3eb
JR
68%description libs -l pt_BR.UTF-8
69Fontconfig é uma biblioteca para configuração e customização do acesso
2084b6d9
JB
70a fontes.
71
7fed9776
AM
72%package devel
73Summary: Font configuration and customization library - development files
1f073758
ER
74Summary(pl.UTF-8): Biblioteka do konfigurowania fontów - pliki dla programistów
75Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
a2ca8118 76Group: Development/Libraries
6bccae59 77Requires: %{name}-libs = %{epoch}:%{version}-%{release}
a025902e 78Requires: expat-devel
613b8d3f 79Requires: freetype-devel >= 2.1.5
a025902e 80Provides: XFree86-fontconfig-devel
ef58052a 81Obsoletes: XFree86-fontconfig-devel
542fe095 82
83%description devel
84Fontconfig is designed to locate fonts within the system and select
85them according to requirements specified by applications.
86
87This package contains the header files needed to develop programs that
88use these fontconfig.
89
0fe8c3eb
JR
90%description devel -l pl.UTF-8
91Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
92systemie i wybierania ich w zależności od potrzeb aplikacji.
542fe095 93
0fe8c3eb
JR
94Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
95programów korzystających z biblioteki fontconfig.
542fe095 96
0fe8c3eb
JR
97%description devel -l pt_BR.UTF-8
98Fontconfig é uma biblioteca para configuração e customização do acesso
e625f5c6 99a fontes.
100
0fe8c3eb
JR
101Este pacote contém arquivos de desenvolvimento necessários à criação
102de extensões baseadas na biblioteca fontconfig.
48dec51f 103
a025902e
JB
104%package static
105Summary: Static font configuration and customization library
1f073758
ER
106Summary(pl.UTF-8): Statyczna biblioteka do konfigurowania fontów
107Summary(pt_BR.UTF-8): Biblioteca estática para configuração e customização do acesso a fontes
a025902e 108Group: Development/Libraries
613b8d3f 109Requires: %{name}-devel = %{epoch}:%{version}-%{release}
a025902e
JB
110Provides: XFree86-fontconfig-static
111Obsoletes: XFree86-fontconfig-static
112
113%description static
114This package contains static version of fontconfig library.
115
0fe8c3eb
JR
116%description static -l pl.UTF-8
117Ten pakiet zawiera statyczną wersję biblioteki fontconfig.
a025902e 118
0fe8c3eb
JR
119%description static -l pt_BR.UTF-8
120Este pacote contém a biblioteca estática do fontconfig
48dec51f 121
542fe095 122%prep
061f6061 123%setup -q
f7c0bd55 124%patch0 -p1
3ef12d15 125%patch1 -p1
8a1d19fc 126
542fe095 127%build
e625f5c6 128%{__libtoolize}
129%{__aclocal}
542fe095 130%{__autoconf}
1898f128 131%{__autoheader}
e625f5c6 132%{__automake}
cc3e4384 133%configure \
4d2ac7f9
KK
134 --disable-docs \
135 %{!?with_static_libs:--disable-static}
f7c0bd55 136%{__make}
542fe095 137
138%install
139rm -rf $RPM_BUILD_ROOT
7fed9776 140install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig}
542fe095 141
142%{__make} install \
143 DESTDIR=$RPM_BUILD_ROOT
144
cc3e4384
AM
145install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
146install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
542fe095 147
36a8ce6e
JB
148cp -f conf.d/README README.confd
149
542fe095 150%clean
151rm -rf $RPM_BUILD_ROOT
152
17ff777e 153%post
1b300991 154umask 022
23fb93ae 155HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
17ff777e 156
1c88da95
JB
157%post libs -p /sbin/ldconfig
158%postun libs -p /sbin/ldconfig
542fe095 159
160%files
161%defattr(644,root,root,755)
36a8ce6e 162%doc AUTHORS COPYING ChangeLog README README.confd
542fe095 163%attr(755,root,root) %{_bindir}/fc-*
ca6f293f 164%{_mandir}/man1/*.1*
78cb2e6e 165%{_mandir}/man5/*.5*
7fed9776 166/var/cache/fontconfig
542fe095 167
2084b6d9
JB
168%files libs
169%defattr(644,root,root,755)
170%dir %{_sysconfdir}/fonts
171%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
2084b6d9 172%{_sysconfdir}/fonts/fonts.dtd
dd71a74b
JB
173%dir %{_sysconfdir}/fonts/conf.avail
174%{_sysconfdir}/fonts/conf.avail/*.conf
175%{_sysconfdir}/fonts/conf.avail/README
36a8ce6e 176%dir %{_sysconfdir}/fonts/conf.d
cfe5197f 177%config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
2084b6d9
JB
178%attr(755,root,root) %{_libdir}/lib*.so.*.*
179
542fe095 180%files devel
181%defattr(644,root,root,755)
cc3e4384 182%doc doc/fontconfig-devel/*.html
a025902e 183%attr(755,root,root) %{_libdir}/lib*.so
78cb2e6e 184%{_libdir}/lib*.la
a025902e 185%{_includedir}/fontconfig
542fe095 186%{_pkgconfigdir}/fontconfig.pc
ca6f293f 187%{_mandir}/man3/*.3*
a025902e 188
4d2ac7f9 189%if %{with static_libs}
a025902e
JB
190%files static
191%defattr(644,root,root,755)
192%{_libdir}/lib*.a
4d2ac7f9 193%endif
This page took 0.130996 seconds and 4 git commands to generate.