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