]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
c09f0f4e559e7a206f42a5ebd7fad8387f8c0a3c
[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 BuildRequires:  perl-SGMLS
27 Requires(post): /sbin/ldconfig
28 Provides:       %{name}-realpkg = %{epoch}:%{version}-%{release}
29 Provides:       XFree86-fontconfig
30 Obsoletes:      XFree86-fontconfig
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Fontconfig is designed to locate fonts within the system and select
35 them according to requirements specified by applications.
36
37 %description -l pl
38 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
39 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
40
41 %description -l pt_BR
42 Fontconfig é uma biblioteca para configuração e customização do acesso
43 a fontes.
44
45 %package devel
46 Summary:        Font configuration and customization library
47 Summary(pl):    Biblioteka do konfigurowania fontów
48 Summary(pt_BR): Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
49 Group:          Development/Libraries
50 Requires:       %{name}-realpkg = %{epoch}:%{version}
51 Requires:       expat-devel
52 Requires:       freetype-devel
53 Provides:       %{name}-devel-realpkg = %{epoch}:%{version}-%{release}
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-realpkg = %{epoch}:%{version}
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 %patch1 -p1
93 %patch2 -p1
94 %patch3 -p1
95
96 %build
97 %{__libtoolize}
98 %{__aclocal}
99 %{__autoconf}
100 %{__autoheader}
101 %{__automake}
102 %configure \
103         --disable-docs
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5}
109
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112
113 install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
114 install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post
120 /sbin/ldconfig
121 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
122
123 %postun -p /sbin/ldconfig
124
125 %files
126 %defattr(644,root,root,755)
127 %doc AUTHORS COPYING ChangeLog README
128 %dir %{_sysconfdir}/fonts
129 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
130 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
131 %{_sysconfdir}/fonts/fonts.dtd
132 %attr(755,root,root) %{_bindir}/fc-*
133 %attr(755,root,root) %{_libdir}/lib*.so.*.*
134 %{_mandir}/man1/*.1*
135 %{_mandir}/man5/*.5*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %doc doc/fontconfig-devel/*.html
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %{_libdir}/lib*.la
142 %{_includedir}/fontconfig
143 %{_pkgconfigdir}/fontconfig.pc
144 %{_mandir}/man3/*.3*
145
146 %files static
147 %defattr(644,root,root,755)
148 %{_libdir}/lib*.a
This page took 0.067214 seconds and 3 git commands to generate.