1 |
# When this package is updated, please notify sysadmin team (through |
2 |
# bugzilla, email or IRC) so that the updated package is deployed on |
3 |
# the build system |
4 |
# |
5 |
# If you are a sysadmin: submit the package to the infra repository, |
6 |
# and install it on duvel |
7 |
|
8 |
%define rpmlint_config %{_datadir}/rpmlint/config.d/ |
9 |
|
10 |
Name: rpmlint-%{_real_vendor}-policy |
11 |
Version: 0.2.28 |
12 |
%define subrel 1 |
13 |
Release: %mkrel 7 |
14 |
Summary: Rpmlint policy for %{_vendor} |
15 |
Group: Development/Other |
16 |
License: GPLv2+ |
17 |
URL: http://www.mageia.org/ |
18 |
Source0: distribution.exceptions.conf |
19 |
Source1: distribution.error.conf |
20 |
Source2: distribution.error.list |
21 |
BuildArch: noarch |
22 |
Requires: rpmlint >= 1.4-4 |
23 |
BuildRequires: rpmlint >= 1.4-4 |
24 |
|
25 |
%description |
26 |
Official rpmlint policy for %{_vendor}, install this if you want to |
27 |
produce rpm for %{_vendor}. |
28 |
|
29 |
|
30 |
%prep |
31 |
# nothing to do |
32 |
|
33 |
%build |
34 |
# nothing to do |
35 |
|
36 |
%install |
37 |
mkdir -p %{buildroot}%{rpmlint_config} |
38 |
cp -a %{SOURCE0} %{buildroot}%{rpmlint_config}/ |
39 |
cp -a %{SOURCE1} %{buildroot}%{rpmlint_config}/ |
40 |
cp -a %{SOURCE2} %{buildroot}%{rpmlint_config}/ |
41 |
|
42 |
%check |
43 |
# prevent upload with a wrong config file |
44 |
export PYTHONPATH=/usr/share/rpmlint |
45 |
# this need some work, as this requires rpmlint-mageia-policy to be present to work fully |
46 |
#python %{SOURCE1} |
47 |
python %{SOURCE0} |
48 |
|
49 |
%files |
50 |
%rpmlint_config/* |