Git init
[framework/uifw/xorg/lib/libxpm.git] / packaging / libxpm.spec
1
2 Name:       libxpm
3 Summary:    X.Org X11 libXpm runtime library
4 Version:    3.5.9
5 Release:    2.7
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(xproto)
14 BuildRequires:  pkgconfig(x11)
15 BuildRequires:  pkgconfig(xext)
16 BuildRequires:  pkgconfig(xau)
17 BuildRequires:  pkgconfig(xt)
18 BuildRequires:  gettext-tools
19
20 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
21
22 %description
23 Description: %{summary}
24
25
26 %package devel
27 Summary:    Development components for the libXpm library
28 Group:      Development/Libraries
29 Requires:   %{name} = %{version}-%{release}
30
31 %description devel
32 Description: %{summary}
33
34
35 %prep
36 %setup -q -n %{name}-%{version}
37
38
39 %build
40 export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed"
41 %reconfigure
42
43 # Call make instruction with smp support
44 make %{?jobs:-j%jobs}
45
46 %install
47 rm -rf %{buildroot}
48 %make_install
49
50
51 %clean
52 rm -rf %{buildroot}
53
54
55
56 %post -p /sbin/ldconfig
57
58 %postun -p /sbin/ldconfig
59
60
61
62 %files
63 %defattr(-,root,root,-)
64 %doc AUTHORS COPYING ChangeLog
65 %{_libdir}/libXpm.so.4
66 %{_libdir}/libXpm.so.4.11.0
67
68
69 %files devel
70 %defattr(-,root,root,-)
71 %{_bindir}/cxpm
72 %{_bindir}/sxpm
73 %dir %{_includedir}/X11
74 %{_includedir}/X11/xpm.h
75 %{_libdir}/libXpm.so
76 %{_libdir}/pkgconfig/xpm.pc
77 #%dir %{_mandir}/man1x
78 %doc %{_mandir}/man1/*.1*
79