]> git.pld-linux.org Git - packages/fontconfig.git/blob - fontconfig.spec
64d778d01a64131eb6a5e5d4d9e741a8d6e5ee90
[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.1
7 Epoch:          1
8 License:        MIT
9 Group:          Libraries
10 Source0:        http://fontconfig.org/release/%{name}-%{version}.tar.gz
11 #Patch0:                %{name}-date.patch
12 Patch1:         %{name}-blacklist.patch
13 #Patch2:                %{name}-defaultconfig.patch -- is it needed?
14 #Patch3:                %{name}-fontdir.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 Requires(post): /sbin/ldconfig
23 Provides:       XFree86-fontconfig
24 Provides:       %{name}-realpkg = %{version}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Obsoletes:      XFree86-fontconfig
27
28 %description
29 Fontconfig is designed to locate fonts within the system and select
30 them according to requirements specified by applications.
31
32 %description -l pl
33 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
34 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
35
36 %package devel
37 Summary:        Font configuration and customization library
38 Summary(pl):    Biblioteka do konfigurowania fontów
39 Group:          Development/Libraries
40 Provides:       XFree86-fontconfig-devel
41 Requires:       %{name}-realpkg = %{version}
42 Requires:       freetype-devel
43 Obsoletes:      XFree86-fontconfig-devel
44
45 %description devel
46 Fontconfig is designed to locate fonts within the system and select
47 them according to requirements specified by applications.
48
49 This package contains the header files needed to develop programs that
50 use these fontconfig.
51
52 %description devel -l pl
53 Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
54 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
55
56 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
57 programów korzystaj±cych z biblioteki fontconfig.
58
59 %prep
60 %setup -q
61 #%patch0 -p1
62 %patch1 -p1
63 #%patch2 -p1 -- is it needed?
64 #%patch3 -p1
65
66 %build
67 %{__autoconf}
68 %configure --disable-docs
69 %{__make} CC="%{__cc}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_mandir}/man1
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.1
79 install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.1
80
81 # small docdir location hack
82 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/%{name}-devel $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
83 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/%{name}-* $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}/
84
85 # Remove *.a file cause it is useless?
86 rm $RPM_BUILD_ROOT%{_libdir}/*.a
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 AUTHORS README
100 %dir %{_sysconfdir}/fonts
101 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
102 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
103 %{_sysconfdir}/fonts/fonts.dtd
104 %attr(755,root,root) %{_bindir}/fc-*
105 %attr(755,root,root) %{_libdir}/lib*.so.*.*
106 %{_mandir}/man1/*.1*
107 %{_mandir}/man5/*.5*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %doc ChangeLog
112 %{_includedir}/fontconfig
113 %{_libdir}/lib*.so
114 %{_libdir}/lib*.la
115 %{_pkgconfigdir}/fontconfig.pc
116 %{_mandir}/man3/*.3*
This page took 0.081058 seconds and 3 git commands to generate.