upload tizen1.0 source
[framework/uifw/xorg/lib/libxrandr.git] / packaging / libxrandr.spec
1 Name:       libxrandr
2 Summary:    X.Org X11 libXrandr runtime library
3 Version:    1.3.1
4 Release:    2.6
5 Group:      System/Libraries
6 License:    MIT
7 URL:        http://www.x.org/
8 Source0:    http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires:  pkgconfig(randrproto) >= 1.3
12 BuildRequires:  pkgconfig(xproto)
13 BuildRequires:  pkgconfig(xextproto)
14 BuildRequires:  pkgconfig(randrproto)
15 BuildRequires:  pkgconfig(x11)
16 BuildRequires:  pkgconfig(xext)
17 BuildRequires:  pkgconfig(xrender)
18 BuildRequires:  pkgconfig(xorg-macros)
19
20
21 %description
22 Xorg libXrandr runtime library
23
24
25 %package devel
26 Summary:    Development components for the libXrandr library
27 Group:      Development/Libraries
28 Requires:   %{name} = %{version}-%{release}
29 Requires:   libxrender-devel
30
31 %description devel
32 Xorg libXrandr development package
33
34
35 %prep
36 %setup -q -n %{name}-%{version}
37
38
39 %build
40 export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed"
41 %reconfigure --disable-static
42 make %{?jobs:-j%jobs}
43
44 %install
45 rm -rf %{buildroot}
46 %make_install
47
48
49
50
51 %post -p /sbin/ldconfig
52
53 %postun -p /sbin/ldconfig
54
55
56
57
58
59 %files
60 %defattr(-,root,root,-)
61 %doc COPYING
62 %{_libdir}/libXrandr.so.2
63 %{_libdir}/libXrandr.so.2.2.0
64
65
66 %files devel
67 %defattr(-,root,root,-)
68 %doc AUTHORS ChangeLog
69 %dir %{_includedir}/X11
70 %dir %{_includedir}/X11/extensions
71 %{_includedir}/X11/extensions/Xrandr.h
72 %{_libdir}/libXrandr.so
73 %{_libdir}/pkgconfig/xrandr.pc
74 %doc %{_mandir}/man3/*.3*
75