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