9926
|
1 |
#
|
|
2 |
# spec file for package libpng12
|
|
3 |
#
|
18357
|
4 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
|
9926
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner laca
|
9926
|
9 |
#
|
16431
|
10 |
|
|
11 |
%define OSR delivered in s10:0
|
|
12 |
|
9926
|
13 |
Name: libpng10
|
|
14 |
License: other
|
|
15 |
Group: System/Libraries
|
18357
|
16 |
Version: 1.2.44
|
9926
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
|
19 |
Vendor: Sun Microsystems, Inc.
|
|
20 |
Summary: Portable Network Graphics library
|
18357
|
21 |
Source: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
|
9926
|
22 |
URL: http://www.libpng.org/
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/%{name}
|
|
25 |
Autoreqprov: on
|
|
26 |
|
|
27 |
%description
|
|
28 |
libpng is a C library for working with PNG (Portable Network Graphics) format
|
|
29 |
images.
|
|
30 |
|
|
31 |
%package devel
|
|
32 |
Summary: Headers for developing programs that will use libpng
|
|
33 |
Group: Development/Libraries
|
|
34 |
Requires: %{name}
|
|
35 |
|
|
36 |
%description devel
|
|
37 |
This package contains the headers that programmers will need to develop
|
|
38 |
applications which will use libpng
|
|
39 |
|
|
40 |
%prep
|
|
41 |
%setup -q -n libpng-%{version}
|
|
42 |
|
|
43 |
%build
|
|
44 |
%ifos linux
|
|
45 |
if [ -x /usr/bin/getconf ]; then
|
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
47 |
fi
|
|
48 |
%else
|
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
50 |
%endif
|
|
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
52 |
CPUS=1
|
|
53 |
fi
|
|
54 |
|
|
55 |
export CFLAGS="%optflags"
|
|
56 |
export LDFLAGS="%_ldflags"
|
|
57 |
./configure \
|
|
58 |
--prefix=%{_prefix} \
|
|
59 |
--libdir=%{_libdir} \
|
|
60 |
--bindir=%{_bindir} \
|
|
61 |
--sysconfdir=%{_sysconfdir} \
|
|
62 |
--with-esd-prefix=%{_prefix} \
|
|
63 |
--mandir=%{_mandir}
|
|
64 |
make -j $CPUS
|
|
65 |
|
|
66 |
%install
|
|
67 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
68 |
|
|
69 |
# delete libtool .la files and static libs
|
|
70 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
71 |
rm $RPM_BUILD_ROOT%{_libdir}/*la
|
|
72 |
|
|
73 |
%clean
|
|
74 |
rm -rf $RPM_BUILD_ROOT
|
|
75 |
|
|
76 |
%post -p /sbin/ldconfig
|
|
77 |
%postun -p /sbin/ldconfig
|
|
78 |
|
|
79 |
%files
|
|
80 |
%defattr (-, root, root)
|
|
81 |
%{_libdir}/*.so.*
|
|
82 |
|
|
83 |
%files devel
|
|
84 |
%defattr(-, root, root)
|
|
85 |
%{_includedir}/*
|
|
86 |
%{_libdir}/pkgconfig
|
|
87 |
%{_bindir}/*-config
|
|
88 |
%{_mandir}/*
|
|
89 |
|
|
90 |
%changelog
|
18357
|
91 |
* Wed Jul 21 2010 - [email protected]
|
|
92 |
- bump to 1.2.44
|
16153
|
93 |
* Tue Jul 28 2009 - [email protected]
|
|
94 |
- Bump to 1.2.38.
|
15461
|
95 |
* Sun Mar 22 2009 - [email protected]
|
|
96 |
- bump to 1.2.35
|
9926
|
97 |
* Thu May 17 2007 - [email protected]
|
|
98 |
- Create
|