1 Summary: A library for handling different graphics file formats
2 Summary(pl): Biblioteki do obs³ugi ró¿nych formatów graficznych
12 Source0: ftp://download.sourceforge.net/pub/sourceforge/netpbm/%{name}-%{version}.tgz
13 Patch0: %{name}-install.patch
14 Patch1: %{name}-system-jbig.patch
15 Patch2: %{name}-Makefile.common.patch
16 BuildRequires: libjpeg-devel
17 BuildRequires: libpng-devel
18 BuildRequires: libtiff-devel
19 BuildRequires: jbigkit-devel
21 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The netpbm package contains a library of functions which support
26 programs for handling various graphics file formats, including .pbm
27 (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
28 .ppm (portable pixmaps) and others.
31 Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty
32 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
35 Summary: Development tools for programs which will use the netpbm libraries
36 Summary(pl): Biblioteka netpbm - czê¶æ dla programistów
37 Group: Development/Libraries
38 Group(de): Entwicklung/Libraries
39 Group(fr): Development/Librairies
40 Group(pl): Programowanie/Biblioteki
41 Requires: %{name} = %{version}
42 Obsoletes: libgr-devel
45 The netpbm-devel package contains the header files and programmer's
46 documentation for developing programs which can handle the various
47 graphics file formats supported by the netpbm libraries.
49 Install netpbm-devel if you want to develop programs for handling the
50 graphics file formats supported by the netpbm libraries. You'll also
51 need to have the netpbm package installed.
53 %description devel -l pl
54 Pakiet netpbm-devel zawiera pliki nag³ówkowe i dokumentacjê dla
55 programistów do tworzenia programów obs³uguj±cych formaty
56 graficzne wspierane przez netpbm.
59 Summary: Static netpbm libraries
60 Summary(pl): Statyczne biblioteki netpbm
61 Group: Development/Libraries
62 Group(de): Entwicklung/Libraries
63 Group(fr): Development/Librairies
64 Group(pl): Programowanie/Biblioteki
65 Requires: %{name}-devel = %{version}
66 Obsoletes: libgr-static
69 Static netpbm libraries.
71 %description static -l pl
72 Statyczne biblioteki netpbm.
75 Summary: Tools for manipulating graphics files in netpbm supported formats
76 Summary(pl): Narzêdzia do konwersji plików graficznych
77 Group: Applications/Graphics
78 Group(de): Applikationen/Grafik
79 Group(pl): Aplikacje/Grafika
80 Requires: %{name} = %{version}
81 Obsoletes: libgr-progs
84 The netpbm-progs package contains a group of scripts for manipulating
85 the graphics files in formats which are supported by the netpbm
86 libraries. For example, netpbm-progs includes the rasttopnm script,
87 which will convert a Sun rasterfile into a portable anymap.
88 Netpbm-progs contains many other scripts for converting from one
89 graphics file format to another.
91 If you need to use these conversion scripts, you should install
92 netpbm-progs. You'll also need to install the netpbm package.
94 %description progs -l pl
95 Pakiet netpbm-progs zawiera programy konwertuj±ce pliki graficzne
96 do oraz z formatów obs³ugiwanych przez biblioteki netpbm.
107 CFLAGS="%{rpmcflags} -fPIC" \
108 JPEGINC_DIR=%{_includedir} \
109 PNGINC_DIR=%{_includedir} \
110 TIFFINC_DIR=%{_includedir} \
111 JPEGLIB_DIR=%{_libdir} \
112 PNGLIB_DIR=%{_libdir} \
113 TIFFLIB_DIR=%{_libdir} << EOF
122 rm -rf $RPM_BUILD_ROOT
123 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
124 PATH="`pwd`:${PATH}" make install \
125 JPEGINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
126 PNGINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
127 TIFFINC_DIR=$RPM_BUILD_ROOT%{_includedir} \
128 JPEGLIB_DIR=%{_libdir} \
129 PNGLIB_DIR=%{_libdir} \
130 TIFFLIB_DIR=%{_libdir} \
131 INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} \
132 INSTALLBINARIES=$RPM_BUILD_ROOT%{_bindir} \
133 INSTALLHDRS=$RPM_BUILD_ROOT%{_includedir} \
134 INSTALLLIBS=$RPM_BUILD_ROOT%{_libdir} \
135 INSTALLMANUALS1=$RPM_BUILD_ROOT%{_mandir}/man1 \
136 INSTALLMANUALS3=$RPM_BUILD_ROOT%{_mandir}/man3 \
137 INSTALLMANUALS5=$RPM_BUILD_ROOT%{_mandir}/man5
139 # Install header files.
140 install -d $RPM_BUILD_ROOT%{_includedir}
141 install pbm/pbm.h $RPM_BUILD_ROOT/%{_includedir}
142 install pbm/pm.h $RPM_BUILD_ROOT/%{_includedir}
143 install pm_config.h $RPM_BUILD_ROOT/%{_includedir}
144 install pgm/pgm.h $RPM_BUILD_ROOT/%{_includedir}
145 install pnm/pnm.h $RPM_BUILD_ROOT/%{_includedir}
146 install ppm/ppm.h $RPM_BUILD_ROOT/%{_includedir}
147 install shhopt/shhopt.h $RPM_BUILD_ROOT/%{_includedir}
149 # Install the static-only librle.a
150 install urt/{rle,rle_config}.h $RPM_BUILD_ROOT/%{_includedir}/
151 install urt/librle.a $RPM_BUILD_ROOT%{_libdir}/
154 ln -sf gemtopnm $RPM_BUILD_ROOT%{_bindir}/gemtopbm
155 ln -sf pnmtoplainpnm $RPM_BUILD_ROOT%{_bindir}/pnmnoraw
157 # Fixup perl paths in the two scripts that require it.
158 perl -pi -e 's^/bin/perl^%{__perl}^' \
159 $RPM_BUILD_ROOT%{_bindir}/{ppmfade,ppmshadow}
161 gzip -9nf COPYRIGHT.PATENT HISTORY README
164 rm -rf $RPM_BUILD_ROOT
166 %post -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/lib*.so.*.*
174 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_libdir}/lib*.so
181 %defattr(644,root,root,755)
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_bindir}/*