libpng10.spec revision 20829
10139N/A#
10139N/A# spec file for package libpng10
10139N/A#
12153N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner laca
10139N/A#
12285N/A
10139N/A%define OSR delivered in s10:n/a
10139N/A
10139N/AName: libpng10
12586N/ALicense: libpng
11260N/AGroup: System/Libraries
10139N/AVersion: 1.0.56
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
12586N/AVendor: libpng.org
10139N/ASummary: Portable Network Graphics library
12285N/ASource: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2
12773N/AURL: http://www.libpng.org/
12773N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12773N/ADocdir: %{_defaultdocdir}/%{name}
10139N/AAutoreqprov: on
10737N/A
10139N/A%description
10737N/Alibpng is a C library for working with PNG (Portable Network Graphics) format
11419N/Aimages.
10139N/A
10737N/A%package devel
11419N/ASummary: Headers for developing programs that will use libpng
11895N/AGroup: Development/Libraries
10941N/ARequires: %{name}
10139N/A
10941N/A%description devel
11055N/AThis package contains the headers that programmers will need to develop
11055N/Aapplications which will use libpng
10941N/A
10737N/A%prep
11044N/A%setup -q -n libpng-%{version}
11420N/A
11044N/A%build
12513N/A%ifos linux
11420N/Aif [ -x /usr/bin/getconf ]; then
12162N/A CPUS=`getconf _NPROCESSORS_ONLN`
12162N/Afi
12162N/A%else
12513N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12506N/A%endif
12506N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12513N/A CPUS=1
12513N/Afi
12570N/A
12570N/Aexport CFLAGS="%optflags"
10737N/Aexport LDFLAGS="%_ldflags"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libdir=%{_libdir} \
10139N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-esd-prefix=%{_prefix} \
10139N/A --mandir=%{_mandir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A# delete libtool .la files and static libs
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*la
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
12285N/A%post -p /sbin/ldconfig
12285N/A%postun -p /sbin/ldconfig
12285N/A
12285N/A%files
10139N/A%defattr (-, root, root)
10737N/A%{_libdir}/*.so.*
11419N/A
10139N/A%files devel
11419N/A%defattr(-, root, root)
10139N/A%{_includedir}/*
10139N/A%{_libdir}/pkgconfig
10740N/A%{_bindir}/*-config
10740N/A%{_mandir}/*
10941N/A
10740N/A%changelog
11044N/A* Wed Aug 17 2011 - laszlo.peter@oracle.com
11420N/A- bump to 1.0.56
11044N/A* Wed Jul 21 2010 - laszlo.peter@oracle.com
10139N/A- bump to 1.0.54
11420N/A* Sun Mar 22 2009 - laca@sun.com
12162N/A- bump to 1.0.43
12506N/A* Thu May 17 2007 - laca@sun.com
12513N/A- Create
12513N/A