3 BuildRequires: m4 >= 1.4.6
4 BuildRequires: guile guile-devel libguile guile-modules gmp-devel
5 BuildRequires: libgc-devel-static libffi-devel-static
6 BuildRequires: libunistring-devel-static
7 Url: http://www.gnu.org/software/autogen
13 Summary: A GNU Tool for Automatically Configuring Source Code
15 Group: Development/Tools/Building
16 Source: %{name}-%{version}.tar.gz
17 Source1001: %{name}.manifest
20 AutoGen is a tool designed to simplify the creation and maintenance of programs that contain large amounts of repetitious text. It is especially valuable in programs that have several blocks of text that must be kept synchronized.
22 AutoGen will accept either its own definition format, or XML files as definition input, in addition to CGI data (for producing dynamic HTML) and traditional AutoGen definitions.
24 A common example where this would be useful is in creating and maintaining the code required for processing program options. Processing options requires multiple constructs to be maintained in parallel in different places in your program. Options maintenance needs to be done countless times. So, AutoGen comes with an add-on package named AutoOpts that simplifies the maintenance and documentation of program options.
27 %setup -q -n %{name}-%{version}
31 export PKG_CONFIG="pkg-config --static"
32 export GUILE_LINK=$(guile-config link --static | sed -e 's|[[:space:]][^[:space:]]\+libunistring.so[^[:space:]]*[[:space:]]| -lunistring |')
34 %reconfigure --disable-dependency-tracking \
35 --enable-static --disable-shared \
36 GUILE_LIBS="-Wl,--whole-archive -Wl,--allow-multiple-definition ${GUILE_LINK} -Wl,--no-whole-archive" \
37 CFLAGS="-Wno-error=format-overflow"
38 %{__make} %{?_smp_mflags} V=1
42 trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
47 %{?make_install} %{!?make_install:%{__make} install DESTDIR=%{buildroot}}
55 %manifest %{name}.manifest
57 %{_prefix}/share/%{name}
58 %{_includedir}/autoopts/*
60 %{_datadir}/aclocal/autoopts.m4
61 %{_libdir}/pkgconfig/autoopts.pc
62 %{_libdir}/autogen/tpl-config.tlib