Summary: Automated program generator
-Summary(pl): Zautomatyzowany generator programów
+Summary(pl.UTF-8): Zautomatyzowany generator programów
Name: autogen
-Version: 5.8.6
-Release: 2
-License: GPL v.2/BSD/LGPL
-Group: Development
-Source0: http://dl.sourceforge.net/autogen/%{name}-%{version}.tar.bz2
-# Source0-md5: 3d6b454aa41c38e2db7e58d0f4164aea
+Version: 5.18.14
+Release: 1
+License: GPL v3+ (AutoGen), LGPL v2+ (genshell), LGPL v3+ or Modified BSD (AutoOpts library)
+Group: Development/Tools
+Source0: http://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: c4d9a1641cb1bad4a3cc4108de6d867a
+Patch0: %{name}-notinstalled.patch
+Patch1: %{name}-info.patch
URL: http://autogen.sourceforge.net/
-BuildRequires: guile-devel
+BuildRequires: guile-devel >= 5:2.0
BuildRequires: libltdl-devel
BuildRequires: libxml2-devel
+BuildRequires: tar >= 1:1.22
BuildRequires: texinfo
+BuildRequires: xz
+BuildConflicts: guile1-devel
+Requires: %{name}-libs = %{version}-%{release}
+Suggests: %{name}-devel = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
text. This is especially valuable if there are several blocks of such
text that must be kept synchronized in parallel tables.
-%description -l pl
-AutoGen to narzêdzie zaprojektowane do generowania plików programów
-zawieraj±cych powtarzaj±cy siê tekst z ró¿nymi podstawieniami. Celem
-projektu jest uproszczenie zarz±dzania programów zawieraj±cych du¿e
-ilo¶ci powtórzonego tekstu. Jest szczególnie warto¶ciowy je¶li jest
-kilka bloków takiego tekstu, które musz± byæ synchronizowane
-równolegle.
+%description -l pl.UTF-8
+AutoGen to narzędzie zaprojektowane do generowania plików programów
+zawierających powtarzający się tekst z różnymi podstawieniami. Celem
+projektu jest uproszczenie zarządzania programów zawierających duże
+ilości powtórzonego tekstu. Jest szczególnie wartościowy jeśli jest
+kilka bloków takiego tekstu, które muszą być synchronizowane
+równolegle.
+
+%package libs
+Summary: Shared AutoOpts library
+Summary(pl.UTF-8): Biblioteka współdzielona AutoOpts
+License: LGPL v3+ or Modified BSD
+Group: Libraries
+Conflicts: autogen < 5.14
+
+%description libs
+Shared AutoOpts library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona AutoOpts.
%package devel
-Summary: Header files for autogen
-Summary(pl): Pliki nag³ówkowe dla autogen
+Summary: Header files for AutoOpts library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AutoOpts
+License: LGPL v3+ or Modified BSD
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
-Header files for autogen.
+Header files for AutoOpts library.
-%description devel -l pl
-Pliki nag³ówkowe dla autogen.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki AutoOpts.
%package static
-Summary: Static autogen library
-Summary(pl): Statyczna biblioteka autogen
+Summary: Static AutoOpts library
+Summary(pl.UTF-8): Statyczna biblioteka AutoOpts
+License: LGPL v3+ or Modified BSD
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static autogen library.
+Static AutoOpts library.
-%description static -l pl
-Statyczna biblioteka autogen.
+%description static -l pl.UTF-8
+Statyczna biblioteka AutoOpts.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+
+# force regeneration
+%{__rm} doc/autogen.info*
%build
%configure
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
%postun
-/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
-%{_datadir}/%{name}
+%attr(755,root,root) %{_bindir}/autogen
+%attr(755,root,root) %{_bindir}/columns
+%attr(755,root,root) %{_bindir}/getdefs
+%attr(755,root,root) %{_bindir}/xml2ag
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/tpl-config.tlib
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*.def
+%{_datadir}/%{name}/*.lic
+%{_datadir}/%{name}/*.m4
+%{_datadir}/%{name}/*.pm
+%{_datadir}/%{name}/*.tlib
+%{_datadir}/%{name}/*.tpl
+%{_datadir}/%{name}/libopts-*.tar.gz
+%attr(755,root,root) %{_datadir}/%{name}/man2mdoc
+%attr(755,root,root) %{_datadir}/%{name}/man2texi
+%attr(755,root,root) %{_datadir}/%{name}/mdoc2man
+%attr(755,root,root) %{_datadir}/%{name}/mdoc2texi
+%attr(755,root,root) %{_datadir}/%{name}/texi2man
+%attr(755,root,root) %{_datadir}/%{name}/texi2mdoc
%{_infodir}/autogen.info*
-%{_mandir}/man1/*.1*
-%{_mandir}/man3/*.3*
+%{_mandir}/man1/autogen.1*
+%{_mandir}/man1/columns.1*
+%{_mandir}/man1/getdefs.1*
+%{_mandir}/man1/xml2ag.1*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopts.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopts.so.25
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_bindir}/autoopts-config
+%attr(755,root,root) %{_libdir}/libopts.so
+%{_libdir}/libopts.la
%{_includedir}/autoopts
-%{_aclocaldir}/*.m4
-%{_pkgconfigdir}/*.pc
+%{_aclocaldir}/autoopts.m4
+%{_pkgconfigdir}/autoopts.pc
+%{_mandir}/man1/autoopts-config.1*
+%{_mandir}/man3/ao_string_tokenize.3*
+%{_mandir}/man3/configFileLoad.3*
+%{_mandir}/man3/option*.3*
+%{_mandir}/man3/str*.3*
%files static
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libopts.a