Updated spec file autogen.spec
This commit is contained in:
parent
a1a30d3ecf
commit
23416f9c69
24
autogen.spec
24
autogen.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Sourcecode autogenerator
|
Summary: Sourcecode autogenerator
|
||||||
Name: autogen
|
Name: autogen
|
||||||
Version: 5.8.5
|
Version: 5.8.5
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Source: http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
Source: http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
||||||
@ -48,15 +48,15 @@ mv %{buildroot}/%{_bindir}/columns %{buildroot}/%{_bindir}/columns.autogen
|
|||||||
mv %{buildroot}/%{_bindir}/getdefs %{buildroot}/%{_bindir}/getdefs.autogen
|
mv %{buildroot}/%{_bindir}/getdefs %{buildroot}/%{_bindir}/getdefs.autogen
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}/%{_sysconfdir}/alternatives
|
||||||
rm -f %{buildroot}/%{_datadir}/autogen/libopts-27.4.2.tar.gz
|
rm -f %{buildroot}/%{_datadir}/autogen/libopts-27.4.2.tar.gz
|
||||||
|
rm -f %{buildroot}/%{_libdir}/libopts*
|
||||||
|
rm -f %{buildroot}/%{_datadir}/aclocal/liboptschk.m4
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ] ; then
|
if [ $1 = 0 ] ; then
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
/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 columns %{_bindir}/columns.autogen
|
||||||
%{_sbindir}/alternatives --remove getdefs %{_bindir}/getdefs.autogen
|
%{_sbindir}/alternatives --remove getdefs %{_bindir}/getdefs.autogen
|
||||||
fi
|
fi
|
||||||
@ -78,14 +78,12 @@ fi
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
/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
|
/sbin/ldconfig
|
||||||
|
|
||||||
# set up the alteratives
|
# set up the alteratives
|
||||||
|
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/columns columns %{_bindir}/columns.autogen
|
%{_sbindir}/alternatives --install %{_bindir}/columns columns %{_bindir}/columns.autogen 90
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/getdefs getdefs %{_bindir}/getdefs.autogen
|
%{_sbindir}/alternatives --install %{_bindir}/getdefs getdefs %{_bindir}/getdefs.autogen 90
|
||||||
|
|
||||||
%triggerpostun -- autogen < 5.8.5
|
%triggerpostun -- autogen < 5.8.5
|
||||||
%{_sbindir}/alternatives --auto columns
|
%{_sbindir}/alternatives --auto columns
|
||||||
@ -108,21 +106,21 @@ rm -rf %{buildroot}
|
|||||||
%{_infodir}/autogen.info*
|
%{_infodir}/autogen.info*
|
||||||
%{_bindir}/xml2ag
|
%{_bindir}/xml2ag
|
||||||
%{_libdir}/libguileopts.so.0*
|
%{_libdir}/libguileopts.so.0*
|
||||||
%{_libdir}/libopts.so.*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_datadir}/aclocal/autoopts.m4
|
%{_datadir}/aclocal/autoopts.m4
|
||||||
%{_datadir}/aclocal/liboptschk.m4
|
|
||||||
%{_libdir}/libopts.so
|
|
||||||
%{_libdir}/pkgconfig/autoopts.pc
|
%{_libdir}/pkgconfig/autoopts.pc
|
||||||
%{_mandir}/man3/*
|
%exclude %{_mandir}/man3/*
|
||||||
%{_mandir}/man1/autoopts-config*
|
%{_mandir}/man1/autoopts-config*
|
||||||
%{_includedir}/autoopts/
|
%exclude %{_includedir}/autoopts/
|
||||||
%{_bindir}/autoopts-config
|
%{_bindir}/autoopts-config
|
||||||
%{_libdir}/libguileopts.so
|
%{_libdir}/libguileopts.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 10 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 5.8.5-7
|
||||||
|
- removed libopts and other autoopts conflicts
|
||||||
|
|
||||||
* Sun Sep 10 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 5.8.5-6
|
* Sun Sep 10 2006 Paul F. Johnson <paul@all-the-johnsons.co.uk> 5.8.5-6
|
||||||
- added make check step
|
- added make check step
|
||||||
- fixed SOURCE0
|
- fixed SOURCE0
|
||||||
|
Loading…
Reference in New Issue
Block a user