2 %define fcname fcpackage
5 Summary: Font configuration and customization library
6 Summary(pl): Biblioteka do konfigurowania fontów
13 Source0: http://fontconfig.org/release/%{fcname}.%{fcversion}.tar.gz
14 Patch0: %{name}-date.patch
15 Patch1: %{name}-blacklist.patch
16 Patch2: %{name}-defaultconfig.patch
17 Patch3: %{name}-fontdir.patch
18 URL: http://fontconfig.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: expat-devel
23 BuildRequires: freetype-devel
24 BuildRequires: libtool
25 Requires(post): /sbin/ldconfig
26 Provides: XFree86-fontconfig
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Obsoletes: XFree86-fontconfig
31 Fontconfig is designed to locate fonts within the system and select
32 them according to requirements specified by applications.
35 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
36 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
39 Summary: Font configuration and customization library
40 Summary(pl): Biblioteka do konfigurowania fontów
41 Group: Development/Libraries
42 Provides: XFree86-fontconfig-devel
43 Requires: %{name} = %{version}
44 Requires: freetype-devel
45 Obsoletes: XFree86-fontconfig-devel
48 Fontconfig is designed to locate fonts within the system and select
49 them according to requirements specified by applications.
51 This package contains the header files needed to develop programs that
54 %description devel -l pl
55 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
56 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
58 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
59 programów korzystaj±cych z biblioteki fontconfig.
62 %setup -q -n %{fcname}.%{fcversion}
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3}
81 DESTDIR=$RPM_BUILD_ROOT
83 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.1
84 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.1
85 install src/fontconfig.man $RPM_BUILD_ROOT%{_mandir}/man3/fontconfig.3
88 rm -rf $RPM_BUILD_ROOT
92 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc %{name}/{AUTHORS,README}
99 %dir %{_sysconfdir}/fonts
100 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
101 %{_sysconfdir}/fonts/fonts.dtd
102 %attr(755,root,root) %{_bindir}/fc-*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107 %defattr(644,root,root,755)
108 %doc %{name}/ChangeLog
109 %attr(755,root,root) %{_bindir}/fontconfig-config
110 %{_includedir}/fontconfig
112 %{_pkgconfigdir}/fontconfig.pc