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