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