]> git.pld-linux.org Git - packages/netpbm.git/blob - netpbm.spec
- updated to 9.14.
[packages/netpbm.git] / netpbm.spec
1 Summary:        A library for handling different graphics file formats
2 Summary(pl):    Biblioteki do obs³ugi ró¿nych formatów graficznych
3 Name:           netpbm
4 Version:        9.14
5 Release:        1
6 License:        freeware
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
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)
21 Obsoletes:      libgr
22
23 %description
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.
28
29 %description -l pl
30 Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty
31 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
32
33 %package devel
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
42
43 %description 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.
47
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.
51
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.
56
57 %package static
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
66
67 %description static
68 Static netpbm libraries.
69
70 %description static -l pl
71 Statyczne biblioteki netpbm.
72
73 %package progs
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
81
82 %description 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.
89
90 If you need to use these conversion scripts, you should install
91 netpbm-progs. You'll also need to install the netpbm package.
92
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.
96
97 %prep
98 %setup -q
99 %patch0 -p1
100 %patch1 -p1
101 %patch2 -p1
102
103 %build
104 %{__make} \
105         CC=%{__cc} \
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
113 1
114 /usr
115 shared
116 EOF
117
118 %install
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
135
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}
144
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}/
148
149 # Fixup symlinks.
150 ln -sf gemtopnm $RPM_BUILD_ROOT%{_bindir}/gemtopbm
151 ln -sf pnmtoplainpnm $RPM_BUILD_ROOT%{_bindir}/pnmnoraw
152
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}
156
157 gzip -9nf COPYRIGHT.PATENT HISTORY README README.CONFOCAL
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %post   -p /sbin/ldconfig
163 %postun -p /sbin/ldconfig
164
165 %files
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_libdir}/lib*.so.*.*
168
169 %files devel
170 %defattr(644,root,root,755)
171 %doc *.gz
172 %{_includedir}/*.h
173 %attr(755,root,root) %{_libdir}/lib*.so
174 %{_mandir}/man3/*
175
176 %files static
177 %defattr(644,root,root,755)
178 %{_libdir}/lib*.a
179
180 %files progs
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_bindir}/*
183 %{_mandir}/man[15]/*
This page took 0.043342 seconds and 4 git commands to generate.