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