summaryrefslogtreecommitdiffstats
path: root/repos/autotools/autotools-git/autotools-git/autotools-git.spec
blob: fb1637a7b96b4a07ec7ec52f6d07b23ea47d5eae (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
%{?_compat_el5_build}

# Workaround to always have %%scl defined
%{!?scl:%global scl autotools-git}

%{?scl:%scl_package %scl}

Summary: Package that installs %scl
Name: %scl_name
Version: 1
Release: 15%{?dist}
License: GPLv2+
Group: Applications/File

Requires: %{?scl_prefix}m4, %{?scl_prefix}automake
Requires: %{?scl_prefix}autoconf, %{?scl_prefix}libtool

BuildRequires: compat-rpm-config

%{?scl:BuildRequires: scl-utils-build}
%{?scl:BuildRequires: iso-codes}

%if ! 0%{?buildroot:1}
# HACK!  This should be truth only for RHEL5, so benefit from
# this %%if for defining (otherwise undefined) macro for this platform.
%global rhel 5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%endif

%description
This is the main package for %scl Software Collection.  It contains the latest
development (unstable) versions of autotools.  Just run "scl enable %scl bash"
to make it work instead of system-default autotools.


%package runtime
Summary: Package that handles %scl Software Collection.
Group: Applications/File
Requires: scl-utils

%description runtime
Package shipping essential scripts to work with %scl Software Collection.


%prep
%setup -c -T

%build
%if 0%{?rhel} >= 5 && 0%{?rhel} < 8
cat > enable <<\EOF
%_compat_scl_env_adjust PATH            %{_bindir}
%_compat_scl_env_adjust LIBRARY_PATH    %{_libdir}
%_compat_scl_env_adjust LD_LIBRARY_PATH %{_libdir}
%_compat_scl_env_adjust MANDIR          %{_mandir}
%_compat_scl_env_adjust INFOPATH        %{_infodir}
EOF
%else
cat > %{scl} << EOF
#%%Module1.0
prepend-path    X_SCLS              %{scl}
prepend-path    PATH                %{_bindir}
prepend-path    LIBRARY_PATH        %{_libdir}
prepend-path    LD_LIBRARY_PATH     %{_libdir}
prepend-path    MANPATH             %{_mandir}
prepend-path    INFOPATH            %{_infodir}
prepend-path    PKG_CONFIG_PATH     %{_libdir}/pkgconfig
EOF
%endif


%install
%if 0%{?rhel} == 5
rm -rf %{buildroot}
%endif

%if 0%{?rhel} >= 5 && 0%{?rhel} < 8
mkdir -p %{buildroot}/%{_scl_scripts}/root
install -c -p -m 0644 enable %{buildroot}%{_scl_scripts}/enable
%else
mkdir -p %{buildroot}%{_scl_scripts}
install -c -p -m 0644 %{scl} %{buildroot}%{_scl_scripts}
#automaticaly create enable script for compatibility
%scl_enable_script
%endif

%scl_install

cat %{buildroot}/%{_root_sysconfdir}/rpm/macros.%{scl}-config
rm -rf %{buildroot}/%{_root_sysconfdir}/rpm/macros.%{scl}-config


%files


%files runtime
%scl_files
%if 0%{?rhel} == 7
# Temporary fix for some bug in scl-utils-build-20130529-1.el7.x86_64
/opt/rh/autotools-git/root/lib64
%endif


%changelog
* Wed Aug 12 2015 Pavel Raiskup <praiskup@redhat.com> - 1-15
- use _compat_el5_build only if defined (rhbz#1252751)

* Tue Jun 23 2015 Pavel Raiskup <praiskup@redhat.com> - 1-14
- make the meta-packages architecture dependant

* Tue Jun 23 2015 Pavel Raiskup <praiskup@redhat.com> - 1-13
- fix for scl-utils 2.0 (environment modules)

* Fri Aug 15 2014 Pavel Raiskup <praiskup@redhat.com> - 1-12
- rebuilt

* Wed May 28 2014 Pavel Raiskup <praiskup@redhat.com> - 1-11
- adjust also INFOPATH, use general pattern %%_compat_scl_env_adjust macro, also
  move generating of 'enable' script into %%build phase

* Fri Apr 18 2014 Pavel Raiskup <praiskup@redhat.com> - 1-10
- the fix for 'filelist' (#1079203) is not needed, according to
  https://fedorahosted.org/SoftwareCollections/ticket/18

* Thu Apr 17 2014 Pavel Raiskup <praiskup@redhat.com> - 1-9
- merge fixes with autotools-latest version

* Tue Mar 25 2014 Pavel Raiskup <praiskup@redhat.com> - 1-8
- buildroots are prepared, lets require all packages

* Mon Mar 24 2014 Pavel Raiskup <praiskup@redhat.com> - 1-7
- prepare for m4 incorporation (newer m4 is needed in RHEL5)

* Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 1-6
- fix project description a little

* Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 1-5
- ok, revert that hack back (this is needed for epel-7, not for rhel-7 buildroot
  atm)

* Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 1-4
- the hack for RHEL-7 is not needed now?

* Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 1-3
- temporarily disable autotools-git-libtool requirement

* Fri Mar 21 2014 Pavel Raiskup <praiskup@redhat.com> - 1-2
- workaround bug fixed in scl-utils-build-20130529-5

* Wed Mar 19 2014 Pavel Raiskup <praiskup@redhat.com> - 1-1
- initial packaging