libcroco.spec
author hh150184
Tue, 24 Jan 2006 11:56:37 +0000
branchgnome-2-12
changeset 19207 b59a653a3329
parent 5518 235b0b4aa324
child 6841 24db3adb01d6
permissions -rw-r--r--
* evolution-jescs.spec: Bump to 2.4.4, Remove unused define evolution_imagesdir and evolution_libsdir, Remove hard code 1.2, 2.4. * Solaris/SUNWevolution-jescs.spec: Remove *.la under /usr/lib when install, s/evolution-data-server-1.2/evolution-data-server-*/g.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5518
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     1
#
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     2
# spec file for package libcroco
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     3
#
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     7
#
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     8
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
     9
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    10
##   Package Information Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    11
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    12
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    13
Name:			libcroco
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    14
License:		LGPL
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    15
Group:			System/Libraries
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    16
Version:		0.6.0
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    17
Release:	 	1	
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    18
Distribution:		Java Desktop System
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    19
Vendor:			Sun Microsystems, Inc.
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    20
Summary:		The GNOME Structured File Library
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    21
Source:			ftp://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.bz2
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    22
URL:			http://ftp.gnome.org/pub/gnome/sources/libcroco/
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    23
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    24
Docdir:			%{_defaultdocdir}/doc
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    25
Autoreqprov:		on
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    26
Prereq:                 /sbin/ldconfig
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    27
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    28
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    29
##     Package Defines Section     ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    30
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    31
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    32
%define			glib2_version	2.6.0
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    33
%define			zlib_version	1.2.1
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    34
%define			libxml2_version	2.6.7
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    35
%define			bzip2_version	1.0.2
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    36
%define			libbonobo_version	2.6.0
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    37
%define			gnome_vfs_version	2.6.0
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    38
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    39
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    40
##  Package Requirements Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    41
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    42
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    43
Requires:		glib2	>=	%{glib2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    44
Requires:		libxml2	>=	%{libxml2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    45
BuildRequires:		glib2-devel >= %{glib2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    46
BuildRequires:		libxml2-devel	>=	%{libxml2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    47
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    48
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    49
##   Package Description Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    50
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    51
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    52
%description
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    53
libcroco project aims to build a generic Cascading Style Sheet (CSS) 
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    54
parsing and manipulation toolkit.
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    55
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    56
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    57
##   Package Development Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    58
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    59
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    60
%package devel
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    61
Summary:		libcroco development headers
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    62
Group:			Development/Libraries
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    63
Requires:		%{name} = %{version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    64
Requires:		glib2-devel >= %{glib2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    65
Requires:		libxml2-devel	>=	%{libxml2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    66
Requires:		zlib-devel	>=	%{zlib_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    67
Requires:		bzip2	>=	%{bzip2_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    68
Requires:		libbonobo-devel	>=	%{libbonobo_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    69
Requires:		gnome-vfs-devel	>=	%{gnome_vfs_version}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    70
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    71
%description devel
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    72
libcroco development headers
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    73
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    74
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    75
##   Package Preparation Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    76
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    77
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    78
%prep
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    79
%setup -q
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    80
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    81
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    82
##      Package Build Section      ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    83
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    84
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    85
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    86
%build
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    87
%ifos linux
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    88
if [ -x /usr/bin/getconf ]; then
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    89
  CPUS=`getconf _NPROCESSORS_ONLN`
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    90
fi
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    91
%else
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    92
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    93
%endif
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    94
if test "x$CPUS" = "x" -o $CPUS = 0; then
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    95
  CPUS=1
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    96
fi
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    97
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    98
CFLAGS="$RPM_OPT_FLAGS"			\
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
    99
aclocal $ACLOCAL_FLAGS
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   100
automake -a -c -f
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   101
autoconf
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   102
./configure --prefix=%{_prefix}			\
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   103
	    --bindir=%{_bindir}			\
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   104
	    --libdir=%{_libdir}			\
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   105
            --includedir=%{_includedir}         \
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   106
	    --sysconfdir=%{_sysconfdir}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   107
make -j $CPUS
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   108
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   109
%install
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   110
make install DESTDIR=$RPM_BUILD_ROOT
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   111
#Clean up unpackaged files
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   112
rm $RPM_BUILD_ROOT%{_libdir}/*.a
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   113
rm $RPM_BUILD_ROOT%{_libdir}/*.la
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   114
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   115
%clean
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   116
rm -rf $RPM_BUILD_ROOT
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   117
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   118
#########################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   119
##  Package Post[Un] Install Section   ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   120
#########################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   121
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   122
%post
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   123
/sbin/ldconfig
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   124
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   125
%postun
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   126
/sbin/ldconfig
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   127
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   128
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   129
##      Package Files Section      ##
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   130
#####################################
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   131
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   132
%files
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   133
%defattr(-,root,root)
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   134
%{_bindir}
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   135
%{_libdir}/*.so.*
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   136
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   137
%files devel
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   138
%defattr(-,root,root)
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   139
%{_includedir}/*
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   140
%{_libdir}/*.so
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   141
%{_libdir}/pkgconfig/*
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   142
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   143
%changelog
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   144
* Wed Jul 27 2005 - [email protected]
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents:
diff changeset
   145
  - Created.