SUNWperl-xml-parser.spec
author henryz
Wed, 09 Apr 2008 07:35:21 +0000
changeset 12065 ec40d145a28b
parent 11965 acd528faf5ad
child 16131 8272e171a2d7
permissions -rw-r--r--
+2008-04-09 Henry Zhang <[email protected]> + + * patches/virt-manager-04-temporary-patch.diff: + Change the patch to fix AllY bug, 6686007 +
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWperl-xml-parser
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): XML-Parser (Perl XML::Parser module)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#                     XML:Simple
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# Copyright (c) 2004 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
# Owner: laca
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Name:                    SUNWperl-xml-parser
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Summary:                 XML::Parser and XML::Simple PERL modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Version:                 5.8.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
%define xml_parser_version 2.34
11347
9896bbeaaf71 * SUNWperl-xml-parser.spec: bump up XML-Simple to 2.18 (2.16 N/A)
pale
parents: 9592
diff changeset
    18
%define xml_simple_version 2.18
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Source:                  http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-%{xml_parser_version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Source1:                 http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-%{xml_simple_version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
SUNW_BaseDir:            %{_basedir}
11965
acd528faf5ad 2008-03-30 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11347
diff changeset
    22
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
BuildRequires:           SUNWsfwhea
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%define perl_version 5.8.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
%ifarch sparc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define perl_dir sun4-solaris-64int
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%define perl_dir i86pc-solaris-64int 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: SUNWlexpt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%define expat_libdir /usr/sfw/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
%define expat_includedir /usr/sfw/include
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%setup -q            -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%setup -q -D -T -b 1 -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
cd XML-Parser-%{xml_parser_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
perl Makefile.PL \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
    EXPATLIBPATH=%{expat_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
    EXPATINCPATH=%{expat_includedir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
    INSTALLSITELIB=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
    INSTALLSITEARCH=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
cd XML-Simple-%{xml_simple_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
perl Makefile.PL \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
    EXPATLIBPATH=%{expat_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
    EXPATINCPATH=%{expat_includedir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
    INSTALLSITELIB=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
    INSTALLSITEARCH=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
cd XML-Parser-%{xml_parser_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
make install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
cd XML-Simple-%{xml_simple_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
make install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%dir %attr(0755, root, bin) %{_prefix}/perl5
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}/XML
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%{_prefix}/perl5/vendor_perl/%{perl_version}/XML/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/XML
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%if %is_s10
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%dir %attr(0755, root, other) %{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%dir %attr(0755, root, bin) %{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_mandir}/man3/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%changelog
11347
9896bbeaaf71 * SUNWperl-xml-parser.spec: bump up XML-Simple to 2.18 (2.16 N/A)
pale
parents: 9592
diff changeset
   111
* Fri Dec 21 2007 - [email protected]
9896bbeaaf71 * SUNWperl-xml-parser.spec: bump up XML-Simple to 2.18 (2.16 N/A)
pale
parents: 9592
diff changeset
   112
- Bump XML-Simple to 2.18. Source to 2.16 N/A
9592
e6bf9de723fe 2007-03-20 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   113
* Mon Mar 20 2007 - [email protected]
e6bf9de723fe 2007-03-20 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   114
- Bump XML-Simple to 2.16. (Reported by reborg on desktop-discuss).
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
* Sun Jan 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
- update %files so that the attributes work on both s10 and nevada
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
* Wed May 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
* Wed Feb 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
- Correct perms to match s10fcs ones.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- remove unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Wed Jul 06 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- added SUNWsfwhea dependency needed for expat headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Mon Aug 30 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- Bug 5091588 : man3 files should be in a separate devel package
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Mon Aug 16 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- Use libexpat from Solaris (SUNWlexpt)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
* Thu Jul 08 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
- Change to support perl 5.8.4. Use %ifarch to install to different dirs.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
* Tue Jun 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- changed install location to /usr/lib and /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Sat Feb 28 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
- fix man page installation
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
* Mon Jan 26 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
- initial version added to CVS