# spec file for package configure-dumper # # Copyright (c) 2017 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: configure-dumper Summary: Utilities to make dump of GCC's configure options. Version: 1.1 Release: 0 License: GPL-2.0+ Source: %name-%version.tar.gz Source1: autoconf-2.64.tar.gz Source2: autoconf-2.69.tar.gz Source3: autoconf-2.71.tar.gz Source4: configure-dumper.manifest Requires: perl-DBD-SQLite Requires: m4 >= 1.4.6 BuildRequires: xz BuildRequires: m4 >= 1.4.6 BuildArch: noarch %description Utilities to make dump of GCC's configure options. %prep %setup -q -n %{name}-%{version} cp %{SOURCE1} . cp %{SOURCE2} . cp %{SOURCE3} . cp %{SOURCE4} . %{__chmod} -Rf a+rX,u+w,g-w,o-w . %{__tar} -xf autoconf-2.64.tar.gz %{__tar} -xf autoconf-2.69.tar.gz %{__tar} -xf autoconf-2.71.tar.gz %build cd autoconf-2.64 && ./configure --prefix=/usr/local/autoconf-2.64 make %{?_smp_mflags} cd ../autoconf-2.69 && ./configure --prefix=/usr/local/autoconf-2.69 make %{?_smp_mflags} cd ../autoconf-2.71 && ./configure --prefix=/usr/local/autoconf-2.71 make %{?_smp_mflags} %install cd autoconf-2.64 && %{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}} cd ../autoconf-2.69 && %{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}} cd ../autoconf-2.71 && %{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}} && cd .. rm -rf %{buildroot}/usr/local/autoconf-2.64/share/{man,info} rm -rf %{buildroot}/usr/local/autoconf-2.69/share/{man,info} rm -rf %{buildroot}/usr/local/autoconf-2.71/share/{man,info} mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/etc/%{name}/modules install -m 0755 patch_configure.pl $RPM_BUILD_ROOT/%{_bindir} install -m 0755 dump_configure.pl $RPM_BUILD_ROOT/%{_bindir} install -m 0755 dump_differ.pl $RPM_BUILD_ROOT/%{_bindir} install -m 0755 modules/* $RPM_BUILD_ROOT/etc/%{name}/modules %postun %files %manifest %{name}.manifest %defattr(-,root,root) /usr/local/autoconf-2.64/bin/* /usr/local/autoconf-2.69/bin/* /usr/local/autoconf-2.71/bin/* %{_bindir}/patch_configure.pl %{_bindir}/dump_configure.pl %{_bindir}/dump_differ.pl /etc/%{name}/modules/* /usr/local/autoconf-2.64/share/autoconf /usr/local/autoconf-2.69/share/autoconf /usr/local/autoconf-2.71/share/autoconf