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