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