]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
5aa201e55e13cfdc33c5b9f6464d7570d2b47ea0
[packages/fontconfig.git] / fontconfig.spec
1 #
2 # Conditional build
3 %bcond_with     bytecode        # use bytecode hinting instead of autohinting by default
4 #
5 Summary:        Font configuration and customization library
6 Summary(pl):    Biblioteka do konfigurowania fontów
7 Summary(pt_BR): Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
8 Name:           fontconfig
9 Version:        2.2.96
10 Release:        1
11 Epoch:          1
12 License:        MIT
13 Group:          Libraries
14 Source0:        http://fontconfig.org/fontconfig/release/%{name}-%{version}.tar.gz
15 # Source0-md5:  45041c2ce1b32bf71097fb6c835b0b84
16 Patch0:         %{name}-blacklist.patch
17 Patch1:         %{name}-date.patch
18 Patch2:         %{name}-autohint.patch
19 Patch3:         %{name}-autohint2.patch
20 URL:            http://fontconfig.org/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  docbook-utils >= 0.6.13-3
24 BuildRequires:  docbook-dtd41-sgml
25 BuildRequires:  ed
26 BuildRequires:  expat-devel
27 BuildRequires:  freetype-devel >= 2.1.5
28 BuildRequires:  libtool
29 Requires(post): /sbin/ldconfig
30 Requires:       freetype >= 2.1.5
31 Provides:       XFree86-fontconfig
32 Obsoletes:      XFree86-fontconfig
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 %description -l pl
40 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
41 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
42
43 %description -l pt_BR
44 Fontconfig é uma biblioteca para configuração e customização do acesso
45 a fontes.
46
47 %package devel
48 Summary:        Font configuration and customization library
49 Summary(pl):    Biblioteka do konfigurowania fontów
50 Summary(pt_BR): Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
51 Group:          Development/Libraries
52 Requires:       %{name} = %{epoch}:%{version}-%{release}
53 Requires:       expat-devel
54 Requires:       freetype-devel >= 2.1.5
55 Provides:       XFree86-fontconfig-devel
56 Obsoletes:      XFree86-fontconfig-devel
57
58 %description devel
59 Fontconfig is designed to locate fonts within the system and select
60 them according to requirements specified by applications.
61
62 This package contains the header files needed to develop programs that
63 use these fontconfig.
64
65 %description devel -l pl
66 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
67 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
68
69 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
70 programów korzystaj±cych z biblioteki fontconfig.
71
72 %description devel -l pt_BR
73 Fontconfig é uma biblioteca para configuração e customização do acesso
74 a fontes.
75
76 %package static
77 Summary:        Static font configuration and customization library
78 Summary(pl):    Statyczna biblioteka do konfigurowania fontów
79 Group:          Development/Libraries
80 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
81 Provides:       XFree86-fontconfig-static
82 Obsoletes:      XFree86-fontconfig-static
83
84 %description static
85 This package contains static version of fontconfig library.
86
87 %description static -l pl
88 Ten pakiet zawiera statyczn± wersjê biblioteki fontconfig.
89
90 %prep
91 %setup -q
92 %patch0 -p1
93 %patch1 -p1
94 %if %{with bytecode}
95 %patch2 -p1
96 %else
97 %patch3 -p1
98 %endif
99
100 %build
101 %{__libtoolize}
102 %{__aclocal}
103 %{__autoconf}
104 %{__autoheader}
105 %{__automake}
106 %configure \
107         --disable-docs
108 %{__make}
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5}
113
114 %{__make} install \
115         DESTDIR=$RPM_BUILD_ROOT
116
117 install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
118 install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post
124 /sbin/ldconfig
125 HOME=/root %{_bindir}/fc-cache -f 2>/dev/null
126
127 %postun -p /sbin/ldconfig
128
129 %files
130 %defattr(644,root,root,755)
131 %doc AUTHORS COPYING ChangeLog README
132 %dir %{_sysconfdir}/fonts
133 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
134 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
135 %{_sysconfdir}/fonts/fonts.dtd
136 %attr(755,root,root) %{_bindir}/fc-*
137 %attr(755,root,root) %{_libdir}/lib*.so.*.*
138 %{_mandir}/man1/*.1*
139 %{_mandir}/man5/*.5*
140
141 %files devel
142 %defattr(644,root,root,755)
143 %doc doc/fontconfig-devel/*.html
144 %attr(755,root,root) %{_libdir}/lib*.so
145 %{_libdir}/lib*.la
146 %{_includedir}/fontconfig
147 %{_pkgconfigdir}/fontconfig.pc
148 %{_mandir}/man3/*.3*
149
150 %files static
151 %defattr(644,root,root,755)
152 %{_libdir}/lib*.a
This page took 0.047412 seconds and 3 git commands to generate.