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