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