source: spec/trunk/SPECS/netpbm.spec@ 1567

Last change on this file since 1567 was 1501, checked in by Silvan Scherrer, 7 years ago

spec: netpbm: Release version 10.84.01-1.

File size: 5.0 KB
Line 
1Summary: A library for handling different graphics file formats
2Name: netpbm
3Version: 10.84.01
4Release: 1%{?dist}
5# See copyright_summary for details
6License: BSD and GPLv2 and IJG and MIT and Public Domain
7URL: http://netpbm.sourceforge.net/
8
9Vendor: 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
14BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, flex, gcc
15BuildRequires: perl-generators, python, libxml2-devel
16#BuildRequires: libX11-devel, python3, jasper-devel
17BuildRequires: ghostscript
18#Provides: bundled(jasper), bundled(jbigkit)
19
20%description
21The netpbm package contains a library of functions which support
22programs 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
27Summary: Development tools for programs which will use the netpbm libraries
28Requires: netpbm = %{version}-%{release}
29
30%description devel
31The netpbm-devel package contains the header files and static libraries,
32etc., for developing programs which can handle the various graphics file
33formats supported by the netpbm libraries.
34
35Install netpbm-devel if you want to develop programs for handling the
36graphics file formats supported by the netpbm libraries. You'll also need
37to have the netpbm package installed.
38
39%package progs
40Summary: Tools for manipulating graphics files in netpbm supported formats
41Requires: ghostscript
42Requires: netpbm = %{version}-%{release}
43
44%description progs
45The netpbm-progs package contains a group of scripts for manipulating the
46graphics files in formats which are supported by the netpbm libraries. For
47example, netpbm-progs includes the rasttopnm script, which will convert a
48Sun rasterfile into a portable anymap. Netpbm-progs contains many other
49scripts for converting from one graphics file format to another.
50
51If you need to use these conversion scripts, you should install
52netpbm-progs. You'll also need to install the netpbm package.
53
54%package doc
55Summary: Documentation for tools manipulating graphics files in netpbm supported formats
56Requires: netpbm-progs = %{version}-%{release}
57
58%description doc
59The netpbm-doc package contains a documentation in HTML format for utilities
60present in netpbm-progs package.
61
62If you need to look into the HTML documentation, you should install
63netpbm-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
73os2
74
75
76n
77
78
79jpeg8.dll
80
81tiff5.dll
82
83z.dll
84
85none
86
87
88
89
90
91EOF
92
93TOP=`pwd`
94
95make \
96 LADD="-lcx" \
97 VENDOR="%{vendor}"
98
99# prepare man files
100cd userguide
101rm -f *.manual-pages
102rm -f *.manfix
103for i in *.html ; do
104 ../buildtools/makeman ${i}
105done
106for i in 1 3 5 ; do
107 mkdir -p man/man${i}
108 mv *.${i} man/man${i}
109done
110
111
112%install
113make package pkgdir=%{buildroot}/@unixroot/usr LINUXSVGALIB="NONE" XML2LIBS="NONE"
114
115mkdir -p %{buildroot}%{_datadir}
116mv userguide/man %{buildroot}%{_mandir}
117
118# Get rid of the useless non-ascii character in pgmminkowski.1
119sed -i 's/\xa0//' %{buildroot}%{_mandir}/man1/pgmminkowski.1
120
121# Don't ship man pages for non-existent binaries and bogus ones
122for 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
128done
129rm -f %{buildroot}%{_mandir}/man5/extendedopacity.5
130
131mkdir -p %{buildroot}%{_datadir}/netpbm
132mv %{buildroot}/@unixroot/usr/misc/*.map %{buildroot}%{_datadir}/netpbm/
133mv %{buildroot}/@unixroot/usr/misc/rgb.txt %{buildroot}%{_datadir}/netpbm/
134rm -rf %{buildroot}/@unixroot/usr/README
135rm -rf %{buildroot}/@unixroot/usr/VERSION
136rm -rf %{buildroot}/@unixroot/usr/link
137rm -rf %{buildroot}/@unixroot/usr/misc
138rm -rf %{buildroot}/@unixroot/usr/man
139rm -rf %{buildroot}/@unixroot/usr/pkginfo
140rm -rf %{buildroot}/@unixroot/usr/config_template
141rm -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
Note: See TracBrowser for help on using the repository browser.