-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoose-release.spec
More file actions
257 lines (193 loc) · 8.31 KB
/
goose-release.spec
File metadata and controls
257 lines (193 loc) · 8.31 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
%define debug_package %{nil}
%define product_family GoOSe Linux
%define release_name Pilgrim
%define base_release_version 6
%define full_release_version 6.1
%define beta
Name: goose-release
Version: 6
Release: 6.1.0.0.gl6
Summary: %{product_family} release file
Group: System Environment/Base
License: GPLv2
URL: http://github.com/gooseproject/goose-release
Source0: goose-release-6.tar.gz
BuildArch: noarch
Obsoletes: rawhide-release redhat-release-as redhat-release-es
Obsoletes: redhat-release-ws redhat-release-de comps rpmdb-redhat
Obsoletes: fedora-release redhat-release-server goose-release-server
Provides: redhat-release system-release goose-release-server
%description
%{product_family} release files
%prep
%setup -q -n goose-release-6
%build
echo "Building %{product_family} %{full_release_version}%{?beta: %{beta}}"
%install
rm -rf $RPM_BUILD_ROOT
# create /etc
mkdir -p $RPM_BUILD_ROOT/etc
# create /etc/system-release and /etc/goose-release
echo "%{product_family} release %{full_release_version}%{?beta: %{beta}} (%{release_name})" > $RPM_BUILD_ROOT/etc/goose-release
ln -s goose-release $RPM_BUILD_ROOT/etc/redhat-release
ln -s goose-release $RPM_BUILD_ROOT/etc/system-release
# write cpe to /etc/system/release-cpe
echo "cpe:/o:goose:linux:%{version}:%{?beta:beta}%{!?beta:GA}" | tr [A-Z] [a-z] > $RPM_BUILD_ROOT/etc/system-release-cpe
# create /etc/issue and /etc/issue.net
cp $RPM_BUILD_ROOT/etc/goose-release $RPM_BUILD_ROOT/etc/issue
echo "Kernel \r on an \m" >> $RPM_BUILD_ROOT/etc/issue
cp $RPM_BUILD_ROOT/etc/issue $RPM_BUILD_ROOT/etc/issue.net
echo >> $RPM_BUILD_ROOT/etc/issue
# copy GPG keys
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg
for file in RPM-GPG-KEY* ; do
install -m 644 $file $RPM_BUILD_ROOT/etc/pki/rpm-gpg
done
install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d
for file in goose*repo ; do
install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d
done
# set up the dist tag macros
install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF
# dist macros.
%%rhel %{base_release_version}
%%goose %{base_release_version}
%%dist .gl%{base_release_version}
%%gl%{base_release_version} 1
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%triggerin -- firstboot
if [ -f /usr/share/firstboot/modules/additional_cds.py ] ; then
rm -f /usr/share/firstboot/modules/additional_cds.py*
fi
if [ -f /usr/share/firstboot/modules/eula.py ] ; then
rm -f /usr/share/firstboot/modules/eula.py*
fi
%triggerin -- rhn-setup-gnome
if [ -f /usr/share/firstboot/modules/rhn_register.py ] ; then
rm -f /usr/share/firstboot/modules/rhn_register.py*
fi
%files
%defattr(-,root,root)
%doc GPL autorun-template
%attr(0644,root,root) /etc/goose-release
/etc/system-release
/etc/redhat-release
%config %attr(0644,root,root) /etc/system-release-cpe
%config(noreplace) %attr(0644,root,root) /etc/issue
%config(noreplace) %attr(0644,root,root) /etc/issue.net
%config(noreplace) %attr(0644,root,root) /etc/yum.repos.d/goose.repo
%dir /etc/pki/rpm-gpg
/etc/pki/rpm-gpg/*
/etc/rpm/macros.dist
%changelog
* Sat Jan 26 2013 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.49
- Replace RPM-GPG-KEY with correct one
* Wed Jan 23 2013 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.48
- Update to new RPM-GPG-KEY
* Thu May 17 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.47
- Removed alpha reference from goose.repo
* Sun May 6 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.46
- Updated goose.repo to use beta key
* Mon Apr 30 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.45
- Added gpg keys to the tarball, enabled gpg checking in repo config
* Wed Apr 25 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.44
- Updated to beta, changed goose.repo to match proper repository url
* Wed Mar 28 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.43
- Removed RHEL specific firstboot components
- Obsoleted goose-release-server
* Tue Mar 27 2012 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.42
- Changed to goose-release from goose-release-server
- Added goose.repo and an temporary empty RPM-GPG-KEY-goose
* Sat Jul 10 2011 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.41
- Added %%rhel tag to macros.dist
* Thu Jun 9 2011 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.40
- Change dist from el6 to gl6
* Mon Jun 6 2011 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.39
- Rebuild for GoOSe Linux 6.0 #2
* Mon Jun 6 2011 Clint Savage <herlo@gooseproject.org> - 6-6.0.0.38
- Rebuild for GoOSe Linux 6.0
* Fri Sep 3 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.37
- Update EULA
- Resolves: rhbz#591512
* Tue Aug 31 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.36
- Remove beta text
- Update EULA
- Resolves: rhbz#622251, rhbz#591512
* Mon Aug 16 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.35
- Bump for GA
- Resolves: rhbz#622251
* Mon Jul 26 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.91-6.0.0.34
- Update yum repos for GA
* Tue Jun 29 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.91-6.0.0.33
- Update GPL to match standard text
* Tue Jun 29 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.91-6.0.0.32
- Bump version for post-Beta2
* Wed Jun 16 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.90-6.0.0.32
- Fix logic for AddOn repos
* Tue Jun 15 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.90-6.0.0.31
- Only include the AddOn repos in the appropriate arches/variants
- Update the Beta GPG key locations
* Tue Jun 8 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.90-6.0.0.29
- Combine GPG keys
* Fri May 28 2010 Dennis Gregorovic <dgregor@redhat.com> - 5.90-6.0.0.28
- Use a different version value so as to not conflict with GA
* Fri May 28 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.28
- Include the variant in the version field (needed for RHN)
- Update repos for Beta 2
* Mon Apr 26 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.27
- Make 'Beta' lowercase in the cpe
- Provide system-release
* Wed Mar 31 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.25
- Temporarily disable beta repos
* Mon Mar 29 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.24
- Add beta debuginfo repos
* Mon Mar 29 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.23
- Enable yum repo for Beta
* Wed Mar 10 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.21
- Update yum repos for Beta 1
* Fri Feb 5 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.20
- Use the %%{?dist} macro
* Wed Feb 3 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.19
- Mark the yum repos as configuration files
* Tue Feb 2 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.18
- Use %setup -q to keeep rpmlint happy
* Thu Jan 28 2010 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.17
- Bump for Beta
* Tue Nov 17 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.16
- Fix newline issue in RPM-GPG-KEY-redhat-beta-2
- spec file cleanup
* Thu Oct 22 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.15
- Spec cleanup (dmach@redhat.com)
- Add the beta-2 and release-2 keys
- Rename the older keys
- Comment out eula.py code until it gets cleaned up
* Mon Sep 21 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.14
- Fix typo in cpe name
* Fri Sep 18 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.13
- Fix the cpe name
* Thu Sep 17 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.12
- Update the release name
* Thu Sep 17 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.11
- Add system-release-cpe
* Tue Sep 15 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.10
- Add the 'el6' macro
* Tue Sep 1 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.9
- Bump for rebuild
* Tue Aug 11 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.8
- Indicate Alpha instead of Beta
* Wed Jun 24 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.7
- Updated eula.py
* Tue Jun 23 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.6
- Add eula.py back
* Mon Jun 15 2009 Dennis Gregorovic <dgregor@redhat.com> - 6-6.0.0.5
- add /etc/system-release
- some minor cleanup
* Fri Jun 5 2009 Dennis Gregorovic <dgregor@redhat.com> - 6Server-6.0.0.4
- bump for rebuild
* Fri Jun 5 2009 Dennis Gregorovic <dgregor@redhat.com> - 6Server-6.0.0.3
- Drop firstboot files as they conflict with the firstboot package
* Wed Jun 3 2009 Mike McLean <mikem@redhat.com> - 6Server-6.0.0.1
- initial build for version 6