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