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