LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dba-m4-1417.spec of Package dba-m4-1417 (Project home:csbuild:DBA)

%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

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

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

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

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


%if %maketest
%{__make} check

# 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 {}

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

%dir %{prefix}

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