autogen-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. Version: 5.18.16
  2. Release: 1%{?_dist_release}
  3. Summary: AutoGen - The Automated Program Generator
  4. Name: autogen
  5. URL: https://www.gnu.org/software/autogen/
  6. License: GPL2
  7. Group: Development/Tools
  8. Source: https://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.xz
  9. Patch0: autogen-overlap.patch
  10. BuildRoot: %{_tmppath}/%{name}-root
  11. Requires: guile
  12. Requires: install-info
  13. BuildRequires: chrpath
  14. BuildRequires: guile-devel
  15. BuildRequires: libxml2-devel
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: yasumichi
  19. %description
  20. AutoGen is a tool designed for generating program files that contain
  21. repetitive text with varied substitutions. Its goal is to simplify the
  22. maintenance of programs that contain large amounts of repetitious text.
  23. This is especially valuable if there are several blocks of such text
  24. that must be kept synchronized in parallel tables.
  25. Some parts are released under different licensing:
  26. libopts LGPL This is a tear-off, redistributable option processing library
  27. autofsm BSD This is a template for producing finite state machine programs
  28. The Copyright itself is privately held by Bruce Korb.
  29. %prep
  30. %autosetup -p1
  31. # Disable failing test
  32. sed -i 's|errors.test||' autoopts/test/Makefile.in
  33. %build
  34. export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \
  35. -Wno-format-truncation"
  36. %configure
  37. # Omit unused direct shared library dependencies.
  38. sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
  39. make %{?_smp_mflags}
  40. %install
  41. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  42. make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
  43. find $RPM_BUILD_ROOT -type f -name "*.la" -delete
  44. find $RPM_BUILD_ROOT -type f -name "*.a" -delete
  45. # Remove rpath.
  46. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{columns,getdefs,%{name},xml2ag}
  47. chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
  48. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  49. %check
  50. make check
  51. %post
  52. /sbin/ldconfig
  53. /sbin/install-info --info-dir=%{_infodir} %{_infodir}/autogen.info.gz
  54. %preun
  55. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autogen.info.gz
  56. %postun -p /sbin/ldconfig
  57. %clean
  58. rm -rf ${RPM_BUILD_ROOT}
  59. %files
  60. %defattr(-,root,root)
  61. %license COPYING pkg/libopts/COPYING.gplv3
  62. %license pkg/libopts/COPYING.mbsd pkg/libopts/COPYING.lgplv3
  63. %doc AUTHORS TODO NEWS THANKS README VERSION
  64. %{_bindir}/*
  65. %{_infodir}/%{name}.info*.gz
  66. %{_mandir}/man1/*
  67. %dir %{_datadir}/%{name}
  68. %{_datadir}/%{name}/*
  69. %dir %{_libdir}/%{name}
  70. %{_libdir}/%{name}/*
  71. %{_libdir}/libopts.so.25*
  72. %{_libdir}/libopts.so
  73. %{_datadir}/aclocal/autoopts.m4
  74. %{_libdir}/pkgconfig/autoopts.pc
  75. %{_mandir}/man3/*
  76. %dir %{_includedir}/autoopts
  77. %{_includedir}/autoopts/options.h
  78. %{_includedir}/autoopts/usage-txt.h
  79. %changelog
  80. * Wed Sep 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.18.16-1
  81. - new upstream release.
  82. - imported Patch0 from rawhide.
  83. * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.18.4-1
  84. - new upstream release
  85. * Mon Jan 27 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.18.1-1
  86. - new upstream release
  87. - change archive format
  88. - add dependencies
  89. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 5.9.9-2
  90. - rebuilt with rpm-4.8.1 for pkg-config
  91. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.9-1
  92. - new upstream release.
  93. - build with guile-1.8.7
  94. - add Vendor, Distribution and Packager.
  95. * Tue Jan 13 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 5.9.7-1
  96. - new upstream release
  97. - build with guile-1.8.6
  98. - correct spec tag (Vendor -> URL)
  99. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-3vl5
  100. - use macro for Release
  101. * Sat May 10 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-2vl5
  102. - rebuild with guile-1.6.7-5vl5
  103. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.9.4-1vl5
  104. - apply new virsioning policy.
  105. - remove *.la
  106. * Sat Jan 05 2008 Shu KONNO <owa@bg.wakwak.com> 5.9.4-0vl1
  107. - updated to last stable release
  108. * Thu Jan 03 2008 Shu KONNO <owa@bg.wakwak.com> 5.8.7-5vl2
  109. - added %%{_libdir}/lib*.so* in %%files
  110. * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 5.8.7-5vl1
  111. - build for VineSeed
  112. * Sat Oct 14 2006 Bruce Korb <bkorb@veritas.com> Regenerated
  113. * Fri Dec 31 2004 Bruce Korb <bkorb@gnu.org> Restored the file list
  114. * Wed Oct 27 2004 Ed Swierk <eswierk@users.sf.net> fixed up for Fedora
  115. * Tue Dec 16 2003 Richard Zidlicky <rz@linux-m68k.org> 5.5.7pre5-5
  116. - fix %%doc
  117. - add post/pre scriptlets
  118. - change default prefix
  119. * Sat Mar 15 2003 Bruce Korb <bkorb@gnu.org>
  120. - Rework as a template to automatically produce a properly configured RPM
  121. * Fri Aug 9 2002 Bruce Korb <bkorb@gnu.org>
  122. - Pull stuff from Thomas Steudten's version of this file