1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# 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.72.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.72.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.72 && ./configure --prefix=/usr/local/autoconf-2.72
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.72 && %{?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.72/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.72/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.72/share/autoconf
|