[521] | 1 | %define oname xmlparser |
---|
| 2 | %define libdir %(ruby -r rbconfig -e 'print Config::CONFIG["libdir"]') |
---|
| 3 | %define archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]') |
---|
| 4 | |
---|
| 5 | Name: ruby-xmlparser |
---|
| 6 | Version: 0.6.1 |
---|
| 7 | Release: 0vl2 |
---|
| 8 | Copyright: distributable |
---|
| 9 | Group: Development/Languages |
---|
| 10 | Source: http://www.yoshidam.net/%{oname}-%{version}.tar.gz |
---|
| 11 | URL: http://www.yoshidam.net/Ruby.html#xmlparser |
---|
| 12 | Prefix: /usr |
---|
| 13 | BuildRoot: %{_tmppath}/%{oname}-%{version}-root |
---|
| 14 | BuildPreReq: ruby, ruby-devel >= 1.6.4-0vl3, diffutils |
---|
| 15 | BuildRequires: expat-devel |
---|
| 16 | Summary: The interface of expat for the scripting language Ruby. |
---|
| 17 | Summary(ja): RubyÍѤÎexpat¥¤¥ó¥¿¥Õ¥§¡¼¥¹ |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | This is the module to access to James Clark's XML Parser Toolkit "expat" |
---|
| 21 | <URL:http://www.jclark.com/xml/expat.html> from Ruby. |
---|
| 22 | |
---|
| 23 | %description -l ja |
---|
| 24 | Ruby¤«¤éJames Clark¤ÎXML¥Ñ¡¼¥¶¥Ä¡¼¥ë¥¥Ã¥È¤Ç¤¢¤ëexpat¤òÍøÍѤ¹¤ë¤¿¤á¤Î |
---|
| 25 | ¥¯¥é¥¹¥é¥¤¥Ö¥é¥ê¤Ç¤¹¡¥ |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | |
---|
| 29 | %setup -q -c |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | cd %{oname} |
---|
| 33 | ruby extconf.rb |
---|
| 34 | make |
---|
| 35 | cd .. |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 39 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir} |
---|
| 40 | |
---|
| 41 | # installing binaries ... |
---|
| 42 | cd %{oname} |
---|
| 43 | make install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 44 | cd .. |
---|
| 45 | |
---|
| 46 | (find \ |
---|
| 47 | $RPM_BUILD_ROOT%{_libdir} \ |
---|
| 48 | -type f -o -type l) | |
---|
| 49 | sort | sed -e "s,^$RPM_BUILD_ROOT,," > ruby-xmlparser.files |
---|
| 50 | |
---|
| 51 | # fixing `#!' paths |
---|
| 52 | mkdir -p tmp/samples |
---|
| 53 | (cd %{oname}/samples && tar cf - .) | (cd tmp/samples && tar xf -) |
---|
| 54 | for f in `find tmp/samples -type f` |
---|
| 55 | do |
---|
| 56 | cp -p $f $f.n |
---|
| 57 | sed -e 's,^#![ ]*\([^ ]*\)/\(ruby\|with\|perl\|env\),#!/usr/bin/\2,' < $f > $f.n |
---|
| 58 | if cmp -s $f $f.n |
---|
| 59 | then |
---|
| 60 | rm -f $f.n |
---|
| 61 | else |
---|
| 62 | mv -f $f.n $f |
---|
| 63 | fi |
---|
| 64 | done |
---|
| 65 | |
---|
| 66 | %clean |
---|
| 67 | rm -f ruby-xmlparser.files |
---|
| 68 | rm -rf tmp |
---|
| 69 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 70 | |
---|
| 71 | %pre |
---|
| 72 | |
---|
| 73 | %post |
---|
| 74 | |
---|
| 75 | %files -f ruby-xmlparser.files |
---|
| 76 | %defattr(-, root, root) |
---|
| 77 | %doc %{oname}/README |
---|
| 78 | %doc %{oname}/README.ja |
---|
| 79 | %doc %{oname}/Encodings |
---|
| 80 | %doc tmp/samples |
---|
| 81 | |
---|
| 82 | %changelog |
---|
| 83 | * Sun Oct 14 2001 akira yamada <akira@vinelinux.org> 0.6.1-0vl2 |
---|
| 84 | - fixed shbang line of sample scripts. |
---|
| 85 | |
---|
| 86 | * Sun Oct 14 2001 akira yamada <akira@vinelinux.org> 0.6.1-0vl1 |
---|
| 87 | - Initial packaging. |
---|