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