File dba-m4-1417.spec of Package dba-m4-1417

%define pkg_name        m4
%define real_vers       1.4.17
%define pkg_vers        1417
%define prefix          /DBA/%{pkg_name}/%{real_vers}
%define maketest        0

Name:           dba-%{pkg_name}-%{pkg_vers}
Summary:        A GNU Tool for Automatically Configuring Source Code
Packager: 	Holger Manthey <holger.manthey@bertelsmann.de>
Url:            http://www.gnu.org/software/m4
Release:        1
Version: 	%{real_vers}
License:        GPL-3.0+
Group:          Development/Tools/Building
Source:         http://ftp.gnu.org/pub/gnu/m4/%{pkg_name}-%{real_vers}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%if 0%{?suse_version} >= 1100
BuildRequires:  -post-build-checks
%endif

%if 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 || 0%{?fedora_version}
BuildRequires:  perl(ExtUtils::MakeMaker) perl(ExtUtils::Embed)
%endif


%description
GNU m4 is an implementation of the traditional Unix macro processor.


%prep
%setup -q -n %{pkg_name}-%{real_vers}


%build
./configure \
  --prefix=%{prefix} \
  --exec-prefix=%{prefix} \
  --without-included-regex \
  gl_cv_func_isnanl_works=yes \
  gl_cv_func_printf_directive_n=yes

%{__make}


%check
%if %maketest
%{__make} check
%endif


%install
# prevent rpath problem on suse
export NO_BRP_CHECK_RPATH=true

%{__mkdir_p} %{buildroot}%{prefix}
make %{?_smp_mflags} DESTDIR=%{buildroot} install

find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" -o -name "*.la" |xargs -i rm -vf {}


%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%dir %{prefix}
%{prefix}/*


%changelog
* Tue Dec 17 2013 Holger Manthey <holger.manthey@bertelsmann.de>
- initial package