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