SUNWperl-xml-parser.spec
author pale
Fri, 21 Dec 2007 14:37:05 +0000
changeset 11347 9896bbeaaf71
parent 9592 e6bf9de723fe
child 11965 acd528faf5ad
permissions -rw-r--r--
* SUNWperl-xml-parser.spec: bump up XML-Simple to 2.18 (2.16 N/A) * base-specs/libgcrypt.spec: Change http:// to ftp:// for source retrieval
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}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
BuildRequires:           SUNWsfwhea
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
%define perl_version 5.8.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%ifarch sparc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
%define perl_dir sun4-solaris-64int
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%define perl_dir i86pc-solaris-64int 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires: SUNWlexpt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
%define expat_libdir /usr/sfw/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%define expat_includedir /usr/sfw/include
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%setup -q            -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%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
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
cd XML-Parser-%{xml_parser_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
perl Makefile.PL \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
    EXPATLIBPATH=%{expat_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
    EXPATINCPATH=%{expat_includedir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
    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
    51
    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
    52
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
cd XML-Simple-%{xml_simple_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
perl Makefile.PL \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
    EXPATLIBPATH=%{expat_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
    EXPATINCPATH=%{expat_includedir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
    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
    65
    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
    66
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
cd XML-Parser-%{xml_parser_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
make install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
cd XML-Simple-%{xml_simple_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
make install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%{?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
    85
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%dir %attr(0755, root, bin) %{_prefix}/perl5
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl
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/%{perl_version}
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}/XML
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_prefix}/perl5/vendor_perl/%{perl_version}/XML/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%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
    97
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/XML
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%if %is_s10
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%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
   100
%{_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
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/auto
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%dir %attr(0755, root, bin) %{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%{_mandir}/man3/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%changelog
11347
9896bbeaaf71 * SUNWperl-xml-parser.spec: bump up XML-Simple to 2.18 (2.16 N/A)
pale
parents: 9592
diff changeset
   110
* 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
   111
- 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
   112
* Mon Mar 20 2007 - [email protected]
e6bf9de723fe 2007-03-20 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   113
- 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
   114
* Sun Jan 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
- 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
   116
* Wed May 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
* Wed Feb 15 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
- Correct perms to match s10fcs ones.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
- remove unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Wed Jul 06 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- added SUNWsfwhea dependency needed for expat headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
* Mon Aug 30 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
- 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
   128
* Mon Aug 16 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
- Use libexpat from Solaris (SUNWlexpt)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
* Thu Jul 08 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
- 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
   132
* Tue Jun 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
- changed install location to /usr/lib and /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
* Sat Feb 28 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- fix man page installation
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Mon Jan 26 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- initial version added to CVS