avram.spec.in 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %define name avram
  2. %define version @VERSION@
  3. %define release 1
  4. %define builddir $RPM_BUILD_DIR/%{name}-%{version}
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Vendor: Dennis Furey
  9. Packager: Dennis Furey [email protected]
  10. URL: http://www.lsbu.ac.uk/~fureyd/avram
  11. Source: %{name}-%{version}.tar.gz
  12. #Patch:
  13. Group: Application/Generic
  14. Copyright: GPL
  15. #Icon:
  16. #Requires:
  17. BuildRoot: /var/tmp/%{name}-%{version}
  18. Summary: applicative virtual machine code interpreter
  19. %description
  20. An acronym for "Applicative ViRtuAl Machine", avram is a virtual
  21. machine code interpreter. It reads an input file containing a
  22. user-supplied application expressed in virtual machine code, and
  23. executes it on the host machine. Notable features are strong support
  24. for functional programming operations (e.g., list processing),
  25. interoperability of virtual code applications with other console
  26. applications or shells through libexpect, the ability to package
  27. virtual code applications conveniently as self contained shell
  28. scripts, and a choice of operating modes providing for either a simple
  29. high-level interface to files, environment variables and command line
  30. arguments, or various styles of stateless or persistent stream
  31. processors (a.k.a. filters). The intended audience is writers of
  32. compilers for programming, scripting, or special purpose languages,
  33. whose projects stand to gain portability and ease of implementation.
  34. The package includes a toy compiler for a simple lisp-like language
  35. as a proof of concept.
  36. @configure_input@
  37. %prep
  38. %setup -n %{name}-%{version}
  39. #%patch -p1
  40. %build
  41. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
  42. make
  43. %install
  44. if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
  45. mkdir -p $RPM_BUILD_ROOT
  46. make install DESTDIR=$RPM_BUILD_ROOT
  47. # Build the file-list automagically :)
  48. cd $RPM_BUILD_ROOT
  49. find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
  50. find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
  51. find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. rm ../file.list.%{name}
  55. %files -f ../file.list.%{name}
  56. %doc README