libpng12.spec revision 19981
15825N/A#
15825N/A# spec file for package libpng12
15825N/A#
15825N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
15825N/A# This file and all modifications and additions to the pristine
15825N/A# package are under the same license as the package itself.
15825N/A#
15825N/A%define owner laca
15825N/A#
15825N/A
15825N/A%define OSR delivered in s10:0
15825N/A
15825N/AName: libpng10
15825N/ALicense: libpng
15825N/AGroup: System/Libraries
15825N/AVersion: 1.2.44
15825N/ARelease: 1
15825N/ADistribution: Java Desktop System
15825N/AVendor: Sun Microsystems, Inc.
Summary: Portable Network Graphics library
Source: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
URL: http://www.libpng.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/%{name}
Autoreqprov: on
%description
libpng is a C library for working with PNG (Portable Network Graphics) format
images.
%package devel
Summary: Headers for developing programs that will use libpng
Group: Development/Libraries
Requires: %{name}
%description devel
This package contains the headers that programmers will need to develop
applications which will use libpng
%prep
%setup -q -n libpng-%{version}
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags"
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--bindir=%{_bindir} \
--sysconfdir=%{_sysconfdir} \
--with-esd-prefix=%{_prefix} \
--mandir=%{_mandir}
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
# delete libtool .la files and static libs
rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_libdir}/*la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/pkgconfig
%{_bindir}/*-config
%{_mandir}/*
%changelog
* Wed Jul 21 2010 - laszlo.peter@oracle.com
- bump to 1.2.44
* Tue Jul 28 2009 - christian.kelly@sun.com
- Bump to 1.2.38.
* Sun Mar 22 2009 - laca@sun.com
- bump to 1.2.35
* Thu May 17 2007 - laca@sun.com
- Create