Solaris/SUNWperl-xml-parser.spec
author laca
Sat, 15 Oct 2005 18:10:50 +0000
changeset 6105 c4af3ceb5161
parent 6094 8a3298e55929
child 6772 bb4b1dff7804
permissions -rw-r--r--
2005-10-15 Laszlo Peter <[email protected]> * SUNWgnome-themes.spec: add icon-naming-utils and tango-icon-theme. Tango requires icon-naming-utils and imagemagick; icon-naming-utils requires the XML::Simple perl module. * SUNWimagemagick.spec: new. spec file for ImageMagick. See http://www.imagemagick.org/ * SUNWmozilla.spec: remove * SUNWperl-xml-parser.spec: add XML::Simple module * manpages/sman1/mozilla.1: remove.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     1
#
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     2
# spec file for package SUNWperl-xml-parser
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     3
#
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     4
# includes module(s): XML-Parser (Perl XML::Parser module)
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
     5
#                     XML:Simple
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     6
#
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     7
# Copyright (c) 2004 Sun Microsystems, Inc.
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     8
# This file and all modifications and additions to the pristine
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
     9
# package are under the same license as the package itself.
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    10
#
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    11
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    12
%include Solaris.inc
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    13
Name:                    SUNWperl-xml-parser
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    14
Summary:                 XML::Parser and XML::Simple PERL modules
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    15
Version:                 5.8.4
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    16
%define xml_parser_version 2.34
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    17
%define xml_simple_version 2.14
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    18
Source:                  http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-%{xml_parser_version}.tar.gz
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    19
Source1:                 http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-%{xml_simple_version}.tar.gz
2621
ffa9546fd848 2004-05-03 Laszlo Peter <[email protected]>
laca
parents: 2605
diff changeset
    20
SUNW_BaseDir:            %{_basedir}
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    21
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
5518
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents: 4468
diff changeset
    22
BuildRequires:           SUNWsfwhea
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    23
3280
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    24
%define perl_version 5.8.4
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    25
%ifarch sparc
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    26
%define perl_dir sun4-solaris-64int
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    27
%else
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    28
%define perl_dir i86pc-solaris-64int 
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
    29
%endif
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    30
%include default-depend.inc
3570
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
    31
Requires: SUNWlexpt
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
    32
%define expat_libdir /usr/sfw/lib
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
    33
%define expat_includedir /usr/sfw/include
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    34
3821
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    35
%package devel-share
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    36
Summary:                 XML::Parser and XML::Simple PERL modules developer files - platform independent files, /usr/share
3821
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    37
SUNW_BaseDir:            %{_basedir}
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    38
%include default-depend.inc
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    39
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    40
%prep
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    41
%setup -q            -c -n %name-%version
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    42
%setup -q -D -T -b 1 -c -n %name-%version
4468
d2ebf6f0146d 2004-11-08 Takao Fujiwara <[email protected]>
fujiwara
parents: 4122
diff changeset
    43
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    44
%build
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    45
cd XML-Parser-%{xml_parser_version}
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    46
perl Makefile.PL \
3570
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
    47
    EXPATLIBPATH=%{expat_libdir} \
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
    48
    EXPATINCPATH=%{expat_includedir} \
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    49
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    50
    INSTALLSITELIB=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    51
    INSTALLSITEARCH=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    52
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    53
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    54
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    55
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    56
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    57
cd ..
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    58
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    59
cd XML-Simple-%{xml_simple_version}
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    60
perl Makefile.PL \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    61
    EXPATLIBPATH=%{expat_libdir} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    62
    EXPATINCPATH=%{expat_includedir} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    63
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    64
    INSTALLSITELIB=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version} \
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    65
    INSTALLSITEARCH=$RPM_BUILD_ROOT%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir} \
2082
dc614922a047 2004-02-28 Laszlo Peter <[email protected]>
laca
parents: 1638
diff changeset
    66
    INSTALLSITEMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
2605
cb1fd7905908 2004-05-01 Laszlo Peter <[email protected]>
laca
parents: 2082
diff changeset
    67
    INSTALLSITEMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3 \
cb1fd7905908 2004-05-01 Laszlo Peter <[email protected]>
laca
parents: 2082
diff changeset
    68
    INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
cb1fd7905908 2004-05-01 Laszlo Peter <[email protected]>
laca
parents: 2082
diff changeset
    69
    INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
5936
dd78e861de84 2005-09-19 Laszlo Peter <[email protected]>
laca
parents: 5859
diff changeset
    70
