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