libpng12.spec revision 10668
10139N/A#
10139N/A# spec file for package libpng12
10139N/A#
12189N/A# Copyright 2007 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#
10139N/AName: libpng10
10139N/ALicense: other
10139N/AGroup: System/Libraries
13309N/AVersion: 1.2.18
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Portable Network Graphics library
13261N/ASource: http://umn.dl.sourceforge.net/sourceforge/libpng/libpng-%{version}.tar.bz2
13309N/AURL: http://www.libpng.org/
13309N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12773N/ADocdir: %{_defaultdocdir}/%{name}
12773N/AAutoreqprov: on
12773N/A
10139N/A%description
10139N/Alibpng is a C library for working with PNG (Portable Network Graphics) format
10139N/Aimages.
10139N/A
10139N/A%package devel
10139N/ASummary: Headers for developing programs that will use libpng
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name}
10139N/A
10139N/A%description devel
10139N/AThis package contains the headers that programmers will need to develop
10139N/Aapplications which will use libpng
10139N/A
10139N/A%prep
10139N/A%setup -q -n libpng-%{version}
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Aexport CFLAGS="%optflags"
10139N/Aexport LDFLAGS="%_ldflags"
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libdir=%{_libdir} \
10139N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --with-esd-prefix=%{_prefix} \
10139N/A --mandir=%{_mandir}
10139N/Amake -j $CPUS
10139N/A
13309N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A# delete libtool .la files and static libs
10139N/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
12773N/A%defattr(-, root, root)
12773N/A%{_includedir}/*
12773N/A%{_libdir}/pkgconfig
12773N/A%{_bindir}/*-config
12773N/A%{_mandir}/*
10139N/A
10139N/A%changelog
10139N/A* Thu May 17 2007 - laca@sun.com
10139N/A- Create
10139N/A