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