packaging: version up to 2.3.2
[platform/upstream/libXft.git] / packaging / libXft.spec
1 %bcond_with x
2
3 Name:           libXft
4 Version:        2.3.2
5 Release:        0
6 License:        MIT
7 Summary:        X FreeType library
8 Url:            http://xorg.freedesktop.org/
9 Group:          Graphics/X Window System
10 Source:         %{name}-%{version}.tar.bz2
11 Source1001:     libXft.manifest
12 BuildRequires:  autoconf >= 2.60
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 BuildRequires:  pkgconfig
16 BuildRequires:  pkgconfig(fontconfig) >= 2.5.92
17 BuildRequires:  pkgconfig(freetype2) >= 2.1.6
18 BuildRequires:  pkgconfig(x11)
19 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
20 BuildRequires:  pkgconfig(xrender) >= 0.8.2
21
22 %if !%{with x}
23 ExclusiveArch:
24 %endif
25
26 %description
27 Xft is a library that connects X applications with the FreeType font
28 rasterization library. Xft uses fontconfig to locate fonts so it has
29 no configuration files.
30
31 %package devel
32 Summary:        Development files for the X FreeType library
33 Group:          Development/Libraries
34 Requires:       libXft = %{version}
35
36 %description devel
37 Xft is a library that connects X applications with the FreeType font
38 rasterization library. Xft uses fontconfig to locate fonts so it has
39 no configuration files.
40
41 This package contains the development headers for the library found
42 in libXft.
43
44 %prep
45 %setup -q
46 cp %{SOURCE1001} .
47
48 %build
49 autoreconf -fi
50 %configure --disable-static
51 make %{?_smp_mflags}
52
53 %install
54 %make_install
55
56 %post  -p /sbin/ldconfig
57
58 %postun  -p /sbin/ldconfig
59
60 %files
61 %manifest %{name}.manifest
62 %defattr(-,root,root)
63 %license COPYING
64 %{_libdir}/libXft.so.2*
65
66 %files devel
67 %manifest %{name}.manifest
68 %defattr(-,root,root)
69 %{_includedir}/X11/Xft
70 %{_libdir}/libXft.so
71 %{_libdir}/pkgconfig/xft.pc
72 %{_mandir}/man3/*
73
74 %changelog