Ticket #503: parrot_separate_distros_spec.patch

File parrot_separate_distros_spec.patch, 25.8 KB (added by wayland, 13 years ago)

Patch with separate spec files for separate distros

  • parrot.spec

     
    1 Name:           parrot 
    2 Version:        1.0.0 
    3 Release:        1%{dist} 
    4 Summary:        Parrot Virtual Machine 
    5 License:        Artistic 2.0 
    6 Group:          Development/Libraries 
    7 URL:            http://www.parrot.org/ 
    8 Source0:        ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 
    9 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
    10 BuildRequires:  readline-devel 
    11 BuildRequires:  ncurses-devel 
    12 BuildRequires:  gmp-devel 
    13 BuildRequires:  gdbm-devel 
    14 BuildRequires:  libicu-devel 
    15 BuildRequires:  perl-Test-Harness 
    16  
    17 %package docs 
    18 Summary:        Parrot Virtual Machine documentation 
    19 License:        Artistic 2.0 
    20 Group:          Development/Libraries 
    21 BuildRequires:  /usr/bin/perldoc 
    22  
    23 %package devel 
    24 Summary:        Parrot Virtual Machine development headers and libraries 
    25 License:        Artistic 2.0 
    26 Group:          Development/Libraries 
    27 Requires:       %{name} = %{version}-%{release} 
    28 Requires:       %{_libdir}/pkgconfig 
    29  
    30 %description 
    31 Parrot is a virtual machine designed to efficiently compile and execute 
    32 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 
    33 as well as variety of other languages. 
    34  
    35 %description docs 
    36 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 
    37 examples about the Parrot Virtual Machine 
    38  
    39 %description devel 
    40 Parrot Virtual Machine development headers and libraries. 
    41  
    42 %prep 
    43 %setup -q 
    44  
    45 %{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 
    46     src/library.c 
    47 %{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 
    48     tools/dev/install_files.pl 
    49  
    50 %build 
    51 if test "%{_vendor}" = "suse" 
    52 then 
    53     LIBS='-lncurses -lm' 
    54 else 
    55     LIBS='-lcurses -lm' 
    56 fi 
    57  
    58 %ifarch i386 x86_64 
    59 %{__perl} Configure.pl \ 
    60     --prefix=%{_usr} \ 
    61     --libdir=%{_libdir} \ 
    62     --sysconfdir=%{_sysconfdir} \ 
    63     --infodir=%{_datadir}/info \ 
    64     --mandir=%{_mandir} \ 
    65     --cc="%{__cc}" \ 
    66     --cxx=%{__cxx} \ 
    67     --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 
    68     --parrot_is_shared \ 
    69     --lex=/usr/bin/flex \ 
    70     --yacc=/usr/bin/yacc \ 
    71     --libs="$LIBS" 
    72 %else 
    73 # PowerPC 
    74 %{__perl} Configure.pl \ 
    75     --prefix=%{_usr} \ 
    76     --libdir=%{_libdir} 
    77 %endif 
    78  
    79 export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    80 make 
    81 make parrot_utils 
    82 make installable 
    83 make html 
    84  
    85 %install 
    86 rm -rf $RPM_BUILD_ROOT 
    87  
    88 export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    89 make install DESTDIR=$RPM_BUILD_ROOT 
    90  
    91 # Drop the docs so rpm can pick them up itself. 
    92 rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot    # necessary for SuSE 
    93 #rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot         # for Solaris? 
    94  
    95 # Force permissions on doc directories. 
    96 find docs examples -type d -exec chmod 755 {} \; 
    97 find docs examples -type f -exec chmod 644 {} \; 
    98  
    99 # Force permissions on shared libs so they get stripped. 
    100 find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 
    101     -exec chmod 755 {} \; 
    102  
    103 # These files *probably* aren't needed. 
    104 rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 
    105     $RPM_BUILD_ROOT%{_includedir}/src \ 
    106     $RPM_BUILD_ROOT%{_usr}/src \ 
    107     $RPM_BUILD_ROOT%{_usr}/tools 
    108  
    109 %check 
    110 export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    111 # make test < /dev/null 
    112 # %{?_with_fulltest:make fulltest < /dev/null} 
    113 # make test || : 
    114 # %{?_with_fulltest:make fulltest || :} 
    115  
    116 %clean 
    117 rm -rf $RPM_BUILD_ROOT 
    118  
    119 %post -p /sbin/ldconfig 
    120  
    121 %postun -p /sbin/ldconfig 
    122  
    123 %files 
    124 %defattr(-,root,root,-) 
    125 %exclude %{_bindir}/parrot_config 
    126 %exclude %{_bindir}/parrot_debugger 
    127 %exclude %{_bindir}/pbc_* 
    128 %{_bindir}/* 
    129 %{_libdir}/parrot 
    130 %{_libdir}/libparrot.so.* 
    131  
    132 %files docs 
    133 %defattr(-,root,root,-) 
    134 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
    135 %doc RESPONSIBLE_PARTIES TODO 
    136 %doc docs examples 
    137  
    138 %files devel 
    139 %defattr(-,root,root,-) 
    140 %{_bindir}/parrot_config 
    141 %{_bindir}/parrot_debugger 
    142 %{_bindir}/pbc_disassemble 
    143 %{_bindir}/pbc_info 
    144 %{_bindir}/pbc_merge 
    145 %{_bindir}/pbc_to_exe 
    146 %{_bindir}/pbc_dump 
    147 %{_includedir}/parrot 
    148 %{_libdir}/libparrot.so 
    149 %{_libdir}/libparrot.a 
    150 %{_libdir}/pkgconfig/* 
    151  
    152 %changelog 
    153 * Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 
    154 - updated to 1.0.0 
    155  
    156 * Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 
    157 - added make installable, perl6 is still not installable 
    158 - added parrot_utils to devel 
    159 - fixed Source0 url 
    160  
    161 * Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0 
    162 - added make html 
    163 - make reallyinstall => make install 
    164  
    165 * Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0 
    166 - updated to 0.9.0 
    167  
    168 * Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2 
    169 - updated to 0.8.2 
    170  
    171 * Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1 
    172 - updated to 0.8.1 
    173  
    174 * Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0 
    175 - updated to 0.8.0 
    176  
    177 * Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1 
    178 - updated to 0.7.1 
    179  
    180 * Wed Sep  3 2008 chromatic <chromatic@wgz.org> 0.7.0 
    181 - install parrot_config (not parrot-config) 
    182  
    183 * Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3 
    184 - updated to 0.6.3 
    185  
    186 * Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2 
    187 - updated to 0.6.2 
    188  
    189 * Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1 
    190 - minor fixes; tested with Fedora 7, 8, and 9-beta 
    191  
    192 * Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0 
    193 - Update to 0.5.3. 
    194  
    195 * Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3 
    196 - Update to 0.5.3. 
    197  
    198 * Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2 
    199 - Update to 0.5.2. 
    200  
    201 * Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1 
    202 - Update to 0.5.1. 
    203  
    204 * Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0 
    205 - Update to 0.5.0. 
    206  
    207 * Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1 
    208 - Update to 0.4.12. 
    209  
    210 * Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1 
    211 - Update to 0.4.11. 
    212  
    213 * Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1 
    214 - Update to 0.4.10. 
    215  
    216 * Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1 
    217 - Update to 0.4.9. 
    218 - BR ncurses-devel. 
    219 - For some reason now I need to force -lm too. 
    220 - Remove some files/directories that shouldn't be included. 
    221  
    222 * Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1 
    223 - Attempt update to 0.4.8. 
    224  
    225 * Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5 
    226 - Override lib_dir and make various substitutions to try to fix multilib. 
    227 - Remove rpath use from Makefile. 
    228 - Fix a pod error in src/ops/experimental.ops. 
    229 - Enable "make test" since t/doc/pod.t won't fail now. 
    230  
    231 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4 
    232 - Force permissions on shared libraries so rpmbuild strips them. 
    233  
    234 * Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3 
    235 - Fix URL, description, summary, etc. 
    236 - Add post/postun. 
    237 - Move parrot-config to the devel sub-package. 
    238 - Force permissions on the doc directories. 
    239  
    240 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2 
    241 - Add -lcurses to get readline detection to work. 
    242 - BR libicu-devel. 
    243  
    244 * Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1 
    245 - Initial packaging attempt. 
    246  
    247 * Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11 
    248 - first .spec file created 
  • ports/suse/parrot.spec

     
     1Name:           parrot 
     2Version:        1.0.0 
     3Release:        1%{dist} 
     4Summary:        Parrot Virtual Machine 
     5License:        Artistic 2.0 
     6Group:          Development/Libraries 
     7URL:            http://www.parrot.org/ 
     8Source0:        ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 
     9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
     10BuildRequires:  readline-devel 
     11BuildRequires:  ncurses-devel 
     12BuildRequires:  gmp-devel 
     13BuildRequires:  gdbm-devel 
     14BuildRequires:  libicu-devel 
     15BuildRequires:  perl-Test-Harness 
     16 
     17%package docs 
     18Summary:        Parrot Virtual Machine documentation 
     19License:        Artistic 2.0 
     20Group:          Development/Libraries 
     21BuildRequires:  /usr/bin/perldoc 
     22 
     23%package devel 
     24Summary:        Parrot Virtual Machine development headers and libraries 
     25License:        Artistic 2.0 
     26Group:          Development/Libraries 
     27Requires:       %{name} = %{version}-%{release} 
     28Requires:       %{_libdir}/pkgconfig 
     29 
     30%description 
     31Parrot is a virtual machine designed to efficiently compile and execute 
     32bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 
     33as well as variety of other languages. 
     34 
     35%description docs 
     36Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 
     37examples about the Parrot Virtual Machine 
     38 
     39%description devel 
     40Parrot Virtual Machine development headers and libraries. 
     41 
     42%prep 
     43%setup -q 
     44 
     45%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 
     46    src/library.c 
     47%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 
     48    tools/dev/install_files.pl 
     49 
     50%build 
     51 
     52%ifarch i386 x86_64 
     53%{__perl} Configure.pl \ 
     54    --prefix=%{_usr} \ 
     55    --libdir=%{_libdir} \ 
     56    --sysconfdir=%{_sysconfdir} \ 
     57    --infodir=%{_datadir}/info \ 
     58    --mandir=%{_mandir} \ 
     59    --cc="%{__cc}" \ 
     60    --cxx=%{__cxx} \ 
     61    --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 
     62    --parrot_is_shared \ 
     63    --lex=/usr/bin/flex \ 
     64    --yacc=/usr/bin/yacc \ 
     65    --libs="-lncurses -lm" 
     66%else 
     67# PowerPC 
     68%{__perl} Configure.pl \ 
     69    --prefix=%{_usr} \ 
     70    --libdir=%{_libdir} 
     71%endif 
     72 
     73export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     74make 
     75make parrot_utils 
     76make installable 
     77make html 
     78 
     79%install 
     80rm -rf $RPM_BUILD_ROOT 
     81 
     82export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     83make install DESTDIR=$RPM_BUILD_ROOT 
     84 
     85# Drop the docs so rpm can pick them up itself. 
     86rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot    # necessary for SuSE 
     87#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot         # for Solaris? 
     88 
     89# Force permissions on doc directories. 
     90find docs examples -type d -exec chmod 755 {} \; 
     91find docs examples -type f -exec chmod 644 {} \; 
     92 
     93# Force permissions on shared libs so they get stripped. 
     94find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 
     95    -exec chmod 755 {} \; 
     96 
     97# These files *probably* aren't needed. 
     98rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 
     99    $RPM_BUILD_ROOT%{_includedir}/src \ 
     100    $RPM_BUILD_ROOT%{_usr}/src \ 
     101    $RPM_BUILD_ROOT%{_usr}/tools 
     102 
     103%check 
     104export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     105# make test < /dev/null 
     106# %{?_with_fulltest:make fulltest < /dev/null} 
     107# make test || : 
     108# %{?_with_fulltest:make fulltest || :} 
     109 
     110%clean 
     111rm -rf $RPM_BUILD_ROOT 
     112 
     113%post -p /sbin/ldconfig 
     114 
     115%postun -p /sbin/ldconfig 
     116 
     117%files 
     118%defattr(-,root,root,-) 
     119%exclude %{_bindir}/parrot_config 
     120%exclude %{_bindir}/parrot_debugger 
     121%exclude %{_bindir}/pbc_* 
     122%{_bindir}/* 
     123%{_libdir}/parrot 
     124%{_libdir}/libparrot.so.* 
     125 
     126%files docs 
     127%defattr(-,root,root,-) 
     128%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
     129%doc RESPONSIBLE_PARTIES TODO 
     130%doc docs examples 
     131 
     132%files devel 
     133%defattr(-,root,root,-) 
     134%{_bindir}/parrot_config 
     135%{_bindir}/parrot_debugger 
     136%{_bindir}/pbc_disassemble 
     137%{_bindir}/pbc_info 
     138%{_bindir}/pbc_merge 
     139%{_bindir}/pbc_to_exe 
     140%{_bindir}/pbc_dump 
     141%{_includedir}/parrot 
     142%{_libdir}/libparrot.so 
     143%{_libdir}/libparrot.a 
     144%{_libdir}/pkgconfig/* 
     145 
     146%changelog 
     147* Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 
     148- updated to 1.0.0 
     149 
     150* Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 
     151- added make installable, perl6 is still not installable 
     152- added parrot_utils to devel 
     153- fixed Source0 url 
     154 
     155* Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0 
     156- added make html 
     157- make reallyinstall => make install 
     158 
     159* Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0 
     160- updated to 0.9.0 
     161 
     162* Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2 
     163- updated to 0.8.2 
     164 
     165* Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1 
     166- updated to 0.8.1 
     167 
     168* Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0 
     169- updated to 0.8.0 
     170 
     171* Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1 
     172- updated to 0.7.1 
     173 
     174* Wed Sep  3 2008 chromatic <chromatic@wgz.org> 0.7.0 
     175- install parrot_config (not parrot-config) 
     176 
     177* Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3 
     178- updated to 0.6.3 
     179 
     180* Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2 
     181- updated to 0.6.2 
     182 
     183* Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1 
     184- minor fixes; tested with Fedora 7, 8, and 9-beta 
     185 
     186* Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0 
     187- Update to 0.5.3. 
     188 
     189* Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3 
     190- Update to 0.5.3. 
     191 
     192* Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2 
     193- Update to 0.5.2. 
     194 
     195* Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1 
     196- Update to 0.5.1. 
     197 
     198* Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0 
     199- Update to 0.5.0. 
     200 
     201* Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1 
     202- Update to 0.4.12. 
     203 
     204* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1 
     205- Update to 0.4.11. 
     206 
     207* Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1 
     208- Update to 0.4.10. 
     209 
     210* Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1 
     211- Update to 0.4.9. 
     212- BR ncurses-devel. 
     213- For some reason now I need to force -lm too. 
     214- Remove some files/directories that shouldn't be included. 
     215 
     216* Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1 
     217- Attempt update to 0.4.8. 
     218 
     219* Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5 
     220- Override lib_dir and make various substitutions to try to fix multilib. 
     221- Remove rpath use from Makefile. 
     222- Fix a pod error in src/ops/experimental.ops. 
     223- Enable "make test" since t/doc/pod.t won't fail now. 
     224 
     225* Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4 
     226- Force permissions on shared libraries so rpmbuild strips them. 
     227 
     228* Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3 
     229- Fix URL, description, summary, etc. 
     230- Add post/postun. 
     231- Move parrot-config to the devel sub-package. 
     232- Force permissions on the doc directories. 
     233 
     234* Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2 
     235- Add -lcurses to get readline detection to work. 
     236- BR libicu-devel. 
     237 
     238* Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1 
     239- Initial packaging attempt. 
     240 
     241* Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11 
     242- first .spec file created 
  • ports/fedora/parrot.spec

     
     1Name:           parrot 
     2Version:        1.0.0 
     3Release:        1%{dist} 
     4Summary:        Parrot Virtual Machine 
     5License:        Artistic 2.0 
     6Group:          Development/Libraries 
     7URL:            http://www.parrot.org/ 
     8Source0:        ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz 
     9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
     10BuildRequires:  readline-devel 
     11BuildRequires:  ncurses-devel 
     12BuildRequires:  gmp-devel 
     13BuildRequires:  gdbm-devel 
     14BuildRequires:  libicu-devel 
     15BuildRequires:  perl-Test-Harness 
     16 
     17%package docs 
     18Summary:        Parrot Virtual Machine documentation 
     19License:        Artistic 2.0 
     20Group:          Development/Libraries 
     21BuildRequires:  /usr/bin/perldoc 
     22 
     23%package devel 
     24Summary:        Parrot Virtual Machine development headers and libraries 
     25License:        Artistic 2.0 
     26Group:          Development/Libraries 
     27Requires:       %{name} = %{version}-%{release} 
     28Requires:       %{_libdir}/pkgconfig 
     29 
     30%description 
     31Parrot is a virtual machine designed to efficiently compile and execute 
     32bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 
     33as well as variety of other languages. 
     34 
     35%description docs 
     36Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 
     37examples about the Parrot Virtual Machine 
     38 
     39%description devel 
     40Parrot Virtual Machine development headers and libraries. 
     41 
     42%prep 
     43%setup -q 
     44 
     45%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 
     46    src/library.c 
     47%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 
     48    tools/dev/install_files.pl 
     49 
     50%build 
     51 
     52%ifarch i386 x86_64 
     53%{__perl} Configure.pl \ 
     54    --prefix=%{_usr} \ 
     55    --libdir=%{_libdir} \ 
     56    --sysconfdir=%{_sysconfdir} \ 
     57    --infodir=%{_datadir}/info \ 
     58    --mandir=%{_mandir} \ 
     59    --cc="%{__cc}" \ 
     60    --cxx=%{__cxx} \ 
     61    --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 
     62    --parrot_is_shared \ 
     63    --lex=/usr/bin/flex \ 
     64    --yacc=/usr/bin/yacc \ 
     65    --libs="-lcurses -lm" 
     66%else 
     67# PowerPC 
     68%{__perl} Configure.pl \ 
     69    --prefix=%{_usr} \ 
     70    --libdir=%{_libdir} 
     71%endif 
     72 
     73export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     74make 
     75make parrot_utils 
     76make installable 
     77make html 
     78 
     79%install 
     80rm -rf $RPM_BUILD_ROOT 
     81 
     82export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     83make install DESTDIR=$RPM_BUILD_ROOT 
     84 
     85# Drop the docs so rpm can pick them up itself. 
     86rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot    # necessary for SuSE 
     87#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot         # for Solaris? 
     88 
     89# Force permissions on doc directories. 
     90find docs examples -type d -exec chmod 755 {} \; 
     91find docs examples -type f -exec chmod 644 {} \; 
     92 
     93# Force permissions on shared libs so they get stripped. 
     94find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 
     95    -exec chmod 755 {} \; 
     96 
     97# These files *probably* aren't needed. 
     98rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 
     99    $RPM_BUILD_ROOT%{_includedir}/src \ 
     100    $RPM_BUILD_ROOT%{_usr}/src \ 
     101    $RPM_BUILD_ROOT%{_usr}/tools 
     102 
     103%check 
     104export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     105# make test < /dev/null 
     106# %{?_with_fulltest:make fulltest < /dev/null} 
     107# make test || : 
     108# %{?_with_fulltest:make fulltest || :} 
     109 
     110%clean 
     111rm -rf $RPM_BUILD_ROOT 
     112 
     113%post -p /sbin/ldconfig 
     114 
     115%postun -p /sbin/ldconfig 
     116 
     117%files 
     118%defattr(-,root,root,-) 
     119%exclude %{_bindir}/parrot_config 
     120%exclude %{_bindir}/parrot_debugger 
     121%exclude %{_bindir}/pbc_* 
     122%{_bindir}/* 
     123%{_libdir}/parrot 
     124%{_libdir}/libparrot.so.* 
     125 
     126%files docs 
     127%defattr(-,root,root,-) 
     128%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
     129%doc RESPONSIBLE_PARTIES TODO 
     130%doc docs examples 
     131 
     132%files devel 
     133%defattr(-,root,root,-) 
     134%{_bindir}/parrot_config 
     135%{_bindir}/parrot_debugger 
     136%{_bindir}/pbc_disassemble 
     137%{_bindir}/pbc_info 
     138%{_bindir}/pbc_merge 
     139%{_bindir}/pbc_to_exe 
     140%{_bindir}/pbc_dump 
     141%{_includedir}/parrot 
     142%{_libdir}/libparrot.so 
     143%{_libdir}/libparrot.a 
     144%{_libdir}/pkgconfig/* 
     145 
     146%changelog 
     147* Tue Mar 17 2009 Allison Randal <allison@parrot.org> 1.0.0 
     148- updated to 1.0.0 
     149 
     150* Tue Jan 23 2009 Reini Urban <rurban@x-ray.at> 0.9.0 
     151- added make installable, perl6 is still not installable 
     152- added parrot_utils to devel 
     153- fixed Source0 url 
     154 
     155* Tue Jan 23 2009 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.9.0 
     156- added make html 
     157- make reallyinstall => make install 
     158 
     159* Tue Jan 20 2009 chromatic <chromatic@wgz.org> 0.9.0 
     160- updated to 0.9.0 
     161 
     162* Tue Dec 16 2008 Whiteknight <wknight8111@gmail.com> 0.8.2 
     163- updated to 0.8.2 
     164 
     165* Tue Nov 18 2008 chromatic <chromatic@parrot.org> 0.8.1 
     166- updated to 0.8.1 
     167 
     168* Tue Oct 21 2008 particle <particle@parrot.org> 0.8.0 
     169- updated to 0.8.0 
     170 
     171* Tue Sep 16 2008 pmichaud <pmichaud@pobox.com> 0.7.1 
     172- updated to 0.7.1 
     173 
     174* Wed Sep  3 2008 chromatic <chromatic@wgz.org> 0.7.0 
     175- install parrot_config (not parrot-config) 
     176 
     177* Tue Jun 17 2008 Nuno Carvalho <smash@cpan.org> 0.6.3 
     178- updated to 0.6.3 
     179 
     180* Tue May 20 2008 chromatic <chromatic@wgz.org>> 0.6.2 
     181- updated to 0.6.2 
     182 
     183* Mon Apr 28 2008 chromatic <chromatic@wgz.org> 0.6.1 
     184- minor fixes; tested with Fedora 7, 8, and 9-beta 
     185 
     186* Tue Mar 18 2008 Bernhard Schmalhofer <Bernhard.Schmalhofer@gmx.de> 0.6.0 
     187- Update to 0.5.3. 
     188 
     189* Wed Feb 20 2008 Patrick Michaud <pmichaud@pobox.com> 0.5.3 
     190- Update to 0.5.3. 
     191 
     192* Tue Jan 15 2008 Bob Rogers <rogers@rgrjr.dyndns.org> 0.5.2 
     193- Update to 0.5.2. 
     194 
     195* Tue Dec 18 2007 Jonathan Worthington <jnthn@jnthn.net> 0.5.1 
     196- Update to 0.5.1. 
     197 
     198* Tue Nov 20 2007 chromatic <chromatic@wgz.org> 0.5.0 
     199- Update to 0.5.0. 
     200 
     201* Fri May 25 2007 David Fetter <david@fetter.org> 0.4.12-1 
     202- Update to 0.4.12. 
     203 
     204* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.4.11-1 
     205- Update to 0.4.11. 
     206 
     207* Wed Mar 21 2007 Steven Pritchard <steve@kspei.com> 0.4.10-1 
     208- Update to 0.4.10. 
     209 
     210* Sat Mar 10 2007 Steven Pritchard <steve@kspei.com> 0.4.9-1 
     211- Update to 0.4.9. 
     212- BR ncurses-devel. 
     213- For some reason now I need to force -lm too. 
     214- Remove some files/directories that shouldn't be included. 
     215 
     216* Wed Jan 17 2007 Steven Pritchard <steve@kspei.com> 0.4.8-1 
     217- Attempt update to 0.4.8. 
     218 
     219* Fri Jun 30 2006 Steven Pritchard <steve@kspei.com> 0.4.5-5 
     220- Override lib_dir and make various substitutions to try to fix multilib. 
     221- Remove rpath use from Makefile. 
     222- Fix a pod error in src/ops/experimental.ops. 
     223- Enable "make test" since t/doc/pod.t won't fail now. 
     224 
     225* Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-4 
     226- Force permissions on shared libraries so rpmbuild strips them. 
     227 
     228* Wed Jun 28 2006 Steven Pritchard <steve@kspei.com> 0.4.5-3 
     229- Fix URL, description, summary, etc. 
     230- Add post/postun. 
     231- Move parrot-config to the devel sub-package. 
     232- Force permissions on the doc directories. 
     233 
     234* Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-2 
     235- Add -lcurses to get readline detection to work. 
     236- BR libicu-devel. 
     237 
     238* Tue Jun 27 2006 Steven Pritchard <steve@kspei.com> 0.4.5-1 
     239- Initial packaging attempt. 
     240 
     241* Tue Mar 18 2003 Steve Fink <sfink@foxglove.localdomain> 0.0.11 
     242- first .spec file created 
  • ports/mandriva/parrot.spec

     
     1%define name    parrot 
     2%define version 0.9.1 
     3%define release %mkrel 2 
     4 
     5%define libname %mklibname %{name} 
     6%define libname_devel  %mklibname -d %{name}  
     7 
     8Summary:       Parrot Virtual Machine 
     9Name:          %name 
     10Version:       %version 
     11Release:       %release 
     12Source0:       ftp://ftp.parrot.org/pub/parrot/releases/devel/%{version}/%{name}-%{version}.tar.gz 
     13License:       Artistic 2.0 
     14Group:         Development/Perl 
     15Url:           http://www.parrot.org/ 
     16BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot 
     17BuildRequires: readline-devel 
     18BuildRequires: ncurses-devel 
     19BuildRequires: gmp-devel 
     20BuildRequires: gdbm-devel 
     21BuildRequires: perl-doc 
     22BuildRequires: libicu-devel 
     23 
     24%description 
     25Parrot is a virtual machine designed to efficiently compile and execute  
     26bytecode for interpreted languages. Parrot will be the target for the final  
     27Perl 6 compiler, and is already usable as a backend for Pugs, as well as  
     28variety of other languages 
     29 
     30#-- 
     31 
     32%package -n %libname 
     33Summary:    Parrot Virtual Machine run time library 
     34License:    Artistic 2.0 
     35Group:      Development/Perl 
     36Provides:   lib%{name} = %{version}-%{release} 
     37Requires:       %{name} = %{version}-%{release} 
     38Requires:       %{_libdir}/pkgconfig 
     39 
     40%description -n %libname 
     41Run time library for %{name}. 
     42 
     43#-- 
     44 
     45%package -n %{name}-doc 
     46Summary:    Parrot Virtual Machine documentation 
     47License:    Artistic 2.0 
     48Group:      Development/Perl 
     49 
     50%description -n %{name}-doc 
     51Documentation for %{name}. 
     52 
     53#-- 
     54 
     55%package -n %libname_devel 
     56Summary:    Parrot Virtual Machine development headers and libraries 
     57License:    Artistic 2.0 
     58Group:      Development/Perl 
     59Provides:   %{name}-devel = %version-%release 
     60Requires:   %libname = %version 
     61 
     62%description -n %libname_devel 
     63Development files for %{name}. 
     64 
     65%prep 
     66%setup -q 
     67 
     68%{__perl} -pi -e 's,"lib/,"%{_lib}/, if (/CONST_STRING\(interp,/)' \ 
     69    src/library.c 
     70%{__perl} -pi -e "s,'/usr/lib','%{_libdir}',;s,runtime/lib/,runtime/%{_lib}/," \ 
     71    tools/dev/install_files.pl \ 
     72    tools/dev/mk_manifest_and_skip.pl 
     73 
     74%build 
     75%{__perl} Configure.pl \ 
     76    --prefix=%{_usr} \ 
     77    --libdir=%{_libdir} \ 
     78    --sysconfdir=%{_sysconfdir} \ 
     79    --infodir=%{_datadir}/info \ 
     80    --mandir=%{_mandir} \ 
     81    --cc="%{__cc}" \ 
     82    --cxx=%{__cxx} \ 
     83    --parrot_is_shared \ 
     84    --lex=/usr/bin/flex \ 
     85    --yacc=/usr/bin/yacc \ 
     86    --libs='-lcurses -lm' 
     87 
     88# the following Configure.pl flag makes the compile goes boom 
     89    #--optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ 
     90 
     91make 
     92export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     93make languages 
     94make parrot_utils 
     95make installable 
     96make html 
     97 
     98 
     99%install 
     100rm -rf $RPM_BUILD_ROOT 
     101 
     102export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     103make install DESTDIR=$RPM_BUILD_ROOT 
     104 
     105# Drop the docs so rpm can pick them up itself. 
     106rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot 
     107 
     108# Force permissions on doc directories. 
     109find docs examples -type d -exec chmod 755 {} \; 
     110find docs examples -type f -exec chmod 644 {} \; 
     111 
     112# Force permissions on shared libs so they get stripped. 
     113find $RPM_BUILD_ROOT%{_libdir} -type f \( -name '*.so' -o -name '*.so.*' \) \ 
     114    -exec chmod 755 {} \; 
     115 
     116# These files *probably* aren't needed. 
     117rm -rf $RPM_BUILD_ROOT%{_usr}/config \ 
     118    $RPM_BUILD_ROOT%{_includedir}/src \ 
     119    $RPM_BUILD_ROOT%{_usr}/src \ 
     120    $RPM_BUILD_ROOT%{_usr}/tools 
     121 
     122 
     123%check 
     124export LD_LIBRARY_PATH=$( pwd )/blib/lib 
     125#make test 
     126 
     127%clean 
     128rm -rf $RPM_BUILD_ROOT 
     129 
     130%if %mdkversion < 200900 
     131%post -n %libname -p /sbin/ldconfig 
     132%endif 
     133 
     134%if %mdkversion < 200900 
     135%postun -n %libname -p /sbin/ldconfig 
     136%endif 
     137 
     138%files 
     139%defattr(-,root,root,-) 
     140%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
     141%doc RESPONSIBLE_PARTIES TODO 
     142%exclude %{_bindir}/parrot_config 
     143%exclude %{_bindir}/parrot_debugger 
     144%exclude %{_bindir}/pbc_* 
     145%{_bindir}/* 
     146 
     147%files -n %{name}-doc 
     148%defattr(-,root,root,-) 
     149%doc docs examples 
     150 
     151%files -n %libname 
     152%defattr(-,root,root,-) 
     153%{_libdir}/parrot 
     154%{_libdir}/*.so.* 
     155 
     156%files -n %libname_devel 
     157%defattr(-,root,root,-) 
     158%{_bindir}/parrot_config 
     159%{_bindir}/parrot_debugger 
     160%{_bindir}/pbc_disassemble 
     161%{_bindir}/pbc_info 
     162%{_bindir}/pbc_merge 
     163%{_bindir}/pbc_to_exe 
     164%{_bindir}/pbc_dump 
     165%{_includedir}/* 
     166%{_libdir}/pkgconfig/* 
     167%_libdir/*.so 
     168%_libdir/*.a