]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
- release 3
[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:        3
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 URL:            http://fontconfig.org/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  ed
19 BuildRequires:  expat-devel
20 BuildRequires:  freetype-devel
21 BuildRequires:  libtool
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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} = %{version}
37 Requires:       freetype-devel
38
39 %description devel
40 Fontconfig is designed to locate fonts within the system and select
41 them according to requirements specified by applications.
42
43 This package contains the header files needed to develop programs that
44 use these fontconfig.
45
46 %description devel -l pl
47 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
48 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
49
50 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
51 programów korzystaj±cych z biblioteki fontconfig.
52
53 %prep
54 %setup -q -n %{fcname}.%{fcversion}
55 %patch0 -p1
56
57 %build
58 cd %{name}
59 %{__autoconf}
60 %configure
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_mandir}/man1
66
67 cd %{name}
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.3
72 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.3
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc %{name}/{AUTHORS,README}
83 %dir %{_sysconfdir}/fonts
84 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
85 %{_sysconfdir}/fonts/fonts.dtd
86 %attr(755,root,root) %{_bindir}/fc-*
87 %attr(755,root,root) %{_libdir}/lib*.so.*.*
88 %{_mandir}/man1/*
89
90 %files devel
91 %defattr(644,root,root,755)
92 %doc %{name}/ChangeLog
93 %attr(755,root,root) %{_bindir}/fontconfig-config
94 %{_includedir}/fontconfig
95 %{_libdir}/lib*.so
96 %{_pkgconfigdir}/fontconfig.pc
This page took 0.085012 seconds and 3 git commands to generate.