OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts/] [autotools/] [autoconf-rtems.spec] - Diff between revs 1026 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1026 Rev 1765
#
#
# spec file for autoconf
# spec file for autoconf
#
#
%define rpmvers 2.52
%define rpmvers 2.52
%define srcvers 2.52
%define srcvers 2.52
%define _defaultbuildroot       /var/tmp/%{name}-%{srcvers}-root
%define _defaultbuildroot       /var/tmp/%{name}-%{srcvers}-root
%define _prefix                 /opt/rtems
%define _prefix                 /opt/rtems
%define _name                   autoconf
%define _name                   autoconf
%if "%{_prefix}" != "/usr"
%if "%{_prefix}" != "/usr"
%define name                    %{_name}-rtems
%define name                    %{_name}-rtems
%define _infodir                %{_prefix}/info
%define _infodir                %{_prefix}/info
%define _mandir                 %{_prefix}/man
%define _mandir                 %{_prefix}/man
%else
%else
%define name                    %{_name}
%define name                    %{_name}
%endif
%endif
Vendor:       http://www.rtems.com
Vendor:       http://www.rtems.com
Name:         %{name}
Name:         %{name}
Packager:     Ralf Corsepius 
Packager:     Ralf Corsepius 
Copyright:    GPL
Copyright:    GPL
URL:          http://www.gnu.org/software/autoconf
URL:          http://www.gnu.org/software/autoconf
Group:        rtems
Group:        rtems
Provides:     autoconf
Provides:     autoconf
Autoreqprov:  on
Autoreqprov:  on
Version:      %{rpmvers}
Version:      %{rpmvers}
Release:      0
Release:      0
Summary:      Tool for automatically generating GNU style Makefile.in's
Summary:      Tool for automatically generating GNU style Makefile.in's
BuildArch:    noarch
BuildArch:    noarch
BuildRoot:    %{_defaultbuildroot}
BuildRoot:    %{_defaultbuildroot}
BuildPreReq:  autoconf perl m4 gawk
BuildPreReq:  autoconf perl m4 gawk
PreReq:       /sbin/install-info
PreReq:       /sbin/install-info
Source: autoconf-%{srcvers}.tar.bz2
Source: autoconf-%{srcvers}.tar.bz2
%description
%description
GNU's Autoconf is a tool for configuring source code and Makefiles.
GNU's Autoconf is a tool for configuring source code and Makefiles.
Using Autoconf, programmers can create portable and configurable
Using Autoconf, programmers can create portable and configurable
packages, since the person building the package is allowed to
packages, since the person building the package is allowed to
specify various configuration options.
specify various configuration options.
You should install Autoconf if you are developing software and you'd
You should install Autoconf if you are developing software and you'd
like to use it to create shell scripts which will configure your
like to use it to create shell scripts which will configure your
source code packages.
source code packages.
Note that the Autoconf package is not required for the end user who
Note that the Autoconf package is not required for the end user who
may be configuring software with an Autoconf-generated script;
may be configuring software with an Autoconf-generated script;
Autoconf is only required for the generation of the scripts, not
Autoconf is only required for the generation of the scripts, not
their use.
their use.
%prep
%prep
%setup -q -n %{_name}-%{srcvers}
%setup -q -n %{_name}-%{srcvers}
%build
%build
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
make
make
%install
%install
%makeinstall
%makeinstall
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null
# RTEMS's standards.info comes from binutils
# RTEMS's standards.info comes from binutils
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
# gzip -9qf $RPM_BUILD_ROOT%{_infodir}/standards.info* 2>/dev/null
# gzip -9qf $RPM_BUILD_ROOT%{_infodir}/standards.info* 2>/dev/null
gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
%clean
%clean
[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
   rm -rf "$RPM_BUILD_ROOT"
   rm -rf "$RPM_BUILD_ROOT"
%post
%post
install-info  --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
install-info  --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
#install-info  --info-dir=%{_infodir} %{_infodir}/standards.info.gz
#install-info  --info-dir=%{_infodir} %{_infodir}/standards.info.gz
%preun
%preun
if [ $1 = 0 ]; then
if [ $1 = 0 ]; then
  install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
  install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
#  install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz
#  install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz
fi
fi
%files
%files
%defattr(-,root,root)
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%{_bindir}/*
%{_bindir}/*
%doc %{_infodir}/autoconf.info*.gz
%doc %{_infodir}/autoconf.info*.gz
#%doc %{_infodir}/standards.info*.gz
#%doc %{_infodir}/standards.info*.gz
%doc %{_mandir}/man?/*.gz
%doc %{_mandir}/man?/*.gz
%{_datadir}/autoconf
%{_datadir}/autoconf
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.