2 Summary: Font configuration and customization library
3 Summary(pl): Biblioteka do konfigurowania fontów
10 Source0: http://fontconfig.org/release/%{name}-%{version}.tar.gz
11 #Patch0: %{name}-date.patch
12 Patch1: %{name}-blacklist.patch
13 #Patch2: %{name}-defaultconfig.patch -- is it needed?
14 #Patch3: %{name}-fontdir.patch
15 URL: http://fontconfig.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
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
29 Fontconfig is designed to locate fonts within the system and select
30 them according to requirements specified by applications.
33 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
34 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
37 Summary: Font configuration and customization library
38 Summary(pl): Biblioteka do konfigurowania fontów
39 Group: Development/Libraries
40 Provides: XFree86-fontconfig-devel
41 Requires: %{name}-realpkg = %{version}
42 Requires: freetype-devel
43 Obsoletes: XFree86-fontconfig-devel
46 Fontconfig is designed to locate fonts within the system and select
47 them according to requirements specified by applications.
49 This package contains the header files needed to develop programs that
52 %description devel -l pl
53 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
54 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
56 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
57 programów korzystaj±cych z biblioteki fontconfig.
63 #%patch2 -p1 -- is it needed?
68 %configure --disable-docs
69 %{__make} CC="%{__cc}"
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_mandir}/man1
76 DESTDIR=$RPM_BUILD_ROOT
78 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.1
79 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.1
81 # small docdir location hack
82 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/%{name}-devel $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
83 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/%{name}-* $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}/
85 # Remove *.a file cause it is useless?
86 rm $RPM_BUILD_ROOT%{_libdir}/*.a
89 rm -rf $RPM_BUILD_ROOT
93 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
100 %dir %{_sysconfdir}/fonts
101 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
102 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
103 %{_sysconfdir}/fonts/fonts.dtd
104 %attr(755,root,root) %{_bindir}/fc-*
105 %attr(755,root,root) %{_libdir}/lib*.so.*.*
110 %defattr(644,root,root,755)
112 %{_includedir}/fontconfig
115 %{_pkgconfigdir}/fontconfig.pc