]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
- added {Provides,Obsoletes}: XFree86-fontconfig
[packages/fontconfig.git] / fontconfig.spec
1
2 %define fcname          fcpackage
3 %define fcversion       2_1
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:        8
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 URL:            http://fontconfig.org/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  ed
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
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 Provides:       XFree86-fontconfig-devel
43 Requires:       %{name} = %{version}
44 Requires:       freetype-devel
45 Obsoletes:      XFree86-fontconfig-devel
46
47 %description devel
48 Fontconfig is designed to locate fonts within the system and select
49 them according to requirements specified by applications.
50
51 This package contains the header files needed to develop programs that
52 use these fontconfig.
53
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.
57
58 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
59 programów korzystaj±cych z biblioteki fontconfig.
60
61 %prep
62 %setup -q -n %{fcname}.%{fcversion}
63 %patch0 -p1
64 cd %{name}
65 %patch1 -p1
66 %patch2 -p1
67 %patch3 -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}/man{1,3}
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.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
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91 /sbin/ldconfig
92 HOME=/root %{_bindir}/fc-cache -f 2> /dev/null
93
94 %postun -p /sbin/ldconfig
95
96 %files
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.*.*
104 %{_mandir}/man1/*.1*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %doc %{name}/ChangeLog
109 %attr(755,root,root) %{_bindir}/fontconfig-config
110 %{_includedir}/fontconfig
111 %{_libdir}/lib*.so
112 %{_pkgconfigdir}/fontconfig.pc
113 %{_mandir}/man3/*.3*
This page took 0.038195 seconds and 4 git commands to generate.