]> git.pld-linux.org Git - packages/xorg-lib-libXpm.git/blob - xorg-lib-libXpm.spec
- explicitly set compression tool paths, do not rely on ncompress at build time;...
[packages/xorg-lib-libXpm.git] / xorg-lib-libXpm.spec
1 Summary:        X Pixmap library
2 Summary(pl.UTF-8):      Biblioteka X Pixmap
3 Name:           xorg-lib-libXpm
4 Version:        3.5.15
5 Release:        2
6 License:        MIT
7 Group:          X11/Libraries
8 Source0:        https://xorg.freedesktop.org/releases/individual/lib/libXpm-%{version}.tar.xz
9 # Source0-md5:  b3c58c94e284fd6940d3615e660a0007
10 URL:            https://xorg.freedesktop.org/
11 BuildRequires:  autoconf >= 2.60
12 BuildRequires:  automake
13 # xgettext is used to create pots (although they are not used for anything yet)
14 BuildRequires:  gettext-tools
15 BuildRequires:  libtool
16 BuildRequires:  pkgconfig >= 1:0.19
17 BuildRequires:  tar >= 1:1.22
18 BuildRequires:  xorg-lib-libX11-devel
19 BuildRequires:  xorg-lib-libXext-devel
20 BuildRequires:  xorg-lib-libXt-devel
21 BuildRequires:  xorg-proto-xextproto-devel
22 BuildRequires:  xorg-proto-xproto-devel >= 7.0.17
23 BuildRequires:  xorg-util-util-macros >= 1.8
24 BuildRequires:  xz
25 Suggests:       gzip
26 Suggests:       ncompress
27 Obsoletes:      libXpm < 1:3.5.2
28 Obsoletes:      xpm < 1.3.4
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 X Pixmap library.
33
34 %description -l pl.UTF-8
35 Biblioteka X Pixmap.
36
37 %package devel
38 Summary:        Header files for libXpm library
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libXpm
40 Group:          X11/Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       xorg-lib-libX11-devel
43 Obsoletes:      libXpm-devel < 1:3.5.2
44 Obsoletes:      xpm-devel < 1.3.4
45
46 %description devel
47 X Pixmap library.
48
49 This package contains the header files needed to develop programs that
50 use libXpm.
51
52 %description devel -l pl.UTF-8
53 Biblioteka X Pixmap.
54
55 Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
56 używających biblioteki libXpm.
57
58 %package static
59 Summary:        Static libXpm library
60 Summary(pl.UTF-8):      Biblioteka statyczna libXpm
61 Group:          X11/Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63 Obsoletes:      libXpm-static < 1:3.5.2
64 Obsoletes:      xpm-static < 1.3.4
65
66 %description static
67 X Pixmap library.
68
69 This package contains the static libXpm library.
70
71 %description static -l pl.UTF-8
72 Biblioteka X Pixmap.
73
74 Pakiet zawiera statyczną bibliotekę libXpm.
75
76 %package utils
77 Summary:        X Pixmap utilities
78 Summary(pl.UTF-8):      Programy użytkowe dla X Pixmap
79 Group:          X11/Development/Tools
80 Requires:       %{name}-devel = %{version}-%{release}
81 Obsoletes:      xpm-progs < 1.3.4
82
83 %description utils
84 X Pixmap utilities.
85
86 %description utils -l pl.UTF-8
87 Programy użytkowe dla X Pixmap.
88
89 %prep
90 %setup -q -n libXpm-%{version}
91
92 %build
93 %{__libtoolize}
94 %{__aclocal} -I m4
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure \
99         XPM_PATH_COMPRESS=/usr/bin/compress \
100         XPM_PATH_GZIP=/usr/bin/gzip \
101         XPM_PATH_UNCOMPRESS=/usr/bin/uncompress
102
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc AUTHORS COPYING ChangeLog NEWS.old README.md doc/{FAQ.html,README.html,xpm.PS.gz}
120 %attr(755,root,root) %{_libdir}/libXpm.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libXpm.so.4
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libXpm.so
126 %{_libdir}/libXpm.la
127 %{_includedir}/X11/xpm.h
128 %{_pkgconfigdir}/xpm.pc
129 %{_mandir}/man3/Xpm*.3*
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libXpm.a
134
135 %files utils
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/cxpm
138 %attr(755,root,root) %{_bindir}/sxpm
139 %{_mandir}/man1/cxpm.1*
140 %{_mandir}/man1/sxpm.1*
This page took 0.298963 seconds and 3 git commands to generate.