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