Ticket #270: spec.diff
File spec.diff, 2.6 KB (added by cotto, 13 years ago) |
---|
-
parrot.spec
11 11 BuildRequires: ncurses-devel 12 12 BuildRequires: gmp-devel 13 13 BuildRequires: gdbm-devel 14 BuildRequires: /usr/bin/perldoc15 14 BuildRequires: libicu-devel 16 15 17 %package languages16 %package docs 18 17 Summary: Parrot Virtual Machine languages 19 18 License: Artistic 2.0 20 19 Group: Development/Libraries 20 BuildRequires: /usr/bin/perldoc 21 21 22 22 %package devel 23 23 Summary: Parrot Virtual Machine development headers and libraries … … 31 31 bytecode for dynamic languages. Parrot is the target for Rakudo Perl 6, 32 32 as well as variety of other languages. 33 33 34 %description languages 35 High-level languages which run on the Parrot virtual machine. 34 %description docs 35 Documentation in text-, POD- and HTML-format (docs/html-subdirectory) and also 36 examples about the Parrot Virtual Machine 36 37 37 38 %description devel 38 39 Parrot Virtual Machine development headers and libraries. … … 47 48 tools/dev/mk_manifests.pl 48 49 49 50 %build 51 if test "%{_vendor}" = "suse" 52 then 53 LIBS='-lncurses -lm' 54 else 55 LIBS='-lcurses -lm' 56 fi 57 %ifarch x86_64 58 RPM_OPT_FLAGS=`echo "$RPM_OPT_FLAGS" | %{__perl} -pi -e 's/-O2//'` 59 %endif 50 60 %{__perl} Configure.pl \ 51 61 --prefix=%{_usr} \ 52 62 --libdir=%{_libdir} \ … … 59 69 --parrot_is_shared \ 60 70 --lex=/usr/bin/flex \ 61 71 --yacc=/usr/bin/yacc \ 62 --libs= '-lcurses -lm'72 --libs="$LIBS" 63 73 64 74 export LD_LIBRARY_PATH=$( pwd )/blib/lib 65 75 make 66 make languages 67 make perl6 76 make compilers 68 77 make parrot_utils 69 78 make installable 70 79 make html … … 76 85 make install DESTDIR=$RPM_BUILD_ROOT 77 86 78 87 # Drop the docs so rpm can pick them up itself. 79 rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot 88 rm -rf $RPM_BUILD_ROOT%{_usr}/share/doc/parrot # necessary for SuSE 89 #rm -rf $RPM_BUILD_ROOT/%{_docdir}/parrot # for Solaris? 80 90 81 91 # Force permissions on doc directories. 82 92 find docs examples -type d -exec chmod 755 {} \; … … 108 118 109 119 %files 110 120 %defattr(-,root,root,-) 111 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README112 %doc RESPONSIBLE_PARTIES TODO113 %doc docs examples114 121 %exclude %{_bindir}/parrot_config 115 %exclude %{_bindir}/perl6116 122 %exclude %{_bindir}/parrot_debugger 117 123 %exclude %{_bindir}/pbc_* 118 124 %{_bindir}/* 119 125 %{_libdir}/parrot 120 126 %{_libdir}/libparrot.so.* 121 %{_usr}/compilers122 127 123 %files languages128 %files docs 124 129 %defattr(-,root,root,-) 125 % {_bindir}/perl6126 % {_usr}/languages127 % {_usr}/runtime130 %doc ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS README 131 %doc RESPONSIBLE_PARTIES TODO 132 %doc docs examples 128 133 129 134 %files devel 130 135 %defattr(-,root,root,-)