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