make CC=$CC CCCDLFLAGS="%picflags" OPTIMIZE="%optflags" LD=$CC
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    71
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    72
%install
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    73
rm -rf $RPM_BUILD_ROOT
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    74
cd XML-Parser-%{xml_parser_version}
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    75
make install
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    76
cd ..
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    77
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    78
cd XML-Simple-%{xml_simple_version}
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    79
make install
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    80
cd ..
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    81
5686
21c98a0ed4a1 2005-09-02 Laszlo Peter <[email protected]>
laca
parents: 5518
diff changeset
    82
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib
21c98a0ed4a1 2005-09-02 Laszlo Peter <[email protected]>
laca
parents: 5518
diff changeset
    83
5859
da89f4e343b9 update package version numbers and change ELF comment from supported to
laca
parents: 5686
diff changeset
    84
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
4122
0c938071234a 2004-10-03 Laszlo Peter <[email protected]>
laca
parents: 3821
diff changeset
    85
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    86
%clean
2605
cb1fd7905908 2004-05-01 Laszlo Peter <[email protected]>
laca
parents: 2082
diff changeset
    87
rm -rf $RPM_BUILD_ROOT
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    88
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
    89
%files
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    90
%defattr (-, root, bin)
3221
a9dc1a9a5f37 Updated for changing Gnome install location to /usr/...,
woos
parents: 2621
diff changeset
    91
%dir %attr(0755, root, bin) %{_prefix}/perl5
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    92
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    93
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    94
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    95
%dir %attr(0755, root, bin) %{_prefix}/perl5/vendor_perl/%{perl_version}/XML
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    96
%{_prefix}/perl5/vendor_perl/%{perl_version}/XML/*
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
    97
%{_prefix}/perl5/vendor_perl/%{perl_version}/%{perl_dir}/*
3821
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    98
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
    99
%files devel-share
6105
c4af3ceb5161 2005-10-15 Laszlo Peter <[email protected]>
laca
parents: 6094
diff changeset
   100
%defattr (-, root, bin)
1638
95692e17c5a4 fix mandir permissions
laca
parents: 1637
diff changeset
   101
%dir %attr(0755, root, sys) %{_datadir}
95692e17c5a4 fix mandir permissions
laca
parents: 1637
diff changeset
   102
%dir %attr(0755, root, bin) %{_mandir}
3821
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
   103
%dir %attr(0755, root, bin) %{_mandir}/man3
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
   104
%{_mandir}/man3/*
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
   105
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
   106
%changelog
5686
21c98a0ed4a1 2005-09-02 Laszlo Peter <[email protected]>
laca
parents: 5518
diff changeset
   107
* Fri Sep 02 2005 - [email protected]
21c98a0ed4a1 2005-09-02 Laszlo Peter <[email protected]>
laca
parents: 5518
diff changeset
   108
- remove unpackaged files
5518
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents: 4468
diff changeset
   109
* Wed Jul 06 2005 - [email protected]
235b0b4aa324 merged the gnome-2-10 branch to HEAD
laca
parents: 4468
diff changeset
   110
- added SUNWsfwhea dependency needed for expat headers
4122
0c938071234a 2004-10-03 Laszlo Peter <[email protected]>
laca
parents: 3821
diff changeset
   111
* Sat Oct 02 2004 - [email protected]
0c938071234a 2004-10-03 Laszlo Peter <[email protected]>
laca
parents: 3821
diff changeset
   112
- added %pkgbuild_postprocess
3821
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
   113
* Mon Aug 30 2004 - [email protected]
b733a4eafc1d fixed solaris packagine bugs 5091588 & 5091983,
woos
parents: 3570
diff changeset
   114
- Bug 5091588 : man3 files should be in a separate devel package
3570
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
   115
* Mon Aug 16 2004 - [email protected]
cd41e8ca29a1 2004-08-16 Laszlo Peter <[email protected]>
laca
parents: 3280
diff changeset
   116
- Use libexpat from Solaris (SUNWlexpt)
3280
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
   117
* Thu Jul 08 2004 - [email protected]
29616615f2ea * SUNWperl-xml-parser.spec: Change to support perl 5.8.4. Use %ifarch
dc144907
parents: 3221
diff changeset
   118
- Change to support perl 5.8.4. Use %ifarch to install to different dirs.
3221
a9dc1a9a5f37 Updated for changing Gnome install location to /usr/...,
woos
parents: 2621
diff changeset
   119
* Tue Jun 22 2004 - [email protected]
a9dc1a9a5f37 Updated for changing Gnome install location to /usr/...,
woos
parents: 2621
diff changeset
   120
- changed install location to /usr/lib and /usr/bin
2082
dc614922a047 2004-02-28 Laszlo Peter <[email protected]>
laca
parents: 1638
diff changeset
   121
* Sat Feb 28 2004 - [email protected]
dc614922a047 2004-02-28 Laszlo Peter <[email protected]>
laca
parents: 1638
diff changeset
   122
- fix man page installation
1536
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
   123
* Mon Jan 26 2004 - [email protected]
f4366853a450 2004-01-26 Laszlo Peter <[email protected]>
laca
parents:
diff changeset
   124
- initial version added to CVS