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