9397
|
1 |
#
|
|
2 |
# spec file for package SUNWpng
|
|
3 |
#
|
|
4 |
# includes module(s): libpng
|
|
5 |
#
|
9926
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: laca
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
9926
|
14 |
%include Solaris.inc
|
|
15 |
%ifarch amd64 sparcv9
|
|
16 |
%include arch64.inc
|
|
17 |
%use png10_64 = libpng10.spec
|
|
18 |
%use png12_64 = libpng12.spec
|
|
19 |
%endif
|
9397
|
20 |
|
9926
|
21 |
%include base.inc
|
|
22 |
%use png10 = libpng10.spec
|
|
23 |
%use png12 = libpng12.spec
|
9397
|
24 |
|
|
25 |
Name: SUNWpng
|
|
26 |
Summary: Portable Network Graphics library
|
|
27 |
Version: 20.%{default_pkg_version}
|
9926
|
28 |
Source1: %{name}-manpages-0.1.tar.gz
|
9397
|
29 |
SUNW_BaseDir: %{_prefix}
|
11894
|
30 |
SUNW_Copyright: %{name}.copyright
|
9397
|
31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
32 |
Requires: SUNWzlib
|
10633
|
33 |
Requires: SUNWlibms
|
|
34 |
Requires: SUNWlibmsr
|
9397
|
35 |
|
|
36 |
%include default-depend.inc
|
|
37 |
|
|
38 |
%package devel
|
|
39 |
Summary: %{summary} - development files
|
|
40 |
SUNW_BaseDir: %{_prefix}
|
|
41 |
%include default-depend.inc
|
|
42 |
Requires: SUNWcsr
|
|
43 |
|
|
44 |
%prep
|
9926
|
45 |
rm -rf %name-%version
|
|
46 |
mkdir %name-%version
|
9397
|
47 |
|
|
48 |
%ifarch amd64 sparcv9
|
9926
|
49 |
mkdir %name-%version/%_arch64
|
|
50 |
%png10_64.prep -d %name-%version/%_arch64
|
|
51 |
%png12_64.prep -d %name-%version/%_arch64
|
9397
|
52 |
%endif
|
|
53 |
|
9926
|
54 |
mkdir %name-%version/%base_arch
|
|
55 |
%png10.prep -d %name-%version/%base_arch
|
|
56 |
%png12.prep -d %name-%version/%base_arch
|
9397
|
57 |
|
9926
|
58 |
cd %name-%version
|
|
59 |
gzcat %SOURCE1 | tar xf -
|
9397
|
60 |
|
|
61 |
%build
|
9926
|
62 |
%ifarch amd64 sparcv9
|
|
63 |
%png10_64.build -d %name-%version/%_arch64
|
|
64 |
%png12_64.build -d %name-%version/%_arch64
|
|
65 |
%endif
|
9397
|
66 |
|
9926
|
67 |
%png10.build -d %name-%version/%base_arch
|
|
68 |
%png12.build -d %name-%version/%base_arch
|
9397
|
69 |
|
9926
|
70 |
%install
|
|
71 |
rm -rf $RPM_BUILD_ROOT
|
9397
|
72 |
|
|
73 |
%ifarch amd64 sparcv9
|
9926
|
74 |
%png10_64.install -d %name-%version/%_arch64
|
|
75 |
# install png12 1st so that the versionless symlinks point to png12 and
|
|
76 |
# not png10
|
|
77 |
%png12_64.install -d %name-%version/%_arch64
|
9397
|
78 |
%endif
|
|
79 |
|
9926
|
80 |
%png10.install -d %name-%version/%base_arch
|
|
81 |
%png12.install -d %name-%version/%base_arch
|
|
82 |
|
|
83 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
84 |
cd %name-%version/sun-manpages
|
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
86 |
|
|
87 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
88 |
rm libpng-config
|
|
89 |
ln -s libpng12-config libpng-config
|
|
90 |
|
|
91 |
cd $RPM_BUILD_ROOT%{_includedir}
|
|
92 |
ln -s libpng12 libpng
|
|
93 |
rm png.h pngconf.h
|
|
94 |
ln -s libpng12/png.h .
|
|
95 |
ln -s libpng12/pngconf.h .
|
|
96 |
|
|
97 |
cd $RPM_BUILD_ROOT%{_libdir}
|
|
98 |
rm libpng.so
|
|
99 |
ln -s libpng12.so libpng.so
|
9397
|
100 |
|
|
101 |
%ifarch amd64 sparcv9
|
9926
|
102 |
cd $RPM_BUILD_ROOT%{_bindir}/%{_arch64}
|
|
103 |
rm libpng-config
|
|
104 |
ln -s libpng12-config libpng-config
|
|
105 |
cd $RPM_BUILD_ROOT%{_libdir}/%{_arch64}
|
|
106 |
rm libpng.so
|
|
107 |
ln -s libpng12.so libpng.so
|
9397
|
108 |
%endif
|
|
109 |
|
|
110 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
111 |
|
|
112 |
%clean
|
|
113 |
rm -rf $RPM_BUILD_ROOT
|
|
114 |
|
|
115 |
%files
|
|
116 |
%defattr (-, root, bin)
|
|
117 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
118 |
%{_libdir}/lib*.so*
|
|
119 |
%ifarch amd64 sparcv9
|
|
120 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
121 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
122 |
%endif
|
|
123 |
|
|
124 |
%files devel
|
|
125 |
%defattr (-, root, bin)
|
|
126 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
127 |
%{_bindir}/libpng12-config
|
9926
|
128 |
%{_bindir}/libpng10-config
|
9397
|
129 |
%{_bindir}/libpng-config
|
|
130 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
131 |
%{_includedir}/libpng
|
9926
|
132 |
%{_includedir}/libpng10
|
9397
|
133 |
%{_includedir}/libpng12
|
|
134 |
%{_includedir}/*.h
|
|
135 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
136 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
137 |
%{_libdir}/pkgconfig/*
|
|
138 |
%ifarch amd64 sparcv9
|
|
139 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
140 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
141 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
9926
|
142 |
%dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
|
|
143 |
%{_bindir}/%{_arch64}/*
|
9397
|
144 |
%endif
|
|
145 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
146 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
147 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
148 |
%dir %attr(0755, root, bin) %{_mandir}/man4
|
|
149 |
%{_mandir}/man3/*
|
|
150 |
%{_mandir}/man4/*
|
|
151 |
|
|
152 |
%changelog
|
10633
|
153 |
* Wed Oct 10 2006 - [email protected]
|
|
154 |
- Update Build/Requires after running check-deps.pl script.
|
9926
|
155 |
* Fri May 18 2007 - [email protected]
|
|
156 |
- convert to new style multi-isa build while upgrading to 1.0.26/1.2.18
|
9565
|
157 |
* Wed Mar 14 2007 - [email protected]
|
|
158 |
- Removed adding ccdir to PATH + changed // to /
|
9397
|
159 |
* Mon Sep 04 2006 - [email protected]
|
|
160 |
- New Manpage tarball
|
|
161 |
* Sun Jun 11 2006 - [email protected]
|
|
162 |
- change group from other to bin/sys
|
|
163 |
* Sat Jun 10 2006 - [email protected]
|
|
164 |
- move .pc and libpng*-config files to -devel
|
|
165 |
* Wed May 10 2006 - [email protected]
|
|
166 |
- merge -share pkg(s) into the base pkg(s)
|
|
167 |
* Thu Apr 06 2006 - [email protected]
|
|
168 |
- Now use tarball_version instead of png12_version.
|
|
169 |
* Fri Feb 17 2006 - [email protected]
|
|
170 |
- Update Build/Requires after running check-deps.pl script.
|
|
171 |
* Fri Dec 23 2005 - [email protected]
|
|
172 |
- Redo the libpng-1.0.18-01-makefile.diff and libpng-1.2.8-01-makefile.diff
|
|
173 |
patches. Remove patches libpng-1.0.18-02-security.diff and
|
|
174 |
libpng-1.2.8-02-security.diff which are upstream.
|
|
175 |
* Mon Dec 19 2005 - [email protected]
|
|
176 |
- Bump to 1.0.18rc5 and 1.2.8.
|
|
177 |
* Fri Sep 02 2005 - [email protected]
|
|
178 |
- remove unpackaged files
|
|
179 |
* Fri Oct 29 2004 - [email protected]
|
|
180 |
- use $CC64 as the 64-bit C compiler, if defined
|
|
181 |
* Sat Oct 02 2004 - [email protected]
|
|
182 |
- added %pkgbuild_postprocess
|
|
183 |
* Sat Oct 2 2004 - [email protected]
|
|
184 |
- Create 64bit libraries for Solaris
|
|
185 |
* Mon Aug 30 2004 - [email protected]
|
|
186 |
- Bug 5091588 : include files and man3/4 files should be in a separate devel
|
|
187 |
packages
|
|
188 |
* Tue Aug 17 2004 - [email protected]
|
|
189 |
- Added patches libpng-1.0.15-02-security.diff and
|
|
190 |
libpng-1.2.5-02-security.diff to fix security issues.
|
|
191 |
* Thu Aug 12 2004 - [email protected]
|
|
192 |
- Updated Version to be 2.6.0 since delivering w/ G2.6
|
|
193 |
* Fri Apr 16 2004 - [email protected]
|
|
194 |
- add prefix=%_prefix arg to fix .pc file problem
|
|
195 |
* Sun Feb 22 2004 - [email protected]
|
|
196 |
- initial version added to CVS
|