Tizen 2.1 base
[framework/uifw/xorg/lib/libxpm.git] / packaging / libXpm.spec
1 Summary: X.Org X11 libXpm runtime library
2 Name: libXpm
3 Version: 3.5.10
4 Release: 1
5 License: MIT
6 Group: System Environment/Libraries
7 URL: http://www.x.org
8
9 Source0: %{name}-%{version}.tar.gz
10
11 BuildRequires: gettext
12 BuildRequires: pkgconfig(xext) pkgconfig(xt) pkgconfig(xau)
13 BuildRequires:  pkgconfig(xorg-macros)
14 BuildRequires:  pkgconfig(xproto)
15
16 %description
17 X.Org X11 libXpm runtime library
18
19 %package devel
20 Summary: X.Org X11 libXpm development package
21 Group: Development/Libraries
22 Requires: %{name} = %{version}-%{release}
23 Provides: libxpm-devel
24
25 %description devel
26 X.Org X11 libXpm development package
27
28 %prep
29 %setup -q
30
31 %build
32 %reconfigure --disable-static \
33                LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
34 make %{?jobs:-j%jobs}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 mkdir -p %{buildroot}/usr/share/license
39 cp -af COPYING %{buildroot}/usr/share/license/%{name}
40 make install DESTDIR=$RPM_BUILD_ROOT
41
42 # We intentionally don't ship *.la files
43 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
44
45 %remove_docs
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
52
53 %files
54 %defattr(-,root,root,-)
55 /usr/share/license/%{name}
56 %doc AUTHORS COPYING ChangeLog
57 %{_libdir}/libXpm.so.4
58 %{_libdir}/libXpm.so.4.11.0
59
60 %files devel
61 %defattr(-,root,root,-)
62 %{_bindir}/cxpm
63 %{_bindir}/sxpm
64 %{_includedir}/X11/xpm.h
65 %{_libdir}/libXpm.so
66 %{_libdir}/pkgconfig/xpm.pc
67 #%dir %{_mandir}/man1x
68 #%{_mandir}/man1/*.1*
69 #%{_mandir}/man1/*.1x*