autogen-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Version: 5.9.9
  2. Release: 2%{?_dist_release}
  3. Summary: AutoGen - The Automated Program Generator
  4. Name: autogen
  5. URL: http://www.gnu.org/software/autogen/
  6. License: GPL2
  7. Group: Development/Tools
  8. Source: ftp://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. %description
  14. AutoGen is a tool designed for generating program files that contain
  15. repetitive text with varied substitutions. Its goal is to simplify the
  16. maintenance of programs that contain large amounts of repetitious text.
  17. This is especially valuable if there are several blocks of such text
  18. that must be kept synchronized in parallel tables.
  19. Some parts are released under different licensing:
  20. libopts LGPL This is a tear-off, redistributable option processing library
  21. autofsm BSD This is a template for producing finite state machine programs
  22. The Copyright itself is privately held by Bruce Korb.
  23. %prep
  24. %setup -q
  25. chmod -R +rw *
  26. %build
  27. %configure
  28. make CFLAGS="$RPM_OPT_FLAGS"
  29. if [ `id -u` -eq 0 ] && egrep -q ^nobody /etc/passwd
  30. then
  31. echo "switching to user nobody to run 'make check'"
  32. chown -R nobody . ; su -c "umask 002; make check || touch FAIL" nobody
  33. else
  34. make check
  35. fi
  36. [ -f FAIL ] && exit 1
  37. %install
  38. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  39. mkdir -p ${RPM_BUILD_ROOT}
  40. make install DESTDIR=${RPM_BUILD_ROOT}
  41. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  42. # IF we have a valid file list OR the build root is _the_ root,
  43. # THEN skip the file list generation.
  44. #
  45. if test \( -f autogen-filelist \
  46. -a -s autogen-filelist \) \
  47. -o ${#RPM_BUILD_ROOT} -le 1
  48. then : ; else
  49. ( cd ${RPM_BUILD_ROOT}
  50. rm -f usr/share/info/dir
  51. find . -type f | grep -v 'usr/share/doc'
  52. ) | sed -e 's@^\./@/@' \
  53. -e'/usr\/share\/info/s,$,.gz,' \
  54. -e'/usr\/share\/man/s,$,.gz,' \
  55. | sort \
  56. > autogen-filelist
  57. fi
  58. %post
  59. /sbin/ldconfig
  60. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/autogen.info.gz
  61. %preun
  62. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autogen.info.gz
  63. %postun -p /sbin/ldconfig
  64. %clean
  65. rm -rf ${RPM_BUILD_ROOT}
  66. %files -f autogen-filelist
  67. %defattr(-,root,root)
  68. %doc AUTHORS TODO COPYING NEWS NOTES THANKS README VERSION
  69. %{_libdir}/libguileopts.so
  70. %{_libdir}/libguileopts.so.0
  71. %{_libdir}/libopts.so
  72. %{_libdir}/libopts.so.25
  73. %changelog
  74. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 5.9.9-2
  75. - rebuilt with rpm-4.8.1 for pkg-config
  76. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.9-1
  77. - new upstream release.
  78. - build with guile-1.8.7
  79. - add Vendor, Distribution and Packager.
  80. * Tue Jan 13 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 5.9.7-1
  81. - new upstream release
  82. - build with guile-1.8.6
  83. - correct spec tag (Vendor -> URL)
  84. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-3vl5
  85. - use macro for Release
  86. * Sat May 10 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-2vl5
  87. - rebuild with guile-1.6.7-5vl5
  88. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-1vl5
  89. - apply new virsioning policy.
  90. - remove *.la
  91. * Sat Jan 05 2008 Shu KONNO <owa@bg.wakwak.com> 5.9.4-0vl1
  92. - updated to last stable release
  93. * Thu Jan 03 2008 Shu KONNO <owa@bg.wakwak.com> 5.8.7-5vl2
  94. - added %%{_libdir}/lib*.so* in %%files
  95. * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.8.7-5vl1
  96. - build for VineSeed
  97. * Sat Oct 14 2006 Bruce Korb <bkorb@veritas.com> Regenerated
  98. * Fri Dec 31 2004 Bruce Korb <bkorb@gnu.org> Restored the file list
  99. * Wed Oct 27 2004 Ed Swierk <eswierk@users.sf.net> fixed up for Fedora
  100. * Tue Dec 16 2003 Richard Zidlicky <rz@linux-m68k.org> 5.5.7pre5-5
  101. - fix %%doc
  102. - add post/pre scriptlets
  103. - change default prefix
  104. * Sat Mar 15 2003 Bruce Korb <bkorb@gnu.org>
  105. - Rework as a template to automatically produce a properly configured RPM
  106. * Fri Aug 9 2002 Bruce Korb <bkorb@gnu.org>
  107. - Pull stuff from Thomas Steudten's version of this file