upload tizen2.0 source
[framework/uifw/xorg/lib/libxaw.git] / packaging / libXaw.spec
1 Summary: X Athena Widget Set
2 Name: libXaw
3 Version: 1.0.11
4 Release: 1
5 License: MIT
6 URL: http://www.x.org
7 Group: System Environment/Libraries
8
9 Source0: %{name}-%{version}.tar.gz
10
11 BuildRequires: pkgconfig(xproto) pkgconfig(x11) pkgconfig(xt)
12 BuildRequires: pkgconfig(xmu) pkgconfig(xpm) pkgconfig(xext)
13 BuildRequires:  pkgconfig(xorg-macros)
14 # Required by the configury.
15 BuildRequires: ed
16 BuildRequires: xorg-x11-xutils-dev
17
18 %description
19 Xaw is a widget set based on the X Toolkit Intrinsics (Xt) Library.
20
21 %package devel
22 Summary: Development files for %{name}
23 Group: Development/Libraries
24 Provides: libxaw-devel 
25 Requires: %{name} = %{version}-%{release}
26 Requires: pkgconfig
27 Requires: pkgconfig(xproto) pkgconfig(xmu) pkgconfig(xt) pkgconfig(xpm)
28
29 %description devel
30 X.Org X11 libXaw development package
31
32 %prep
33 %setup -q
34
35 %build
36 export CFLAGS="${CFLAGS} $RPM_OPT_FLAGS -Os"
37 %reconfigure \
38            LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" \
39                --disable-xaw8 --disable-static \
40                --disable-xaw6
41 make %{?jobs:-j%jobs}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
47 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
48
49 %remove_docs
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post -p /sbin/ldconfig
55 %postun -p /sbin/ldconfig
56
57 %files
58 %defattr(-,root,root,-)
59 %doc COPYING README ChangeLog
60 %{_libdir}/libXaw.so.7
61 %{_libdir}/libXaw7.so.7
62 %{_libdir}/libXaw7.so.7.0.0
63
64 %files devel
65 %defattr(-,root,root,-)
66 %dir %{_includedir}/X11/Xaw
67 %doc COPYING
68 %{_includedir}/X11/Xaw/*.h
69 # FIXME:  Is this C file really supposed to be here?
70 %{_includedir}/X11/Xaw/Template.c
71 %{_libdir}/libXaw.so
72 %{_libdir}/libXaw7.so
73 %{_libdir}/pkgconfig/xaw7.pc
74 #%{_mandir}/man3/*.3*
75 #%dir %{_docdir}/%{name}-%{version}-%{release}
76 #%{_docdir}/%{name}-%{version}-%{release}/*.xml
77 #{_docdir}/%{name}-%{version}-%{release}/%{name}.html
78 #{_docdir}/%{name}-%{version}-%{release}/%{name}.txt