libpng10.spec revision 16212
10139N/A#
10139N/A# spec file for package libpng10
10139N/A#
12153N/A# Copyright 2009 Sun Microsystems, Inc.
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# Owner: laca
10139N/A#
12285N/AName: libpng10
10139N/ALicense: other
10139N/AGroup: System/Libraries
10139N/AVersion: 1.0.43
16372N/ARelease: 1
13494N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Portable Network Graphics library
10139N/ASource: %{sf_download}/sourceforge/libpng/libpng-%{version}.tar.bz2
16167N/AURL: http://www.libpng.org/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12285N/ADocdir: %{_defaultdocdir}/%{name}
12773N/AAutoreqprov: on
12773N/A
12773N/A%description
13368N/Alibpng is a C library for working with PNG (Portable Network Graphics) format
16798N/Aimages.
10139N/A
10737N/A%package devel
11419N/ASummary: Headers for developing programs that will use libpng
10139N/AGroup: Development/Libraries
13494N/ARequires: %{name}
11419N/A
11895N/A%description devel
13494N/AThis package contains the headers that programmers will need to develop
10737N/Aapplications which will use libpng
13494N/A
11420N/A%prep
11044N/A%setup -q -n libpng-%{version}
13494N/A
11420N/A%build
13368N/A%ifos linux
16081N/Aif [ -x /usr/bin/getconf ]; then
15306N/A CPUS=`getconf _NPROCESSORS_ONLN`
16081N/Afi
13494N/A%else
16081N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16445N/A%endif
16081N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
14281N/A CPUS=1
14127N/Afi
16081N/A
14281N/Aexport CFLAGS="%optflags"
16445N/Aexport LDFLAGS="%_ldflags"
16081N/A./configure \
15756N/A --prefix=%{_prefix} \
16139N/A --libdir=%{_libdir} \
16139N/A --bindir=%{_bindir} \
16139N/A --sysconfdir=%{_sysconfdir} \
16445N/A --with-esd-prefix=%{_prefix} \
16139N/A --mandir=%{_mandir}
16339N/Amake -j $CPUS
16339N/A
16448N/A%install
16448N/Amake install DESTDIR=$RPM_BUILD_ROOT
16622N/A
16620N/A# delete libtool .la files and static libs
10737N/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
10139N/A%post -p /sbin/ldconfig
10139N/A%postun -p /sbin/ldconfig
10139N/A
10139N/A%files
10139N/A%defattr (-, root, root)
10139N/A%{_libdir}/*.so.*
10139N/A
10139N/A%files devel
10139N/A%defattr(-, root, root)
10139N/A%{_includedir}/*
10139N/A%{_libdir}/pkgconfig
10139N/A%{_bindir}/*-config
10139N/A%{_mandir}/*
10139N/A
12285N/A%changelog
12285N/A* Sun Mar 22 2009 - laca@sun.com
12285N/A- bump to 1.0.43
12285N/A* Thu May 17 2007 - laca@sun.com
15811N/A- Create
10139N/A