]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
- regenerate fontcache
[packages/fontconfig.git] / fontconfig.spec
1
2 %define fcname          fcpackage
3 %define fcversion       2_0
4
5 Summary:        Font configuration and customization library
6 Summary(pl):    Biblioteka do konfigurowania fontów
7 Name:           fontconfig
8 Version:        1.0.1
9 Release:        4
10 Epoch:          1
11 License:        MIT
12 Group:          Libraries
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 URL:            http://fontconfig.org/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  ed
23 BuildRequires:  expat-devel
24 BuildRequires:  freetype-devel
25 BuildRequires:  libtool
26 Requires(post): /sbin/ldconfig
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Fontconfig is designed to locate fonts within the system and select
31 them according to requirements specified by applications.
32
33 %description -l pl
34 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
35 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
36
37 %package devel
38 Summary:        Font configuration and customization library
39 Summary(pl):    Biblioteka do konfigurowania fontów
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}
42 Requires:       freetype-devel
43
44 %description devel
45 Fontconfig is designed to locate fonts within the system and select
46 them according to requirements specified by applications.
47
48 This package contains the header files needed to develop programs that
49 use these fontconfig.
50
51 %description devel -l pl
52 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
53 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
54
55 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
56 programów korzystaj±cych z biblioteki fontconfig.
57
58 %prep
59 %setup -q -n %{fcname}.%{fcversion}
60 %patch0 -p1
61 cd %{name}
62 %patch1 -p1
63 %patch2 -p1
64 %patch3 -p1
65 %patch4 -p1
66
67 %build
68 cd %{name}
69 %{__autoconf}
70 %configure
71 %{__make} CC=%{__cc}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_mandir}/man1
76
77 cd %{name}
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.3
82 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.3
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 /sbin/ldconfig
89 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
90
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc %{name}/{AUTHORS,README}
96 %dir %{_sysconfdir}/fonts
97 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
98 %{_sysconfdir}/fonts/fonts.dtd
99 %attr(755,root,root) %{_bindir}/fc-*
100 %attr(755,root,root) %{_libdir}/lib*.so.*.*
101 %{_mandir}/man1/*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %doc %{name}/ChangeLog
106 %attr(755,root,root) %{_bindir}/fontconfig-config
107 %{_includedir}/fontconfig
108 %{_libdir}/lib*.so
109 %{_pkgconfigdir}/fontconfig.pc
This page took 0.226511 seconds and 4 git commands to generate.