author | convert-repo |
Tue, 28 Sep 2010 11:41:29 +0000 | |
changeset 20122 | 34a34bffcb68 |
parent 19973 | f05dadadf325 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package libcroco |
|
3 |
# |
|
19973 | 4 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
9397 | 9 |
# |
16430 | 10 |
|
17852 | 11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a |
16430 | 12 |
|
9397 | 13 |
##################################### |
14 |
## Package Information Section ## |
|
15 |
##################################### |
|
16 |
||
17 |
Name: libcroco |
|
14571 | 18 |
License: LGPL v2 |
9397 | 19 |
Group: System/Libraries |
15096
88759e030813
Bump to 0.6.2, removed upstreamed patch 01-fixheader.diff
davelam
parents:
14571
diff
changeset
|
20 |
Version: 0.6.2 |
9397 | 21 |
Release: 1 |
22 |
Distribution: Java Desktop System |
|
17864 | 23 |
Vendor: Gnome Community |
9397 | 24 |
Summary: Cascading Style Sheet (CSS) parsing and manipulation toolkit |
25 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.bz2 |
|
26 |
URL: http://www.freespiders.org/projects/libcroco/index.html |
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
Docdir: %{_defaultdocdir}/doc |
|
29 |
Autoreqprov: on |
|
30 |
Prereq: /sbin/ldconfig |
|
31 |
||
32 |
##################################### |
|
33 |
## Package Defines Section ## |
|
34 |
##################################### |
|
35 |
||
36 |
%define glib2_version 2.6.0 |
|
37 |
%define zlib_version 1.2.1 |
|
38 |
%define libxml2_version 2.6.7 |
|
39 |
%define bzip2_version 1.0.2 |
|
40 |
%define libbonobo_version 2.6.0 |
|
41 |
%define gnome_vfs_version 2.6.0 |
|
42 |
||
43 |
##################################### |
|
44 |
## Package Requirements Section ## |
|
45 |
##################################### |
|
46 |
||
47 |
Requires: glib2 >= %{glib2_version} |
|
48 |
Requires: libxml2 >= %{libxml2_version} |
|
49 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
50 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
51 |
||
52 |
##################################### |
|
53 |
## Package Description Section ## |
|
54 |
##################################### |
|
55 |
||
56 |
%description |
|
57 |
libcroco project aims to build a generic Cascading Style Sheet (CSS) |
|
58 |
parsing and manipulation toolkit. |
|
59 |
||
60 |
##################################### |
|
61 |
## Package Development Section ## |
|
62 |
##################################### |
|
63 |
||
64 |
%package devel |
|
65 |
Summary: libcroco development headers |
|
66 |
Group: Development/Libraries |
|
67 |
Requires: %{name} = %{version} |
|
68 |
Requires: glib2-devel >= %{glib2_version} |
|
69 |
Requires: libxml2-devel >= %{libxml2_version} |
|
70 |
Requires: zlib-devel >= %{zlib_version} |
|
71 |
Requires: bzip2 >= %{bzip2_version} |
|
72 |
Requires: libbonobo-devel >= %{libbonobo_version} |
|
73 |
Requires: gnome-vfs-devel >= %{gnome_vfs_version} |
|
74 |
||
75 |
%description devel |
|
76 |
libcroco development headers |
|
77 |
||
78 |
##################################### |
|
79 |
## Package Preparation Section ## |
|
80 |
##################################### |
|
81 |
||
82 |
%prep |
|
83 |
%setup -q |
|
84 |
||
85 |
##################################### |
|
86 |
## Package Build Section ## |
|
87 |
##################################### |
|
88 |
||
89 |
||
90 |
%build |
|
91 |
%ifos linux |
|
92 |
if [ -x /usr/bin/getconf ]; then |
|
93 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
94 |
fi |
|
95 |
%else |
|
96 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
97 |
%endif |
|
98 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
99 |
CPUS=1 |
|
100 |
fi |
|
101 |
||
102 |
aclocal $ACLOCAL_FLAGS |
|
103 |
automake -a -c -f |
|
104 |
autoconf |
|
13206 | 105 |
export CFLAGS="%optflags" |
106 |
export LDFLAGS="%_ldflags" |
|
9397 | 107 |
./configure --prefix=%{_prefix} \ |
108 |
--bindir=%{_bindir} \ |
|
109 |
--libdir=%{_libdir} \ |
|
13578 | 110 |
--includedir=%{_includedir} \ |
9397 | 111 |
--sysconfdir=%{_sysconfdir} |
112 |
make -j $CPUS |
|
113 |
||
114 |
%install |
|
115 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
116 |
#Clean up unpackaged files |
|
117 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
118 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
119 |
||
120 |
%clean |
|
121 |
rm -rf $RPM_BUILD_ROOT |
|
122 |
||
123 |
######################################### |
|
124 |
## Package Post[Un] Install Section ## |
|
125 |
######################################### |
|
126 |
||
127 |
%post |
|
128 |
/sbin/ldconfig |
|
129 |
||
130 |
%postun |
|
131 |
/sbin/ldconfig |
|
132 |
||
133 |
##################################### |
|
134 |
## Package Files Section ## |
|
135 |
##################################### |
|
136 |
||
137 |
%files |
|
138 |
%defattr(-,root,root) |
|
139 |
%{_bindir} |
|
140 |
%{_libdir}/*.so.* |
|
141 |
||
142 |
%files devel |
|
143 |
%defattr(-,root,root) |
|
144 |
%{_includedir}/* |
|
145 |
%{_libdir}/*.so |
|
146 |
%{_libdir}/pkgconfig/* |
|
147 |
||
148 |
%changelog |
|
15096
88759e030813
Bump to 0.6.2, removed upstreamed patch 01-fixheader.diff
davelam
parents:
14571
diff
changeset
|
149 |
* Mon Feb 16 2009 - [email protected] |
88759e030813
Bump to 0.6.2, removed upstreamed patch 01-fixheader.diff
davelam
parents:
14571
diff
changeset
|
150 |
- Bump to 0.6.2 |
88759e030813
Bump to 0.6.2, removed upstreamed patch 01-fixheader.diff
davelam
parents:
14571
diff
changeset
|
151 |
- Removed upstreamed patch 01-fixheader.diff. |
13206 | 152 |
* Thu Aug 21 2008 - [email protected] |
153 |
- set env variable needed for 64-bit build |
|
11691 | 154 |
* Tue Feb 19 2008 - [email protected] |
11669 | 155 |
- Add patch libcroco-01-fixheader.diff to fix bug 6549227. |
9397 | 156 |
* Mon Mar 6 2006 - [email protected] |
157 |
- Bump to 0.6.1. |
|
158 |
* Fri Feb 24 2006 - [email protected] |
|
159 |
- Update URL and Summary. |
|
160 |
* Wed Jul 27 2005 - [email protected] |
|
161 |
- Created. |