f7cfd819f2d63e6eb699abed356978a139479d65
[framework/uifw/xorg/lib/libxres.git] / packaging / libxres.spec
1
2 Name:       libxres
3 Summary:    X.Org X11 libXres runtime library
4 Version:    1.0.5
5 Release:    2.4
6 Group:      System/Libraries
7 License:    MIT
8 URL:        http://www.x.org
9 Source0:    http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.gz
10 Requires(post):  /sbin/ldconfig
11 Requires(postun):  /sbin/ldconfig
12 BuildRequires:  pkgconfig(xorg-macros)
13 BuildRequires:  pkgconfig(x11)
14 BuildRequires:  pkgconfig(xext)
15 BuildRequires:  pkgconfig(resourceproto)
16
17 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
18
19 %description
20 Description: %{summary}
21
22
23 %package devel
24 Summary:    X.Org X11 libXres development package
25 Group:      System/Libraries
26 Requires:   %{name} = %{version}-%{release}
27 Requires:   xorg-x11-filesystem
28
29 %description devel
30 Description: %{summary}
31
32
33 %prep
34 %setup -q -n %{name}-%{version}
35
36
37 %build
38 export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed"
39 %reconfigure 
40
41 # Call make instruction with smp support
42 make %{?jobs:-j%jobs}
43
44 %install
45 rm -rf %{buildroot}
46 %make_install
47
48
49 %clean
50 rm -rf %{buildroot}
51
52
53
54 %post -p /sbin/ldconfig
55
56 %postun -p /sbin/ldconfig
57
58
59
60 %files
61 %defattr(-,root,root,-)
62 %doc AUTHORS COPYING README ChangeLog
63 %{_libdir}/libXRes.so.1
64 %{_libdir}/libXRes.so.1.0.0
65
66
67 %files devel
68 %defattr(-,root,root,-)
69 %dir %{_includedir}/X11
70 %dir %{_includedir}/X11/extensions
71 %{_includedir}/X11/extensions/XRes.h
72 %{_libdir}/libXRes.so
73 %{_libdir}/pkgconfig/xres.pc
74 #%dir %{_mandir}/man3x
75 %{_mandir}/man3/*.3*
76