1 | Summary: A library for handling different graphics file formats
|
---|
2 | Name: netpbm
|
---|
3 | Version: 10.84.01
|
---|
4 | Release: 1%{?dist}
|
---|
5 | # See copyright_summary for details
|
---|
6 | License: BSD and GPLv2 and IJG and MIT and Public Domain
|
---|
7 | URL: http://netpbm.sourceforge.net/
|
---|
8 |
|
---|
9 | Vendor: bww bitwise works GmbH
|
---|
10 | %scm_source github https://github.com/bitwiseworks/%{name}-os2 master-os2
|
---|
11 | # https://svn.code.sf.net/p/netpbm/code/advanced netpbm-%%{version}
|
---|
12 | # https://svn.code.sf.net/p/netpbm/code/userguide netpbm-%%{version}/userguide
|
---|
13 |
|
---|
14 | BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex, gcc
|
---|
15 | BuildRequires: perl-generators, python, libxml2-devel
|
---|
16 | #BuildRequires: libX11-devel, python3, jasper-devel
|
---|
17 | BuildRequires: ghostscript
|
---|
18 | #Provides: bundled(jasper), bundled(jbigkit)
|
---|
19 |
|
---|
20 | %description
|
---|
21 | The netpbm package contains a library of functions which support
|
---|
22 | programs for handling various graphics file formats, including .pbm
|
---|
23 | (portable bitmaps), .pgm (portable graymaps), .pnm (portable anymaps),
|
---|
24 | .ppm (portable pixmaps) and others.
|
---|
25 |
|
---|
26 | %package devel
|
---|
27 | Summary: Development tools for programs which will use the netpbm libraries
|
---|
28 | Requires: netpbm = %{version}-%{release}
|
---|
29 |
|
---|
30 | %description devel
|
---|
31 | The netpbm-devel package contains the header files and static libraries,
|
---|
32 | etc., for developing programs which can handle the various graphics file
|
---|
33 | formats supported by the netpbm libraries.
|
---|
34 |
|
---|
35 | Install netpbm-devel if you want to develop programs for handling the
|
---|
36 | graphics file formats supported by the netpbm libraries. You'll also need
|
---|
37 | to have the netpbm package installed.
|
---|
38 |
|
---|
39 | %package progs
|
---|
40 | Summary: Tools for manipulating graphics files in netpbm supported formats
|
---|
41 | Requires: ghostscript
|
---|
42 | Requires: netpbm = %{version}-%{release}
|
---|
43 |
|
---|
44 | %description progs
|
---|
45 | The netpbm-progs package contains a group of scripts for manipulating the
|
---|
46 | graphics files in formats which are supported by the netpbm libraries. For
|
---|
47 | example, netpbm-progs includes the rasttopnm script, which will convert a
|
---|
48 | Sun rasterfile into a portable anymap. Netpbm-progs contains many other
|
---|
49 | scripts for converting from one graphics file format to another.
|
---|
50 |
|
---|
51 | If you need to use these conversion scripts, you should install
|
---|
52 | netpbm-progs. You'll also need to install the netpbm package.
|
---|
53 |
|
---|
54 | %package doc
|
---|
55 | Summary: Documentation for tools manipulating graphics files in netpbm supported formats
|
---|
56 | Requires: netpbm-progs = %{version}-%{release}
|
---|
57 |
|
---|
58 | %description doc
|
---|
59 | The netpbm-doc package contains a documentation in HTML format for utilities
|
---|
60 | present in netpbm-progs package.
|
---|
61 |
|
---|
62 | If you need to look into the HTML documentation, you should install
|
---|
63 | netpbm-doc. You'll also need to install the netpbm-progs package.
|
---|
64 |
|
---|
65 | %debug_package
|
---|
66 |
|
---|
67 | %prep
|
---|
68 | %scm_setup
|
---|
69 |
|
---|
70 | %build
|
---|
71 | ./configure <<EOF
|
---|
72 |
|
---|
73 | os2
|
---|
74 |
|
---|
75 |
|
---|
76 | n
|
---|
77 |
|
---|
78 |
|
---|
79 | jpeg8.dll
|
---|
80 |
|
---|
81 | tiff5.dll
|
---|
82 |
|
---|
83 | z.dll
|
---|
84 |
|
---|
85 | none
|
---|
86 |
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 | EOF
|
---|
92 |
|
---|
93 | TOP=`pwd`
|
---|
94 |
|
---|
95 | make \
|
---|
96 | LADD="-lcx" \
|
---|
97 | VENDOR="%{vendor}"
|
---|
98 |
|
---|
99 | # prepare man files
|
---|
100 | cd userguide
|
---|
101 | rm -f *.manual-pages
|
---|
102 | rm -f *.manfix
|
---|
103 | for i in *.html ; do
|
---|
104 | ../buildtools/makeman ${i}
|
---|
105 | done
|
---|
106 | for i in 1 3 5 ; do
|
---|
107 | mkdir -p man/man${i}
|
---|
108 | mv *.${i} man/man${i}
|
---|
109 | done
|
---|
110 |
|
---|
111 |
|
---|
112 | %install
|
---|
113 | make package pkgdir=%{buildroot}/@unixroot/usr LINUXSVGALIB="NONE" XML2LIBS="NONE"
|
---|
114 |
|
---|
115 | mkdir -p %{buildroot}%{_datadir}
|
---|
116 | mv userguide/man %{buildroot}%{_mandir}
|
---|
117 |
|
---|
118 | # Get rid of the useless non-ascii character in pgmminkowski.1
|
---|
119 | sed -i 's/\xa0//' %{buildroot}%{_mandir}/man1/pgmminkowski.1
|
---|
120 |
|
---|
121 | # Don't ship man pages for non-existent binaries and bogus ones
|
---|
122 | for i in hpcdtoppm \
|
---|
123 | ppmsvgalib vidtoppm picttoppm \
|
---|
124 | directory error extendedopacity \
|
---|
125 | pam pbm pgm pnm ppm index libnetpbm_dir \
|
---|
126 | liberror ppmtotga; do
|
---|
127 | rm -f %{buildroot}%{_mandir}/man1/${i}.1
|
---|
128 | done
|
---|
129 | rm -f %{buildroot}%{_mandir}/man5/extendedopacity.5
|
---|
130 |
|
---|
131 | mkdir -p %{buildroot}%{_datadir}/netpbm
|
---|
132 | mv %{buildroot}/@unixroot/usr/misc/*.map %{buildroot}%{_datadir}/netpbm/
|
---|
133 | mv %{buildroot}/@unixroot/usr/misc/rgb.txt %{buildroot}%{_datadir}/netpbm/
|
---|
134 | rm -rf %{buildroot}/@unixroot/usr/README
|
---|
135 | rm -rf %{buildroot}/@unixroot/usr/VERSION
|
---|
136 | rm -rf %{buildroot}/@unixroot/usr/link
|
---|
137 | rm -rf %{buildroot}/@unixroot/usr/misc
|
---|
138 | rm -rf %{buildroot}/@unixroot/usr/man
|
---|
139 | rm -rf %{buildroot}/@unixroot/usr/pkginfo
|
---|
140 | rm -rf %{buildroot}/@unixroot/usr/config_template
|
---|
141 | rm -rf %{buildroot}/@unixroot/usr/pkgconfig_template
|
---|
142 |
|
---|
143 | #%ldconfig_scriptlets
|
---|
144 |
|
---|
145 | %check
|
---|
146 | #pushd test
|
---|
147 | #export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
---|
148 | #export PBM_TESTPREFIX=%{buildroot}%{_bindir}
|
---|
149 | #export PBM_BINPREFIX=%{buildroot}%{_bindir}
|
---|
150 | #./Execute-Tests && exit 0
|
---|
151 | #popd
|
---|
152 |
|
---|
153 | %files
|
---|
154 | %doc doc/copyright_summary doc/COPYRIGHT.PATENT doc/HISTORY README
|
---|
155 | %license doc/GPL_LICENSE.txt
|
---|
156 | %{_libdir}/*.dll
|
---|
157 |
|
---|
158 | %files devel
|
---|
159 | %dir %{_includedir}/netpbm
|
---|
160 | %{_includedir}/netpbm/*.h
|
---|
161 | %{_mandir}/man3/*
|
---|
162 | %{_libdir}/*_dll.a
|
---|
163 |
|
---|
164 | %files progs
|
---|
165 | %{_bindir}/*
|
---|
166 | %exclude %{_bindir}/*.dbg
|
---|
167 | %{_mandir}/man1/*
|
---|
168 | %{_mandir}/man5/*
|
---|
169 | %{_datadir}/netpbm/
|
---|
170 |
|
---|
171 | %files doc
|
---|
172 | %doc userguide/*
|
---|
173 |
|
---|
174 | %changelog
|
---|
175 | * Fri Oct 12 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 10.84.01-1
|
---|
176 | - first rpm version
|
---|