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