Tizen 2.1 base
[framework/uifw/xorg/lib/libxmu.git] / packaging / libXmu.spec
1 # TODO: libXmuu split and/or elf filter emulation
2
3 Summary: X.Org X11 libXmu/libXmuu runtime libraries
4 Name: libXmu
5 Version: 1.1.1
6 Release: 1
7 License: MIT
8 Group: System Environment/Libraries
9 URL: http://www.x.org
10
11 Source0: %{name}-%{version}.tar.gz
12
13 BuildRequires:  pkgconfig(xorg-macros)
14 BuildRequires: xorg-x11-xutils-dev
15 BuildRequires: libX11-devel
16 BuildRequires: libXext-devel
17 BuildRequires: libXt-devel
18
19 %description
20 X.Org X11 libXmu/libXmuu runtime libraries
21
22 %package devel
23 Summary: X.Org X11 libXmu development package
24 Group: Development/Libraries
25 Requires: %{name} = %{version}-%{release}
26 Provides: libxmu-devel
27
28 %description devel
29 X.Org X11 libXmu development package
30
31 %prep
32 %setup -q
33
34 %build
35 %reconfigure --disable-static \
36                LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
37 make %{?jobs:-j%jobs}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 mkdir -p %{buildroot}/usr/share/license
42 cp -af COPYING %{buildroot}/usr/share/license/%{name}
43 make install DESTDIR=$RPM_BUILD_ROOT
44
45 # We intentionally don't ship *.la files
46 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
47
48 # fixup later
49 rm -rf $RPM_BUILD_ROOT%{_docdir}
50
51 %remove_docs
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
58
59 %files
60 %defattr(-,root,root,-)
61 /usr/share/license/%{name}
62 %doc COPYING README ChangeLog
63 %{_libdir}/libXmu.so.6
64 %{_libdir}/libXmu.so.6.2.0
65 %{_libdir}/libXmuu.so.1
66 %{_libdir}/libXmuu.so.1.0.0
67
68 %files devel
69 %defattr(-,root,root,-)
70 %dir %{_includedir}/X11/Xmu
71 %{_includedir}/X11/Xmu/Atoms.h
72 %{_includedir}/X11/Xmu/CharSet.h
73 %{_includedir}/X11/Xmu/CloseHook.h
74 %{_includedir}/X11/Xmu/Converters.h
75 %{_includedir}/X11/Xmu/CurUtil.h
76 %{_includedir}/X11/Xmu/CvtCache.h
77 %{_includedir}/X11/Xmu/DisplayQue.h
78 %{_includedir}/X11/Xmu/Drawing.h
79 %{_includedir}/X11/Xmu/Editres.h
80 %{_includedir}/X11/Xmu/EditresP.h
81 %{_includedir}/X11/Xmu/Error.h
82 %{_includedir}/X11/Xmu/ExtAgent.h
83 %{_includedir}/X11/Xmu/Initer.h
84 %{_includedir}/X11/Xmu/Lookup.h
85 %{_includedir}/X11/Xmu/Misc.h
86 %{_includedir}/X11/Xmu/StdCmap.h
87 %{_includedir}/X11/Xmu/StdSel.h
88 %{_includedir}/X11/Xmu/SysUtil.h
89 %{_includedir}/X11/Xmu/WhitePoint.h
90 %{_includedir}/X11/Xmu/WidgetNode.h
91 %{_includedir}/X11/Xmu/WinUtil.h
92 %{_includedir}/X11/Xmu/Xct.h
93 %{_includedir}/X11/Xmu/Xmu.h
94 %{_libdir}/libXmu.so
95 %{_libdir}/libXmuu.so
96 %{_libdir}/pkgconfig/xmu.pc
97 %{_libdir}/pkgconfig/xmuu.pc