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