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