upload tizen2.0 source
[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
39 make install DESTDIR=$RPM_BUILD_ROOT
40
41 # We intentionally don't ship *.la files
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}/libXpm.so.4
56 %{_libdir}/libXpm.so.4.11.0
57
58 %files devel
59 %defattr(-,root,root,-)
60 %{_bindir}/cxpm
61 %{_bindir}/sxpm
62 %{_includedir}/X11/xpm.h
63 %{_libdir}/libXpm.so
64 %{_libdir}/pkgconfig/xpm.pc
65 #%dir %{_mandir}/man1x
66 #%{_mandir}/man1/*.1*
67 #%{_mandir}/man1/*.1x*