SHA256
1
0
forked from pool/m4
m4/m4.spec
OBS User autobuild f7f1269cce Accepting request 43451 from Base:System
Copy from Base:System/m4 based on submit request 43451 from user coolo

OBS-URL: https://build.opensuse.org/request/show/43451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/m4?expand=0&rev=15
2010-07-20 18:50:55 +00:00

79 lines
2.0 KiB
RPMSpec

#
# spec file for package m4 (Version 1.4.13)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: m4
License: GPLv3+
Group: Development/Languages/Other
Provides: base:/usr/bin/m4
AutoReqProv: on
PreReq: %{install_info_prereq}
Version: 1.4.13
Release: 3
Summary: GNU m4
Url: http://www.gnu.org/software/m4/
Source: ftp://ftp.gnu.org/pub/gnu/m4/m4-%{version}.tar.lzma
Patch: m4-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: lzma
%description
GNU m4 is an implementation of the traditional Unix macro processor.
Authors:
--------
René Seindal <rene@seindal.dk>
%prep
%setup -q
%patch
chmod +x checks/*.test
chmod -x COPYING
%build
AUTOPOINT=true autoreconf -fi
./configure CFLAGS="$RPM_OPT_FLAGS" \
--prefix=/usr --mandir=%{_mandir} --infodir=%{_infodir} \
--without-included-regex \
gl_cv_func_isnanl_works=yes \
gl_cv_func_printf_directive_n=yes
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check || true
%install
make install DESTDIR="$RPM_BUILD_ROOT"
%post
%install_info --info-dir=%{_infodir} %{_infodir}/m4.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/m4.info.gz
%files
%defattr(-,root,root)
%doc README COPYING NEWS THANKS TODO ChangeLog
/usr/bin/*
%doc %{_infodir}/*.gz
%{_mandir}/*/*
%changelog