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