Packaging added
authorSlava Barinov <v.barinov@samsung.com>
Wed, 5 Dec 2018 09:53:05 +0000 (12:53 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 5 Dec 2018 09:53:05 +0000 (12:53 +0300)
packaging/autogen.manifest [new file with mode: 0644]
packaging/autogen.spec [new file with mode: 0644]

diff --git a/packaging/autogen.manifest b/packaging/autogen.manifest
new file mode 100644 (file)
index 0000000..9b5140d
--- /dev/null
@@ -0,0 +1,6 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
+
diff --git a/packaging/autogen.spec b/packaging/autogen.spec
new file mode 100644 (file)
index 0000000..5cc07d1
--- /dev/null
@@ -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