summaryrefslogblamecommitdiffstats
path: root/scripts/autotools/automake-rtems.spec.in
blob: 5b64bf4cb2ad33d53a50c2e1a27bbab4877484df (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                         

                     
                   
 

                                                                   


                                        
                                                         
                                                                 



                                               
                                                



                                  
                                                      
                                                

                 
                        

                        
               


                                                                       
                                           


                                
                                                                  
                                            









                                                                   
           

      
                         






                                                                         



                                                             



















                                                                           
                     
                                                 

                    

                                  


                              
#
# spec file for automake 
#

%define rpmvers 1.8.2
%define srcvers	1.8.2
%define amvers  1.8

%define _defaultbuildroot	%{_tmppath}/%{name}-%{srcvers}-root
%define _prefix			@prefix@
%define _name			automake

%if "%{_prefix}" != "/usr"
%define name			@rpmprefix@%{_name}-rtems
%define requirements		@rpmprefix@autoconf-rtems >= 2.59
%define _infodir		%{_prefix}/info
%define _mandir			%{_prefix}/man
%else
%define name			%{_name}
%define requirements		autoconf >= 2.59
%endif

Vendor:       http://www.rtems.com
Name:         %{name}
Packager:     Ralf Corsepius <corsepiu@faw.uni-ulm.de>
URL: 	      http://sources.redhat.com/automake

Copyright:    GPL
Group:        @rpmgroup@
Autoreqprov:  on
Version:      %{rpmvers}
Release:      2
Summary:      Tool for automatically generating GNU style Makefile.in's
BuildArch:    noarch
BuildRoot:    %{_defaultbuildroot}
BuildPreReq:  %{requirements} perl help2man
Requires:     %{requirements}
PreReq:	      /sbin/install-info

Source: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
Patch0: automake-1.8.1-rtems-20040112-1.diff

%description
Automake is a tool for automatically generating "Makefile.in"s from
files called "Makefile.am". "Makefile.am" is basically a series of
"make" macro definitions (with rules being thrown in occasionally).
The generated "Makefile.in"s are compatible to the GNU Makefile
standards.

%prep
%setup -q -n %{_name}-%{srcvers}
%patch0 -p0

%build
PATH=%{_prefix}/bin:$PATH
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir}
make

%install
%makeinstall

install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
  $RPM_BUILD_ROOT%{_bindir}/automake ; 
do
  perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
  help2man $i > `basename $i`.1
  install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1
done

gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null
gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null

%clean
[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \
   rm -rf "$RPM_BUILD_ROOT"

%post 
install-info  --info-dir=%{_infodir} %{_infodir}/automake.info.gz

%preun
if [ $1 = 0 ]; then
  install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
fi

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%{_bindir}/aclocal*
%{_bindir}/automake*
%doc %{_infodir}/automake.info*.gz
%doc %{_mandir}/man?/*
%{_datadir}/aclocal-%{amvers}
%{_datadir}/automake-%{amvers}