libpng12.spec revision 16904
20324N/A#
20324N/A# spec file for package libpng12
20324N/A#
20324N/A# Copyright 2009 Sun Microsystems, Inc.
20292N/A# This file and all modifications and additions to the pristine
20324N/A# package are under the same license as the package itself.
20324N/A#
20292N/A# Owner: laca
20324N/A#
20324N/AName: libpng10
20292N/ALicense: other
20292N/AGroup: System/Libraries
20292N/AVersion: 1.2.38
20324N/ARelease: 1
20292N/ADistribution: Java Desktop System
20292N/AVendor: Sun Microsystems, Inc.
20292N/ASummary: Portable Network Graphics library
20292N/ASource: %{sf_download}/sourceforge/libpng/libpng-%{version}.tar.bz2
20300N/AURL: http://www.libpng.org/
20324N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20292N/ADocdir: %{_defaultdocdir}/%{name}
20292N/AAutoreqprov: on
20292N/A
20292N/A%description
20292N/Alibpng is a C library for working with PNG (Portable Network Graphics) format
20292N/Aimages.
20324N/A
20324N/A%package devel
20324N/ASummary: Headers for developing programs that will use libpng
20292N/AGroup: Development/Libraries
20324N/ARequires: %{name}
20324N/A
20292N/A%description devel
20292N/AThis package contains the headers that programmers will need to develop
20292N/Aapplications which will use libpng
20777N/A
20777N/A%prep
20777N/A%setup -q -n libpng-%{version}
20777N/A
20777N/A%build
20777N/A%ifos linux
20777N/Aif [ -x /usr/bin/getconf ]; then
20777N/A CPUS=`getconf _NPROCESSORS_ONLN`
20777N/Afi
20777N/A%else
20777N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20777N/A%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
* 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