2e8a2843e2e5bfc147fc592b34a62132db2cd87a
[platform/upstream/libXrender.git] / packaging / libXrender.spec
1 %bcond_with x
2
3 Name:           libXrender
4 Version:        0.9.7
5 Release:        0
6 License:        MIT
7 Summary:        X Rendering Extension library
8 Url:            http://cgit.freedesktop.org/xorg/lib/libXrender/
9 Group:          Graphics/X Window System
10
11 Source:         %{name}-%{version}.tar.bz2
12 Source1001:     libXrender.manifest
13 BuildRequires:  pkgconfig
14 BuildRequires:  pkgconfig(renderproto) >= 0.9
15 BuildRequires:  pkgconfig(x11)
16 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
17
18 %if !%{with x}
19 ExclusiveArch:
20 %endif
21
22 %description
23 The Xrender library is designed as a lightweight library interface to
24 the Render extension.
25
26 %package devel
27 Summary:        Development files for the X11 Render Extension library
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}
30
31 %description devel
32 The Xrender library is designed as a lightweight library interface to
33 the Render extension.
34
35 This package contains the development headers for the library found
36 in %{name}.
37
38 %prep
39 %setup -q
40 cp %{SOURCE1001} .
41
42 %build
43 %configure --docdir=%_docdir/%{name} --disable-static
44 make %{?_smp_mflags}
45
46 %install
47 %make_install
48
49 %post  -p /sbin/ldconfig
50
51 %postun  -p /sbin/ldconfig
52
53 %files
54 %manifest %{name}.manifest
55 %defattr(-,root,root)
56 %license COPYING
57 %{_libdir}/libXrender.so.1*
58
59 %files devel
60 %manifest %{name}.manifest
61 %defattr(-,root,root)
62 %{_includedir}/X11/*
63 %{_libdir}/libXrender.so
64 %{_libdir}/pkgconfig/xrender.pc
65 %_docdir/%{name}
66
67 %changelog