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