libcroco.spec revision 10139
10139N/A#
10139N/A# spec file for package libcroco
10139N/A#
12189N/A# Copyright (c) 2005 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: yippi
10139N/A#
10139N/A#####################################
10139N/A## Package Information Section ##
10139N/A#####################################
13105N/A
10139N/AName: libcroco
10139N/ALicense: LGPL
10139N/AGroup: System/Libraries
10139N/AVersion: 0.6.1
12571N/ARelease: 1
12773N/ADistribution: Java Desktop System
12773N/AVendor: Sun Microsystems, Inc.
12773N/ASummary: Cascading Style Sheet (CSS) parsing and manipulation toolkit
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.bz2
10139N/AURL: http://www.freespiders.org/projects/libcroco/index.html
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/A
10139N/A#####################################
10139N/A## Package Defines Section ##
10139N/A#####################################
10139N/A
10139N/A%define glib2_version 2.6.0
10139N/A%define zlib_version 1.2.1
10139N/A%define libxml2_version 2.6.7
10139N/A%define bzip2_version 1.0.2
10139N/A%define libbonobo_version 2.6.0
10139N/A%define gnome_vfs_version 2.6.0
10139N/A
10139N/A#####################################
10139N/A## Package Requirements Section ##
10139N/A#####################################
10139N/A
10139N/ARequires: glib2 >= %{glib2_version}
10139N/ARequires: libxml2 >= %{libxml2_version}
10139N/ABuildRequires: glib2-devel >= %{glib2_version}
10139N/ABuildRequires: libxml2-devel >= %{libxml2_version}
10139N/A
10139N/A#####################################
10139N/A## Package Description Section ##
10139N/A#####################################
10139N/A
10139N/A%description
10139N/Alibcroco project aims to build a generic Cascading Style Sheet (CSS)
10139N/Aparsing and manipulation toolkit.
10139N/A
10139N/A#####################################
10139N/A## Package Development Section ##
10139N/A#####################################
10139N/A
10139N/A%package devel
10139N/ASummary: libcroco development headers
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name} = %{version}
10139N/ARequires: glib2-devel >= %{glib2_version}
10139N/ARequires: libxml2-devel >= %{libxml2_version}
10139N/ARequires: zlib-devel >= %{zlib_version}
10139N/ARequires: bzip2 >= %{bzip2_version}
10139N/ARequires: libbonobo-devel >= %{libbonobo_version}
10139N/ARequires: gnome-vfs-devel >= %{gnome_vfs_version}
10139N/A
10139N/A%description devel
10139N/Alibcroco development headers
10139N/A
10139N/A#####################################
10139N/A## Package Preparation Section ##
10139N/A#####################################
12773N/A
12773N/A%prep
12773N/A%setup -q
12773N/A
12773N/A#####################################
10139N/A## Package Build Section ##
10139N/A#####################################
10139N/A
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
10273N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10273N/A CPUS=1
10273N/Afi
10273N/A
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautomake -a -c -f
10139N/Aautoconf
10139N/A./configure --prefix=%{_prefix} \
10139N/A --bindir=%{_bindir} \
10139N/A --libdir=%{_libdir} \
10139N/A --includedir=%{_includedir} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A#Clean up unpackaged files
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
10139N/A
10139N/A%clean
13105N/Arm -rf $RPM_BUILD_ROOT
13105N/A
13035N/A#########################################
13035N/A## Package Post[Un] Install Section ##
12988N/A#########################################
12988N/A
12934N/A%post
12934N/A/sbin/ldconfig
12571N/A
12571N/A%postun
12466N/A/sbin/ldconfig
12466N/A
12360N/A#####################################
12360N/A## Package Files Section ##
12288N/A#####################################
12288N/A
12189N/A%files
12189N/A%defattr(-,root,root)
12071N/A%{_bindir}
12071N/A%{_libdir}/*.so.*
11922N/A
11922N/A%files devel
11819N/A%defattr(-,root,root)
11819N/A%{_includedir}/*
11416N/A%{_libdir}/*.so
11416N/A%{_libdir}/pkgconfig/*
11253N/A
11253N/A%changelog
11172N/A* Mon Mar 6 2006 - damien.carbery@sun.com
11172N/A- Bump to 0.6.1.
11118N/A* Fri Feb 24 2006 - damien.carbery@sun.com
11118N/A- Update URL and Summary.
11067N/A* Wed Jul 27 2005 - brian.cameron@sun.com
11067N/A - Created.
10986N/A