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