14586
|
1 |
#
|
|
2 |
# spec file for package SUNWlibical.spec
|
|
3 |
#
|
|
4 |
# Copyright (c) 2008 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.
|
|
7 |
#
|
16434
|
8 |
%define owner jedy
|
14586
|
9 |
#
|
|
10 |
|
16430
|
11 |
%define OSR 10376:0.x
|
|
12 |
|
14586
|
13 |
%include Solaris.inc
|
|
14 |
|
|
15 |
Name: SUNWlibical
|
|
16 |
License: LGPL v2.1
|
|
17 |
Group: System/Libraries
|
|
18 |
Summary: Libical is an Open Source implementation of the IETF's iCalendar Calendaring and Scheduling protocols
|
14904
|
19 |
Version: 0.43
|
14586
|
20 |
URL: http://sourceforge.net/projects/freeassociation/
|
|
21 |
Distribution: Java Desktop System
|
|
22 |
Vendor: Sun Microsystems, Inc.
|
|
23 |
Source: http://downloads.sourceforge.net/freeassociation/libical-%{version}.tar.gz
|
14838
|
24 |
Source1: %{name}-manpages-0.1.tar.gz
|
14759
|
25 |
#owner:fujiwara date:2008-12-12 type:bug bugster:6783979 bugid:2417984
|
|
26 |
Patch1: libical-01-g11n-strstriplt-utf8.diff
|
14586
|
27 |
SUNW_BaseDir: %{_basedir}
|
|
28 |
SUNW_Copyright: %{name}.copyright
|
|
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
30 |
|
|
31 |
%include default-depend.inc
|
|
32 |
Requires: SUNWperl584core
|
|
33 |
BuildRequires: SUNWperl584usr
|
14899
|
34 |
BuildRequires: SUNWcmake
|
14586
|
35 |
|
|
36 |
%package devel
|
|
37 |
Summary: %{summary} - development files
|
|
38 |
SUNW_BaseDir: %{_prefix}
|
|
39 |
%include default-depend.inc
|
|
40 |
Requires: %{name}
|
|
41 |
|
|
42 |
%prep
|
|
43 |
%setup -q -n libical-%{version}
|
14759
|
44 |
%patch1 -p1
|
14586
|
45 |
|
14838
|
46 |
cd %{_builddir}/libical-%version
|
|
47 |
gzcat %SOURCE1 | tar xf -
|
|
48 |
|
14586
|
49 |
|
|
50 |
%build
|
|
51 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
52 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
53 |
CPUS=1
|
|
54 |
fi
|
|
55 |
|
|
56 |
%if %debug_build
|
|
57 |
%define build_type Debug
|
|
58 |
%else
|
|
59 |
%define build_type Release
|
|
60 |
%endif
|
|
61 |
|
|
62 |
mkdir build && cd build
|
|
63 |
export CFLAGS="%optflags"
|
|
64 |
export LDFLAGS="%_ldflags"
|
|
65 |
export LD_LIBRARY_PATH="%_pkg_config_path"
|
|
66 |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=%{build_type} \
|
|
67 |
-DBUILD_SHARED_LIBS=On -DICAL_ERRORS_ARE_FATAL=false \
|
|
68 |
-DLIB_INSTALL_DIR=%{_libdir} ..
|
|
69 |
make
|
|
70 |
|
|
71 |
%ifarch amd64 sparcv9
|
|
72 |
mkdir ../build-%{_arch64} && cd ../build-%{_arch64}
|
|
73 |
export CFLAGS="%optflags64"
|
|
74 |
export LDFLAGS="%_ldflags"
|
|
75 |
export LD_LIBRARY_PATH=%{_libdir}/%{_arch64}/pkgconfig
|
|
76 |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=%{build_type} \
|
|
77 |
-DBUILD_SHARED_LIBS=On -DICAL_ERRORS_ARE_FATAL=false \
|
|
78 |
-DLIB_INSTALL_DIR=%{_libdir}/%{_arch64} ..
|
|
79 |
make
|
|
80 |
%endif
|
|
81 |
|
|
82 |
%install
|
|
83 |
rm -rf $RPM_BUILD_ROOT
|
|
84 |
cd build
|
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
86 |
%ifarch amd64 sparcv9
|
|
87 |
cd ../build-%{_arch64}
|
|
88 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
89 |
%endif
|
|
90 |
|
14838
|
91 |
cd %{_builddir}/libical-%version/sun-manpages
|
|
92 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
93 |
|
14586
|
94 |
%clean
|
|
95 |
rm -rf $RPM_BUILD_ROOT
|
|
96 |
|
|
97 |
%files
|
|
98 |
%doc(bzip2) THANKS
|
|
99 |
%doc(bzip2) COPYING
|
|
100 |
%doc(bzip2) LICENSE
|
|
101 |
%doc(bzip2) README
|
14914
|
102 |
%defattr(-, root, bin)
|
14659
|
103 |
%dir %attr (0755, root, sys) %{_datadir}
|
14838
|
104 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
105 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
106 |
%{_mandir}/man3/*
|
14659
|
107 |
%dir %attr (0755, root, other) %{_docdir}
|
14586
|
108 |
%dir %attr (0755,root,bin) %{_libdir}
|
|
109 |
%{_libdir}/lib*.so*
|
|
110 |
%ifarch amd64 sparcv9
|
|
111 |
%dir %attr (0755,root,bin) %{_libdir}/%{_arch64}
|
|
112 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
113 |
%endif
|
|
114 |
|
|
115 |
%files devel
|
|
116 |
%defattr (-, root, bin)
|
|
117 |
%dir %attr(0755, root, bin) %{_includedir}
|
|
118 |
%{_includedir}/*
|
|
119 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
120 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
121 |
%{_libdir}/pkgconfig/*
|
|
122 |
%ifarch amd64 sparcv9
|
|
123 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
124 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
125 |
%endif
|
|
126 |
|
|
127 |
%changelog
|
14914
|
128 |
* Tue Jan 15 2009 - [email protected]
|
|
129 |
- Set default dir/file attribute for base pkg to correct invalid owner issue.
|
14904
|
130 |
* Tue Jan 13 2009 - [email protected]
|
|
131 |
- Bump to 0.43.
|
14899
|
132 |
* Sun Jan 11 2009 - [email protected]
|
|
133 |
- Change to depend on SUNWcmake instead of SFEcmake.
|
14838
|
134 |
* Mon Jan 05 2009 - [email protected]
|
|
135 |
- Add manpage.
|
14759
|
136 |
* Fri Dec 12 2008 - [email protected]
|
|
137 |
- Add g11n-strstriplt-utf8.diff to work strstrip with UTF-8.
|
14659
|
138 |
* Thu Nov 27 2008 - [email protected]
|
|
139 |
- Bump to 0.42.
|
|
140 |
- Add %attr to _datadir and _docdir to fix build.
|
14586
|
141 |
* Tue Nov 13 2008 - [email protected]
|
|
142 |
- Move from sfe to spec-files.
|
|
143 |
* Tue Nov 11 2008 - [email protected]
|
|
144 |
- Bump to 0.4.1.
|
|
145 |
* Thu Oct 30 2008 - [email protected]
|
|
146 |
- Bump to 0.4.0.
|
|
147 |
- Use cmake to build.
|
|
148 |
- Add patch 01-build.diff.
|
|
149 |
* Mon Jan 21 2008 - [email protected]
|
|
150 |
- Initial spec.
|