]> git.pld-linux.org Git - packages/netpbm.git/blob - netpbm.spec
- updated to 9.20.
[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.20
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}-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
20 BuildRequires:  perl
21 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      libgr
23
24 %description
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.
29
30 %description -l pl
31 Pakiet netpbm zawiera biblioteki funkcji obs³uguj±cych ró¿ne formaty
32 graficzne, w tym .pbm, .pgm, .pnm, .ppm.
33
34 %package devel
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
43
44 %description 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.
48
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.
52
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.
57
58 %package static
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
67
68 %description static
69 Static netpbm libraries.
70
71 %description static -l pl
72 Statyczne biblioteki netpbm.
73
74 %package progs
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
82
83 %description 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.
90
91 If you need to use these conversion scripts, you should install
92 netpbm-progs. You'll also need to install the netpbm package.
93
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.
97
98 %prep
99 %setup -q
100 %patch0 -p1
101 %patch1 -p1
102 %patch2 -p1
103
104 %build
105 %{__make} \
106         CC=%{__cc} \
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
114 gnu
115 /usr
116 regular
117 shared
118 yes
119 EOF
120
121 %install
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
138
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}
148
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}/
152
153 # Fixup symlinks.
154 ln -sf gemtopnm $RPM_BUILD_ROOT%{_bindir}/gemtopbm
155 ln -sf pnmtoplainpnm $RPM_BUILD_ROOT%{_bindir}/pnmnoraw
156
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}
160
161 gzip -9nf COPYRIGHT.PATENT HISTORY README
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %post   -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
168
169 %files
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/lib*.so.*.*
172
173 %files devel
174 %defattr(644,root,root,755)
175 %doc *.gz
176 %{_includedir}/*.h
177 %attr(755,root,root) %{_libdir}/lib*.so
178 %{_mandir}/man3/*
179
180 %files static
181 %defattr(644,root,root,755)
182 %{_libdir}/lib*.a
183
184 %files progs
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_bindir}/*
187 %{_mandir}/man[15]/*
This page took 0.262964 seconds and 4 git commands to generate.