]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
15b1f90482ae3c9d0ba79a10d1e83034bd40aa55
[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:        5
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 Patch5:         %{name}-slighthint.patch
20 URL:            http://fontconfig.org/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  ed
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)
29
30 %description
31 Fontconfig is designed to locate fonts within the system and select
32 them according to requirements specified by applications.
33
34 %description -l pl
35 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
36 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
37
38 %package devel
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
44
45 %description devel
46 Fontconfig is designed to locate fonts within the system and select
47 them according to requirements specified by applications.
48
49 This package contains the header files needed to develop programs that
50 use these fontconfig.
51
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.
55
56 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
57 programów korzystaj±cych z biblioteki fontconfig.
58
59 %prep
60 %setup -q -n %{fcname}.%{fcversion}
61 %patch0 -p1
62 cd %{name}
63 %patch1 -p1
64 %patch2 -p1
65 %patch3 -p1
66 %patch4 -p1
67 %patch5 -p1
68
69 %build
70 cd %{name}
71 %{__autoconf}
72 %configure
73 %{__make} CC=%{__cc}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_mandir}/man1
78
79 cd %{name}
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
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
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 /sbin/ldconfig
91 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
92
93 %postun -p /sbin/ldconfig
94
95 %files
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.*.*
103 %{_mandir}/man1/*
104
105 %files devel
106 %defattr(644,root,root,755)
107 %doc %{name}/ChangeLog
108 %attr(755,root,root) %{_bindir}/fontconfig-config
109 %{_includedir}/fontconfig
110 %{_libdir}/lib*.so
111 %{_pkgconfigdir}/fontconfig.pc
This page took 0.099936 seconds and 2 git commands to generate.