]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
- release 1,
[packages/fontconfig.git] / fontconfig.spec
1 Summary:        Font configuration and customization library
2 Summary(pl):    Biblioteka do konfigurowania fontów
3 Summary(pt_BR): Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
4 Name:           fontconfig
5 Version:        2.2.0
6 Release:        1
7 Epoch:          1
8 License:        MIT
9 Group:          Libraries
10 Source0:        http://fontconfig.org/release/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-blacklist.patch
12 Patch1:         %{name}-make-jN.patch
13 URL:            http://fontconfig.org/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  ed
17 BuildRequires:  expat-devel
18 BuildRequires:  freetype-devel
19 BuildRequires:  libtool
20 Requires(post): /sbin/ldconfig
21 Provides:       XFree86-fontconfig
22 Provides:       %{name}-realpkg = %{version}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Obsoletes:      XFree86-fontconfig
25
26 %description
27 Fontconfig is designed to locate fonts within the system and select
28 them according to requirements specified by applications.
29
30 %description -l pl
31 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
32 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
33
34 %description -l pt_BR
35 Fontconfig é uma biblioteca para configuração e customização do acesso
36 a fontes.
37
38 %package devel
39 Summary:        Font configuration and customization library
40 Summary(pl):    Biblioteka do konfigurowania fontów
41 Summary(pt_BR): Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
42 Group:          Development/Libraries
43 Requires:       %{name}-realpkg = %{version}
44 Requires:       expat-devel
45 Requires:       freetype-devel
46 Provides:       %{name}-devel-realpkg = %{version}
47 Provides:       XFree86-fontconfig-devel
48 Obsoletes:      XFree86-fontconfig-devel
49
50 %description devel
51 Fontconfig is designed to locate fonts within the system and select
52 them according to requirements specified by applications.
53
54 This package contains the header files needed to develop programs that
55 use these fontconfig.
56
57 %description devel -l pl
58 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
59 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
60
61 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
62 programów korzystaj±cych z biblioteki fontconfig.
63
64 %description devel -l pt_BR
65 Fontconfig é uma biblioteca para configuração e customização do acesso
66 a fontes.
67
68 %package static
69 Summary:        Static font configuration and customization library
70 Summary(pl):    Statyczna biblioteka do konfigurowania fontów
71 Group:          Development/Libraries
72 Requires:       %{name}-devel-realpkg = %{version}
73 Provides:       XFree86-fontconfig-static
74 Obsoletes:      XFree86-fontconfig-static
75
76 %description static
77 This package contains static version of fontconfig library.
78
79 %description static -l pl
80 Ten pakiet zawiera statyczn± wersjê biblioteki fontconfig.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85 %patch1 -p1
86
87 %build
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__automake}
92 %configure --disable-docs
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_mandir}/man1
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.1
103 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.1
104
105 mv -f $RPM_BUILD_ROOT%{_docdir}/%{name} installed-docs
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post
111 /sbin/ldconfig
112 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
113
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING ChangeLog README
119 %dir %{_sysconfdir}/fonts
120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
121 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
122 %{_sysconfdir}/fonts/fonts.dtd
123 %attr(755,root,root) %{_bindir}/fc-*
124 %attr(755,root,root) %{_libdir}/lib*.so.*.*
125 %{_mandir}/man1/*.1*
126 %{_mandir}/man5/*.5*
127
128 %files devel
129 %defattr(644,root,root,755)
130 %doc installed-docs/fontconfig-devel/*.html
131 %attr(755,root,root) %{_libdir}/lib*.so
132 %{_libdir}/lib*.la
133 %{_includedir}/fontconfig
134 %{_pkgconfigdir}/fontconfig.pc
135 %{_mandir}/man3/*.3*
136
137 %files static
138 %defattr(644,root,root,755)
139 %{_libdir}/lib*.a
This page took 0.575817 seconds and 4 git commands to generate.