autogen-vl.spec 4.3 KB

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