570
|
1 |
#
|
19693
|
2 |
# spec file for package libical
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
570
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
|
|
9 |
Name: libical
|
|
10 |
License: LGPL
|
|
11 |
Group: System/Libraries
|
|
12 |
Version: 0.23
|
19643
|
13 |
Release: 52
|
19693
|
14 |
Distribution: Java Desktop System
|
575
|
15 |
Vendor: Sun Microsystems, Inc.
|
570
|
16 |
Summary: A library for iCal (RFC2445) parsing
|
19881
|
17 |
Source: http://www.softwarestudio.org/download/%{name}-%{version}.tar.gz
|
570
|
18 |
URL: http://www.gnome.org
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
Docdir: %{_defaultdocdir}
|
|
21 |
Autoreqprov: on
|
1080
|
22 |
Prereq: /sbin/ldconfig
|
570
|
23 |
|
|
24 |
%description
|
|
25 |
This package contains iCal (RFC2445) parser and other relevant
|
|
26 |
routines and data structures.
|
|
27 |
|
|
28 |
%prep
|
|
29 |
%setup -q
|
|
30 |
|
4455
|
31 |
|
570
|
32 |
%build
|
3263
|
33 |
%ifos linux
|
|
34 |
if [ -x /usr/bin/getconf ]; then
|
|
35 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
36 |
fi
|
|
37 |
%else
|
3846
|
38 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
39 |
%endif
|
|
40 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
41 |
CPUS=1
|
|
42 |
fi
|
|
43 |
|
570
|
44 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
45 |
./configure \
|
|
46 |
--prefix=%{_prefix} \
|
|
47 |
--libdir=%{_libdir} \
|
|
48 |
--enable-python_bindings=no
|
|
49 |
|
3263
|
50 |
make -j $CPUS
|
570
|
51 |
|
|
52 |
%install
|
|
53 |
make install DESTDIR=$RPM_BUILD_ROOT
|
3628
|
54 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
55 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
570
|
56 |
|
|
57 |
%clean
|
|
58 |
rm -rf $RPM_BUILD_ROOT
|
|
59 |
|
|
60 |
%post
|
1080
|
61 |
/sbin/ldconfig
|
|
62 |
|
|
63 |
%postun
|
|
64 |
/sbin/ldconfig
|
570
|
65 |
|
|
66 |
%files
|
|
67 |
%defattr(-,root,root)
|
|
68 |
%doc AUTHORS ChangeLog COPYING THANKS NEWS README TODO
|
1058
|
69 |
%{_libdir}/*.so*
|
570
|
70 |
%{_includedir}/*
|
|
71 |
|
|
72 |
%changelog
|
3628
|
73 |
* Fri Jul 09 2004 - [email protected]
|
|
74 |
- ported to rpm4
|
|
75 |
|
3263
|
76 |
* Wed Jul 07 2004 - [email protected]
|
|
77 |
- added "-j $CPUS" to make to speed up builds
|
|
78 |
|
1757
|
79 |
* Wed Feb 18 2004 - <[email protected]>
|
|
80 |
- Update Distro to Cinnabar
|
|
81 |
|
1058
|
82 |
* Thu Aug 14 2003 - <[email protected]>
|
|
83 |
- remove *.a, *.la
|
|
84 |
|
570
|
85 |
* Fri Jul 11 2003 - <[email protected]>
|
|
86 |
- Initial spec file
|