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