Ticket #270: spec.diff

File spec.diff, 2.6 KB (added by cotto, 13 years ago)
  • parrot.spec

     
    1111BuildRequires:  ncurses-devel 
    1212BuildRequires:  gmp-devel 
    1313BuildRequires:  gdbm-devel 
    14 BuildRequires:  /usr/bin/perldoc 
    1514BuildRequires:  libicu-devel 
    1615 
    17 %package languages 
     16%package docs 
    1817Summary:        Parrot Virtual Machine languages 
    1918License:        Artistic 2.0 
    2019Group:          Development/Libraries 
     20BuildRequires:  /usr/bin/perldoc 
    2121 
    2222%package devel 
    2323Summary:        Parrot Virtual Machine development headers and libraries 
     
    3131bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 
    3232as well as variety of other languages. 
    3333 
    34 %description languages 
    35 High-level languages which run on the Parrot virtual machine. 
     34%description docs 
     35Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 
     36examples about the Parrot Virtual Machine 
    3637 
    3738%description devel 
    3839Parrot Virtual Machine development headers and libraries. 
     
    4748    tools/dev/mk_manifests.pl 
    4849 
    4950%build 
     51if test "%{_vendor}" = "suse" 
     52then 
     53    LIBS='-lncurses -lm' 
     54else 
     55    LIBS='-lcurses -lm' 
     56fi 
     57%ifarch x86_64 
     58        RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 
     59%endif 
    5060%{__perl} Configure.pl \ 
    5161    --prefix=%{_usr} \ 
    5262    --libdir=%{_libdir} \ 
     
    5969    --parrot_is_shared \ 
    6070    --lex=/usr/bin/flex \ 
    6171    --yacc=/usr/bin/yacc \ 
    62     --libs='-lcurses -lm' 
     72    --libs="$LIBS" 
    6373 
    6474export LD_LIBRARY_PATH=$( pwd )/blib/lib 
    6575make 
    66 make languages 
    67 make perl6 
     76make compilers 
    6877make parrot_utils 
    6978make installable 
    7079make html 
     
    7685make install DESTDIR=$RPM_BUILD_ROOT 
    7786 
    7887# Drop the docs so rpm can pick them up itself. 
    79 rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot 
     88rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot    # necessary for SuSE 
     89#rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot         # for Solaris? 
    8090 
    8191# Force permissions on doc directories. 
    8292find docs examples -type d -exec chmod 755 {} \; 
     
    108118 
    109119%files 
    110120%defattr(-,root,root,-) 
    111 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
    112 %doc RESPONSIBLE_PARTIES TODO 
    113 %doc docs examples 
    114121%exclude %{_bindir}/parrot_config 
    115 %exclude %{_bindir}/perl6 
    116122%exclude %{_bindir}/parrot_debugger 
    117123%exclude %{_bindir}/pbc_* 
    118124%{_bindir}/* 
    119125%{_libdir}/parrot 
    120126%{_libdir}/libparrot.so.* 
    121 %{_usr}/compilers 
    122127 
    123 %files languages 
     128%files docs 
    124129%defattr(-,root,root,-) 
    125 %{_bindir}/perl6 
    126 %{_usr}/languages 
    127 %{_usr}/runtime 
     130%doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 
     131%doc RESPONSIBLE_PARTIES TODO 
     132%doc docs examples 
    128133 
    129134%files devel 
    130135%defattr(-,root,root,-)