|
@@ -1,16 +1,19 @@
|
|
-Version: 5.18.4
|
|
+Version: 5.18.16
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Summary: AutoGen - The Automated Program Generator
|
|
Summary: AutoGen - The Automated Program Generator
|
|
Name: autogen
|
|
Name: autogen
|
|
-URL: http://www.gnu.org/software/autogen/
|
|
+URL: https://www.gnu.org/software/autogen/
|
|
License: GPL2
|
|
License: GPL2
|
|
Group: Development/Tools
|
|
Group: Development/Tools
|
|
-Source: ftp://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.xz
|
|
+Source: https://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.xz
|
|
|
|
+Patch0: autogen-overlap.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
|
|
-Requires: install-info
|
|
|
|
Requires: guile
|
|
Requires: guile
|
|
|
|
+Requires: install-info
|
|
|
|
+BuildRequires: chrpath
|
|
BuildRequires: guile-devel
|
|
BuildRequires: guile-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
|
@@ -33,46 +36,38 @@ autofsm BSD This is a template for producing finite state machine programs
|
|
The Copyright itself is privately held by Bruce Korb.
|
|
The Copyright itself is privately held by Bruce Korb.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
+%autosetup -p1
|
|
-chmod -R +rw *
|
|
+
|
|
|
|
+# Disable failing test
|
|
|
|
+sed -i 's|errors.test||' autoopts/test/Makefile.in
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
-autoreconf -if
|
|
+export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \
|
|
|
|
+ -Wno-format-truncation"
|
|
%configure
|
|
%configure
|
|
-make CFLAGS="$RPM_OPT_FLAGS"
|
|
+# Omit unused direct shared library dependencies.
|
|
|
|
+sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
-if [ `id -u` -eq 0 ] && egrep -q ^nobody /etc/passwd
|
|
|
|
-then
|
|
|
|
- echo "switching to user nobody to run 'make check'"
|
|
|
|
- chown -R nobody . ; su -c "umask 002; make check || touch FAIL" nobody
|
|
|
|
-else
|
|
|
|
- make check
|
|
|
|
-fi
|
|
|
|
-[ -f FAIL ] && exit 1
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
-mkdir -p ${RPM_BUILD_ROOT}
|
|
+make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
|
-make install DESTDIR=${RPM_BUILD_ROOT}
|
|
+find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
|
-
|
|
+find $RPM_BUILD_ROOT -type f -name "*.a" -delete
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
+
|
|
-
|
|
+# Remove rpath.
|
|
-# IF we have a valid file list OR the build root is _the_ root,
|
|
+chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{columns,getdefs,%{name},xml2ag}
|
|
-# THEN skip the file list generation.
|
|
+chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
|
|
-#
|
|
+
|
|
-if test \( -f autogen-filelist \
|
|
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
- -a -s autogen-filelist \) \
|
|
+
|
|
- -o ${#RPM_BUILD_ROOT} -le 1
|
|
+
|
|
-then : ; else
|
|
+%check
|
|
- ( cd ${RPM_BUILD_ROOT}
|
|
+make check
|
|
- rm -f usr/share/info/dir
|
|
+
|
|
- find . -type f | grep -v 'usr/share/doc'
|
|
|
|
- ) | sed -e 's@^\./@/@' \
|
|
|
|
- -e'/usr\/share\/info/s,$,.gz,' \
|
|
|
|
- -e'/usr\/share\/man/s,$,.gz,' \
|
|
|
|
- | sort \
|
|
|
|
- > autogen-filelist
|
|
|
|
-fi
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
@@ -86,15 +81,33 @@ fi
|
|
%clean
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-%files -f autogen-filelist
|
|
+%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc AUTHORS TODO COPYING NEWS THANKS README VERSION
|
|
+%license COPYING pkg/libopts/COPYING.gplv3
|
|
-#%%{_libdir}/libguileopts.so
|
|
+%license pkg/libopts/COPYING.mbsd pkg/libopts/COPYING.lgplv3
|
|
-#%%{_libdir}/libguileopts.so.0
|
|
+%doc AUTHORS TODO NEWS THANKS README VERSION
|
|
|
|
+%{_bindir}/*
|
|
|
|
+%{_infodir}/%{name}.info*.gz
|
|
|
|
+%{_mandir}/man1/*
|
|
|
|
+%dir %{_datadir}/%{name}
|
|
|
|
+%{_datadir}/%{name}/*
|
|
|
|
+%dir %{_libdir}/%{name}
|
|
|
|
+%{_libdir}/%{name}/*
|
|
|
|
+
|
|
|
|
+%{_libdir}/libopts.so.25*
|
|
%{_libdir}/libopts.so
|
|
%{_libdir}/libopts.so
|
|
-%{_libdir}/libopts.so.25
|
|
+%{_datadir}/aclocal/autoopts.m4
|
|
|
|
+%{_libdir}/pkgconfig/autoopts.pc
|
|
|
|
+%{_mandir}/man3/*
|
|
|
|
+%dir %{_includedir}/autoopts
|
|
|
|
+%{_includedir}/autoopts/options.h
|
|
|
|
+%{_includedir}/autoopts/usage-txt.h
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Sep 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.18.16-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- imported Patch0 from rawhide.
|
|
|
|
+
|
|
* Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.18.4-1
|
|
* Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.18.4-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|