From a1a30d3ecfdfc7222e30454e2a0b0d5fa6450fb9 Mon Sep 17 00:00:00 2001 From: Paul F. Johnson Date: Sep 10 2006 20:21:05 +0000 Subject: auto-import autogen-5.8.5-6 on branch devel from autogen-5.8.5-6.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..604c2bb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +autogen-5.8.5.tar.bz2 diff --git a/autogen.spec b/autogen.spec new file mode 100644 index 0000000..b93ac2f --- /dev/null +++ b/autogen.spec @@ -0,0 +1,191 @@ +Summary: Sourcecode autogenerator +Name: autogen +Version: 5.8.5 +Release: 6%{?dist} +License: GPL +Group: Development/Tools +Source: http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 +URL: http://autogen.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: guile-devel libxml2-devel libopts-devel libtool +Requires: ldconfig autoconf +Requires(postun): %{_sbindir}/alternatives +Requires(preun): /sbin/install-info %{_sbindir}/alternatives +Requires(post): /sbin/install-info %{_sbindir}/alternatives + +%description +AutoGen is a tool designed to simplify the creation and maintenance of +programes that contain large amounts of repetitious text. It is especially +valuable in programs that have several blocks of text that must be kept +synchronised. + +%package devel +Summary: Development files for autogen +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} pkgconfig + +%description devel +Development files for autogen. + +%prep +%setup -q -n %{name}-%{version} +chmod 0644 COPYING + +%build +%configure --disable-autoopts +#find -name Makefile -exec sed -i -e 's/-Werror//' {} \; +make LIBTOOL=%{_bindir}/libtool +# no smp flags as it falls over during build + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install +chmod 0644 %{buildroot}/%{_libdir}/pkgconfig/autoopts.pc +find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' +find %{buildroot} -type f -name "*.a" -exec rm -f {} ';' +rm -f %{buildroot}/%{_infodir}/dir +mv %{buildroot}/%{_bindir}/columns %{buildroot}/%{_bindir}/columns.autogen +mv %{buildroot}/%{_bindir}/getdefs %{buildroot}/%{_bindir}/getdefs.autogen +mkdir -p %{buildroot}/%{_sysconfdir}/alternatives +rm -f %{buildroot}/%{_datadir}/autogen/libopts-27.4.2.tar.gz + +%check +make check + +%preun +if [ $1 = 0 ] ; then +/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||: +/sbin/install-info --delete %{_infodir}/%{name}.info-1 %{_infodir}/dir ||: +/sbin/install-info --delete %{_infodir}/%{name}.info-2 %{_infodir}/dir ||: +%{_sbindir}/alternatives --remove columns %{_bindir}/columns.autogen +%{_sbindir}/alternatives --remove getdefs %{_bindir}/getdefs.autogen +fi + +%postun +# bits ripped from the sendmail spec file - thanks to spot! + +columns=`readlink /etc/alternatives/columns` +if [ "$columns" == "%{_bindir}/columns.autogen" ]; then + %{_sbindir}/alternatives --set columns %{_bindir}/columns.autogen +fi + +getdefs=`readlink /etc/alternatives/getdefs` +if [ "$getdefs" == "%{_bindir}/getdefs.autogen" ]; then + %{_sbindir}/alternatives --set getdefs %{_bindir}/getdefs.autogen +fi + +/sbin/ldconfig + +%post +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||: +/sbin/install-info %{_infodir}/%{name}.info-1 %{_infodir}/dir ||: +/sbin/install-info %{_infodir}/%{name}.info-2 %{_infodir}/dir ||: +/sbin/ldconfig + +# set up the alteratives + +%{_sbindir}/alternatives --install %{_bindir}/columns columns %{_bindir}/columns.autogen +%{_sbindir}/alternatives --install %{_bindir}/getdefs getdefs %{_bindir}/getdefs.autogen + +%triggerpostun -- autogen < 5.8.5 +%{_sbindir}/alternatives --auto columns +%{_sbindir}/alternatives --auto getdefs + +%clean +rm -rf %{buildroot} + +%files +%doc AUTHORS ChangeLog COPYING NEWS NOTES README THANKS TODO VERSION +%defattr(-,root,root) +%{_bindir}/autogen +%{_bindir}/columns.autogen +%{_bindir}/getdefs.autogen +%{_mandir}/man1/autogen* +%{_mandir}/man1/columns* +%{_mandir}/man1/getdefs* +%{_mandir}/man1/xml2ag* +%{_datadir}/autogen/ +%{_infodir}/autogen.info* +%{_bindir}/xml2ag +%{_libdir}/libguileopts.so.0* +%{_libdir}/libopts.so.* + +%files devel +%defattr(-,root,root) +%{_datadir}/aclocal/autoopts.m4 +%{_datadir}/aclocal/liboptschk.m4 +%{_libdir}/libopts.so +%{_libdir}/pkgconfig/autoopts.pc +%{_mandir}/man3/* +%{_mandir}/man1/autoopts-config* +%{_includedir}/autoopts/ +%{_bindir}/autoopts-config +%{_libdir}/libguileopts.so + +%changelog +* Sun Sep 10 2006 Paul F. Johnson 5.8.5-6 +- added make check step +- fixed SOURCE0 +- globbed mandirs +- removed tarball for libopts +- changed source from tar.gz to tar.bz2 + +* Fri Sep 08 2006 Paul F. Johnson 5.8.5-5 +- change autogen.name to name.autogen + +* Sun Sep 03 2006 Paul F. Johnson 5.8.5-4 +- spec file fixes + +* Sat Aug 26 2006 Paul F. Johnson 5.8.5-3 +- Added pkgconfig to the R for the devel package +- changed prefix/bin to bindir (prep) +- fixed ownership problem in the devel package + +* Thu Aug 17 2006 Paul F. Johnson 5.8.5-2 +- Fixed permissions issue + +* Tue Aug 15 2006 Paul F. Johnson 5.8.5-1 +- bump to official release + +* Sun Jul 23 2006 Paul F. Johnson 5.8.5-pre97-1 +- bump to new version +- removed usr-sbin for _sbindir + +* Wed Jul 19 2006 Paul F. Johnson 5.8.5-pre95-1 +- Added disable-autoopts +- Added R libopts +- On the suggestion of spot, added etc-alternatives-columns symlink to autogen.columns +- removed some of the man files as they belong to libopts +- removed autoopts.pc file + +* Fri Jul 07 2006 Paul F. Johnson 5.8.4-3 +- Added defattr to devel +- Moved man3 from main to devel +- Moved two so files to devel +- chmod pkgconfig and COPYING file to 0644 +- fixed info problems +- Added version for provides: libopts +- removed INSTALL from doc +- fixed the aclocal problem +- exclude tarball in datadir/autogen +- removed rm -rf buildroot from prep + +* Thu Jul 06 2006 Paul F. Johnson 5.8.4-2 +- Added devel file +- Fixed missing files preventing mock to build +- Added infodir install +- Added libxml2-devel to BR +- Altered to mandir where required + +* Thu Jul 06 2006 Paul F. Johnson 5.8.4-1 +- Big changes to the spec file +- bump to new version + +* Thu Feb 23 2006 Paul F. Johnson 5.8.3-2 +- Added requires libopts +- Added pre and postun +- altered make install to be explicit rather than using make DEST install + +* Thu Feb 23 2006 Paul F. Johnson 5.8.3-1 +- Initial import, bug fixes to the spec and other such things +- found that the only way to build the source is as su diff --git a/sources b/sources index e69de29..4399812 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +23d32772a119dbff4f3ce51a6331e06d autogen-5.8.5.tar.bz2