Project Configuration of home:nhofmeyr:dev
104
1
### COPY OF https://obs.osmocom.org/project/prjconf/osmocom:latest
2
# Below is a copy of
3
# https://build.opensuse.org/projects/network:osmocom:nightly/prjconf
4
# ---
5
Order: apt:raspbian-archive-keyring
6
7
# osmo-gsm-manuals: resolve "have choice for jadetex needed by docbook-utils: jadetex texlive-htmlxml"
8
Prefer: texlive-htmlxml
9
10
# osmo-gsm-manuals: resolve "have choice for jadetex needed by docbook-utils: jadetex texlive-formats-extra"
11
Prefer: texlive-formats-extra
12
13
### 2020-01-07: osmith
14
# fix "nothing provides libcrypt1"
15
%if %_repository == "xUbuntu_19.10"
16
Preinstall: !libcrypt1
17
%endif
18
19
### 2020-01-07: osmith
20
# osmo-trx, libusrp: have choice for gfortran-mod-15 needed by libopenmpi-dev: gfortran gfortran-8 gfortran-9
21
Prefer: gfortran-8
22
23
### 2020-01-14: osmith
24
# fix "nothing provides gnupg needed by python-apt"
25
%if %_repository == "Debian_Unstable"
26
Preinstall: gnupg1
27
%endif
28
# fix "nothing provides gnupg1"
29
%if %_repository == "Debian_8.0" || %_repository == "xUbuntu_16.04"
30
Preinstall: !gnupg1
31
%endif
32
33
### 2020-05-20: osmith
34
%if 0%{?suse_version}
35
Ignore: vim-common
36
Substitute: libusb1-devel libusb-1_0-devel
37
%endif
38
39
### 2021-12-10: osmith (SYS#5754)
40
%if %centos_version == 800
41
Substitute: python-devel platform-python-devel
42
%endif
43
44
### 2020-05-20: osmith
45
%if 0%{?centos_version}
46
Substitute: libdbi-drivers-dbd-sqlite3 libdbi-dbd-sqlite
47
Substitute: lzma-devel xz-devel
48
# zeromq
49
Substitute: python python2
50
# osmo-remsim: nothing provides libgnutls-devel needed by ulfius-devel, nothing provides libjansson-devel needed by ulfius-devel
51
# Substitute does not work, as these are depends of depends
52
Preinstall: gnutls-devel jansson-devel
53
Ignore: libgnutls-devel
54
Ignore: libjansson-devel
55
56
Macros:
57
# Needed by orcania (->libulfius->osmo-remsim)
58
# See: https://build.opensuse.org/package/view_file/openSUSE:Factory/cmake/cmake.macros
59
%cmake_install DESTDIR=%{buildroot} make install
60
:Macros
61
%endif
62
63
### 2020-05-20: osmith
64
Prefer: libsmpp34-1-devel
65
66
### 2020-05-20: osmith
67
# Resolve modules
68
# https://docs.fedoraproject.org/en-US/modularity/using-modules/
69
ExpandFlags: module:python36-3.6
70
ExpandFlags: module:python27-2.7
71
72
### 2020-05-20: osmith (ulfius: have choice for systemd needed by libyder-dev: systemctl systemd)
73
Prefer: systemd
74
75
### 2020-12-09: hwelte (ulfius package in opensuse is missing zlib-devel, roox submitted patch upstream)
76
%if 0%{?suse_version}
77
Preinstall: zlib-devel
78
%endif
79
80
### 2021-11-05: osmith (fix for: /.build/build-vm: line 632: mkswap: command not found)
81
%if %_repository == "Debian_Testing"
82
Preinstall: util-linux
83
%endif
84
85
### 2021-12-19: hwelte (yder Requires.private systemd / https://osmocom.org/issues/5362)
86
%if %_repository == "Debian_10" || %_repository == "xUbuntu_18.04" || %_repository == "Raspbian_10"
87
Preinstall: systemd
88
%endif
89
90
### 2021-12-23: osmith (fix for: conflicts between attempted installs of systemd-mini and systemd)
91
%if %suse_version == 1500
92
Preinstall: !systemd
93
%endif
94
95
### 2022-06-24: osmith (fix for bogus "needs 5MB more space on the / filesystem" messages, OS#5588)
96
Support: !post-build-checks
97
98
### 2022-08-19: fix "nothing provides python3-base" for nftables
99
%if 0%{?centos_version}
100
Substitute: python3-base python3
101
%endif
102
103
# 2022-09-13: osmith (fix "have choice for lsb-base >= 1.3-9ubuntu2 needed by x11-common: lsb-base sysvinit-utils")
104
Prefer: lsb-base