summaryrefslogtreecommitdiffstats
path: root/freed-ora/tags/master/freed-ora-9-1/freed-ora.spec
blob: 47b07b5837965851461b0fe5f44123e5e90328bf (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
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
Name:           freed-ora
Version:        9
Release:        1

Summary:        Linux-libre Freed-ora packages
License:        BSD
URL:            http://linux-libre.fsfla.org/freed-ora
Source0:        RPM-GPG-KEY-freed-ora-linux-libre
Source1:        freed-ora.repo
Source2:        freed-ora-testing.repo
Source3:        freed-ora-detesting.repo
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

%description
Packages to configure yum to use Linux-libre's Freed-ora repositories,
and to avoid the installation of non-Free Software distributed by
Fedora.

%package release
Summary: Linux-libre Freed-ora Repository Configuration
Group: System Environment/Base

Provides: freed-ora
Obsoletes: freed-ora

%description release
The Freed-ora repositories, maintained by the Linux-libre project,
offer kernels that are as close as possible to those offered by
Fedora, except for changes made so that they do not contain or request
non-Free Software.

%prep
echo "Nothing to prep"

%build
echo "Nothing to build"

%install
rm -rf $RPM_BUILD_ROOT

# Create dirs
install -d -m755 \
  $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg  \
  $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d

# GPG Key
%{__install} -Dp -m644 \
    %{SOURCE0} \
    $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg

# Yum .repo files
%{__install} -p -m644 %{SOURCE1} %{SOURCE2} %{SOURCE3} \
    $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d


%clean
rm -rf $RPM_BUILD_ROOT

%files release
%defattr(-,root,root,-)
%{_sysconfdir}/pki/rpm-gpg/*
%config(noreplace) %{_sysconfdir}/yum.repos.d/*

%package freedom
Summary: Meta-package that conflicts with non-Free components in Fedora
Group: System Environment/Base

%define kernelpkgs kernel, kernel-PAE, kernel-PAE-core, kernel-PAE-debuginfo, kernel-PAE-devel, kernel-PAE-modules, kernel-PAE-modules-extra, kernel-PAEdebug, kernel-PAEdebug-core, kernel-PAEdebug-debuginfo, kernel-PAEdebug-devel, kernel-PAEdebug-modules, kernel-PAEdebug-modules-extra, kernel-core, kernel-debug, kernel-debug-core, kernel-debug-debuginfo, kernel-debug-devel, kernel-debug-modules, kernel-debug-modules-extra, kernel-debuginfo, kernel-debuginfo-common-i686, kernel-debuginfo-common-x86_64, kernel-devel, kernel-doc, kernel-firmware, kernel-headers, kernel-modules, kernel-modules-extra, kernel-tools, kernel-tools-debuginfo, kernel-tools-libs, kernel-tools-libs-devel, perf, perf-debuginfo, python-perf, python-perf-debuginfo

# We can't conflict with these, because kernel-libre packages provide them.
# Conflicts: %{kernelpkgs}

# Licenses for alsa-firmware and zd1211-firmware look fine, but there
# are plenty of sourceless binary images in the packages.
Conflicts: aic94xx-firmware
Conflicts: alsa-firmware
Conflicts: alsa-tools-firmware
Conflicts: ar9170-firmware
Conflicts: atmel-firmware
Conflicts: bfa-firmware
Conflicts: crystalhd-firmware
Conflicts: cx18-firmware
# These firmware-* packages could be ok, but their only use is to deal
# with non-Free Software:
Conflicts: firmware-addon-dell
Conflicts: firmware-extract
Conflicts: firmware-tools
Conflicts: iguanaIR-firmware
Conflicts: ipw2100-firmware
Conflicts: ipw2200-firmware
Conflicts: ipw3945-ucode
Conflicts: iscan-firmware
Conflicts: isight-firmware-tools
Conflicts: ivtv-firmware
Conflicts: iwl100-firmware
Conflicts: iwl1000-firmware
Conflicts: iwl105-firmware
Conflicts: iwl135-firmware
Conflicts: iwl2000-firmware
Conflicts: iwl2030-firmware
Conflicts: iwl3160-firmware
Conflicts: iwl3945-firmware
Conflicts: iwl4965-firmware
Conflicts: iwl5000-firmware
Conflicts: iwl5150-firmware
Conflicts: iwl6000-firmware
Conflicts: iwl6000g2a-firmware
Conflicts: iwl6000g2b-firmware
Conflicts: iwl6050-firmware
Conflicts: iwl7260-firmware
Conflicts: iwlwifi-3945-ucode
Conflicts: iwlwifi-4965-ucode
Conflicts: libertas-sd8686-firmware
Conflicts: libertas-sd8787-firmware
Conflicts: libertas-usb8388-firmware
Conflicts: libertas-usb8388-olpc-firmware
Conflicts: linux-firmware
Conflicts: microcode_ctl
Conflicts: midisport-firmware
Conflicts: netxen-firmware
Conflicts: ql2100-firmware
Conflicts: ql2200-firmware
Conflicts: ql23xx-firmware
Conflicts: ql2400-firmware
Conflicts: ql2500-firmware
Conflicts: rt61pci-firmware
Conflicts: rt73usb-firmware
Conflicts: sigrok-firmware
# This could be ok, but the license tag is wrong, and it mentions the
# non-Free bits in its README:
Conflicts: sigrok-firmware-filesystem
# These are ok:
# Conflicts: sigrok-firmware-free
# Conflicts: sigrok-firmware-fx2lafw
Conflicts: sigrok-firmware-nonfree
Conflicts: ueagle-atm4-firmware
Conflicts: uhd-firmware
Conflicts: ultimaker-marlin-firmware
Conflicts: ultimaker2-marlin-firmware
Conflicts: xorg-x11-drv-ati-firmware
Conflicts: zd1211-firmware

%description freedom
The freed-ora-freedom package is intended to conflict with all known
non-Free components in Fedora, except for kernel packages, that are
dealt with as an install-time error.

We cannot conflict with the kernel packages because the corresponding
kernel-libre packages must provide the same names to satisfy other
system-wide dependencies.  Unfortunately, this means it is up to you
to verify that you have none of kernel, kernel-core, kernel-modules*,
kernel-doc, kernel-headers, kernel-devel, kernel-firmware,
kernel-tools*, perf, python-perf, and their -PAE, -debug, etc variants
or their debuginfo.

Once you do that, you may want to
exclude=kernel*,perf,*-firmware,*-ucode,microcode_ctl from Fedora
repos, to avoid accidents.  The conflict markers in this package will
actually prevent the installation of most of these packages, but not
of the kernel ones: these will only get warnings from triggers.

%files freedom
%defattr(-,root,root,-)

%pre freedom
if rpm -qa kernel kernel-\* perf | 
   sed '/-libre-/d; s,.*,Error: & conflicts with freed-ora-freedom,' |
   grep . >&2; then
  exit 1
fi

%post freedom
if test -f /etc/sysconfig/kernel &&
   grep '^DEFAULTKERNEL=kernel\(-\(debug\|PAE\)*\)\?$' \
     /etc/sysconfig/kernel > /dev/null; then
  sed -i 's,^\(DEFAULTKERNEL=kernel\)\(-\(debug\|PAE\)*\)\?$,\1-libre\2,' \
    /etc/sysconfig/kernel
fi

%triggerin freedom -- %{kernelpkgs}
echo Error: newly-installed package conflicts with freed-ora-freedom >&2
exit 1

%changelog
* Wed Oct 21 2015 Alexandre Oliva <lxoliva@fsfla.org> - 9-1
- Switch from F- to f directories.

* Sun Dec  7 2014 Alexandre Oliva <lxoliva@fsfla.org> - 8-1
- Updated gnulinux.si mirror (was gnulinux.tv).
- Dropped lsd.ic.unicamp.br mirror.
- Added espoch and cedia mirrors in Ecuador.
- Added *-core, *-modules, *-modules-extra, kernel-tools*, *perf* packages 
to Fedora kernelpkgs, reported in triggers.
- Added conflicts to alsa-tools-firmware, firmware-addon-dell,
firmware-extract, firmware-tools, iguanaIR-firmware, ipw3945-ucode,
isight-firmware-tools, iwl105-firmware, iwl135-firmare,
iwl2000-firmware, iwl2030-firmware, iwl31360-firmware,
iwl7260-firmware, iwlwifi-3945-ucode, iwlwifi-4965-ucode,
libertas-sd8787-firmware, libertas-usb8388-olpc-firmware,
sigrok-firmware, sigrok-firmware-filesystem, sigrok-firmware-nonfree,
udh-firmware, ultimaker-marlin-firmware, and
ultimaker2-marlin-firmware.
- Justify conflicts with firmware-addon-dell, firmware-extract,
firmware-tools, and sigrok-firmware-filesystem.
- Do NOT conflict with sigrok-firmware-free and sigrok-firmware-fx2lafw.

* Fri Jul 22 2011 Alexandre Oliva <lxoliva@fsfla.org> - 7-1
- Added linux.org.tr mirror.

* Mon Feb  7 2011 Alexandre Oliva <lxoliva@fsfla.org> - 6-1
- Conflict with iwl100-firmware.

* Tue Jan 18 2011 Alexandre Oliva <lxoliva@fsfla.org> - 5-1
- Conflict with netxen-firmware.

* Fri Jan  7 2011 Alexandre Oliva <lxoliva@fsfla.org> - 4-1
- Conflict with iwl6000g2b-firmware.

* Fri Dec 24 2010 Alexandre Oliva <lxoliva@fsfla.org> - 3-1
- Conflict with iwl6000g2a-firmware.

* Wed Dec  1 2010 Alexandre Oliva <lxoliva@fsfla.org> - 2-1
- Moved repo configuration to new -release package, per convention.
- Package base name is now srpm only.
- Completed set of excluded firmware packages with those only in
Everything/ but not in Fedora/.
- Added pre script to -freedom, to report non-Free kernels.
- Trigger -freedom error report on non-Free kernel package installs.
- Change kernel default to -libre on -freedom.

* Mon Nov 29 2010 Alexandre Oliva <lxoliva@fsfla.org> - 1-1
- Initial RPM release.
OpenPOWER on IntegriCloud