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