From 6761b5568d88e3b8e5e2caf99f4909e251278aaa Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 5 Dec 2018 12:53:05 +0300 Subject: [PATCH] Packaging added --- packaging/autogen.manifest | 6 +++++ packaging/autogen.spec | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 packaging/autogen.manifest create mode 100644 packaging/autogen.spec diff --git a/packaging/autogen.manifest b/packaging/autogen.manifest new file mode 100644 index 0000000..9b5140d --- /dev/null +++ b/packaging/autogen.manifest @@ -0,0 +1,6 @@ + + + + + + diff --git a/packaging/autogen.spec b/packaging/autogen.spec new file mode 100644 index 0000000..5cc07d1 --- /dev/null +++ b/packaging/autogen.spec @@ -0,0 +1,55 @@ +Name: autogen +BuildRequires: xz +BuildRequires: m4 >= 1.4.6 +BuildRequires: guile guile-devel libguile guile-modules gmp-devel +BuildRequires: libgc-devel libffi-devel gdb libguilereadline +Url: http://www.gnu.org/software/autogen +Requires: m4 >= 1.4.6 +Requires: perl >= 5.6 +Requires: guile +Version: 5.18.16 +Release: 0 +Summary: A GNU Tool for Automatically Configuring Source Code +License: GPL-3.0+ +Group: Development/Tools/Building +Source: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +%description +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. + +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. + +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. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +%reconfigure --disable-dependency-tracking LDFLAGS="-lgmp" +%{__make} %{?_smp_mflags} V=1 + +%check +trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT +make check + +%install +%{?make_install} %{!?make_install:%{__make} install DESTDIR=%{buildroot}} + +%find_docs + +%remove_docs + +%files +%defattr(-,root,root) +%manifest %{name}.manifest +%{_prefix}/bin/* +%{_prefix}/share/%{name} +%{_includedir}/autoopts/* +%{_libdir}/libopts* +%{_datadir}/aclocal/autoopts.m4 +%{_libdir}/pkgconfig/autoopts.pc +%{_libdir}/autogen/tpl-config.tlib + +%changelog -- 2.34.1