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