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 Patch4: %{name}-subdir.patch
19 Patch5: %{name}-slighthint.patch
20 URL: http://fontconfig.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
24 BuildRequires: expat-devel
25 BuildRequires: freetype-devel
26 BuildRequires: libtool
27 Requires(post): /sbin/ldconfig
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 Requires: %{name} = %{version}
43 Requires: freetype-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.
60 %setup -q -n %{fcname}.%{fcversion}
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_mandir}/man1
81 DESTDIR=$RPM_BUILD_ROOT
83 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.3
84 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.3
87 rm -rf $RPM_BUILD_ROOT
91 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc %{name}/{AUTHORS,README}
98 %dir %{_sysconfdir}/fonts
99 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
100 %{_sysconfdir}/fonts/fonts.dtd
101 %attr(755,root,root) %{_bindir}/fc-*
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*
106 %defattr(644,root,root,755)
107 %doc %{name}/ChangeLog
108 %attr(755,root,root) %{_bindir}/fontconfig-config
109 %{_includedir}/fontconfig
111 %{_pkgconfigdir}/fontconfig.pc