Last commit
mikhailnov has added 8f084276a0 Fix mismatch of names of binary and debuginfo repos (fix dnf debuginf...
...o-install which works by adding suffix to names of repos)
Files in
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 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | %ifarch %{x86_64}
%global secondary_distarch i686
%endif
Name: rosa-repos
Version: 2021.1
# During devel, it should be 0.0.X
# During release candidate, it should be 0.1.X
# Before final release, bump to 1
Release: 9
Summary: ROSA package repositories
Group: System/Base
License: MIT
# ROSA GPG key
Source0: RPM-GPG-KEY-ROSA
# ROSA release repo config templates
Source2: rosa-extrasect-repo
Source3: rosa-main-srcrepo
Source4: rosa-extrasect-srcrepo
Source5: rosa-extrasect-repo-testing
Source6: rosa-extrasect-srcrepo-testing
Provides: rosa-repos(%{version})
Requires: system-release(%{version})
Requires: rosa-repos-pkgprefs = %{EVRD}
Requires: rosa-repos-keys = %{EVRD}
Requires: rosa-repos-main
Recommends: rosa-repos-pkgprefs
Recommends: rosa-repos-contrib
Recommends: rosa-repos-non-free
# restrcited repo was removed
Obsoletes: rosa-repos-restricted < 2021.1-0.11
%description
Configuration of ROSA main repository
%files
# empty, meta-package
#--------------------------------------------------------------------------------------------
%package testing
Summary: ROSA testing package repositories meta-package
Group: System/Base
Requires: (rosa-repos-main-testing if rosa-repos-main)
Requires: (rosa-repos-contrib-testing if rosa-repos-contrib)
Requires: (rosa-repos-non-free-testing if rosa-repos-non-free)
%description testing
ROSA testing package repositories meta-package.
Install it to enable all testing repos.
%files testing
# empty, meta-package
#--------------------------------------------------------------------------------------------
%package main
Summary: ROSA package repositories - Main
Group: System/Base
%description main
Conficuration for ROSA Main repository
%files main
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo
#--------------------------------------------------------------------------------------------
%package main-testing
Summary: ROSA package repositories - Main Testing
Group: System/Base
Requires: rosa-repos-main = %{EVRD}
%description main-testing
Conficuration for ROSA Main Testing repository
%files main-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo
#--------------------------------------------------------------------------------------------
%package contrib
Summary: ROSA package repositories - Contrib
Group: System/Base
Requires: rosa-repos-main = %{EVRD}
%description contrib
Configuration of ROSA contrib (community-supported) repository
%files contrib
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo
#--------------------------------------------------------------------------------------------
%package contrib-testing
Summary: ROSA package repositories - Contrib Testing
Group: System/Base
Requires: rosa-repos-contrib = %{EVRD}
%description contrib-testing
Configuration of ROSA Contrib (community-supported) Testing repository
%files contrib-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo
#--------------------------------------------------------------------------------------------
%package non-free
Summary: ROSA package repositories - non-free
Group: System/Base
Requires: rosa-repos-main = %{EVRD}
%description non-free
Configuration of ROSA non-free repository
%files non-free
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo
#--------------------------------------------------------------------------------------------
%package non-free-testing
Summary: ROSA package repositories - Non-free Testing
Group: System/Base
Requires: rosa-repos-non-free = %{EVRD}
%description non-free-testing
Configuration of ROSA Non-free Testing repository
%files non-free-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo
#--------------------------------------------------------------------------------------------
%package keys
Summary: ROSA repository GPG keys
Group: System/Base
# GPG keys are architecture independent
BuildArch: noarch
%description keys
ROSA GPG keys for validating packages from ROSA repositories by
DNF and PackageKit.
%files keys
%dir %{_sysconfdir}/pki/rpm-gpg
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-ROSA
#--------------------------------------------------------------------------------------------
%package pkgprefs
# (ngompa): See the following page on why this exists:
# https://fedoraproject.org/wiki/PackagingDrafts/ProvidesPreferences#Distribution_preference
Summary: ROSA repository package preferences
Group: System/Base
# Preferences list is architecture independent
BuildArch: noarch
# Default distribution release
Suggests: branding-configs-default
## Base packages
# webfetch
Suggests: curl
# webclient
Suggests: lynx
# bootloader
Suggests: grub2
# initrd
Suggests: dracut
# vim
Suggests: vim-minimal
# always prefer perl-base over weird packages auto-providing same modules (perl-PathTools, perl-Tk, , perl-PDL...)
Suggests: perl-base
# libGL.so.1 (also provided by proprietary drivers)
Suggests: libgl1
Suggests: lib64gl1
# Prefer openssh-askpass over openssh-askpass-gnome (for keychain)
Suggests: openssh-askpass
# Python 2.7
Suggests: python
## Multimedia
# festival-voice
Suggests: festvox-kallpc16k
# gnome-speech-driver
Suggests: gnome-speech-driver-espeak
# esound
Suggests: pulseaudio-esound-compat
# gst-install-plugins-helper
Suggests: packagekit-gstreamer-plugin
# libbaconvideowidget.so.0 (totem backend)
Suggests: libbaconvideowidget-gstreamer0
Suggests: lib64baconvideowidget-gstreamer0
# phonon-backend
Suggests: phonon-gstreamer
# Prever Jack2 over PipeWire
# but allow to use PipeWire as a drop-in replacements of its libraries
# https://rpm.org/user_doc/boolean_dependencies.html
# Keep in sync with pipewire package!
%define pipewire_pref_gen() %{expand:\
Suggests: (%{mklibname %1 %2}%{_isa} without pipewire) \
Suggests: (%{mklibname %{1}_pipewire %2}%{_isa} if pipewire) \
%ifarch %{x86_64} \
Suggests: (lib%{1}%{2}(x86-32) without pipewire) \
Suggests: (lib%{1}_pipewire%{2}(x86-32) if pipewire) \
%endif \
}
%pipewire_pref_gen jack 0
%pipewire_pref_gen jacknet 0
%pipewire_pref_gen jackserver 0
## Devel
# xemacs-extras provides ctags, prefer simple ctags
Suggests: ctags
# uClibc-devel provides a few things similar to glibc-devel
Suggests: glibc-devel
# prefer openssl-devel over libressl-devel
Suggests: libopenssl-devel
Suggests: lib64openssl-devel
# prefer gcc over gcc3.3
# (gcc-cpp and gcc-c++ are no more needed, but keeping just in case)
Suggests: gcc-cpp
Suggests: gcc
Suggests: gcc-c++
Suggests: libstdc++-devel
## Servers
# sendmail-command and mail-server
Suggests: postfix
# nfs-server
Suggests: nfs-utils
# webserver
Suggests: apache
# apache
Suggests: apache-mpm-prefork
# ftpserver
Suggests: proftpd
# portmapper
Suggests: portmap
# syslog-daemon
Suggests: systemd
# vnc
Suggests: tigervnc
## Various
# sane (also provided by saned)
Suggests: sane-backends
# virtual-notification-daemon
Suggests: notification-daemon
# sgml-tools
# (the other choice is linuxdoc-tools which requires docbook-utils anyway)
Suggests: docbook-utils
# input method
Suggests: scim-bridge
# lxde session manager
Suggests: lxsession-lite
# drupal database storage
Suggests: drupal-mysqli
# polkit-agent
Suggests: polkit-gnome
# pinentry
Suggests: pinentry-qt5
# java
Suggests: java-1.8.0-openjdk
Suggests: java-1.8.0-openjdk-devel
# java-plugin
Suggests: icedtea-web
%description pkgprefs
This package supplies DNF and PackageKit with global
preferences for packages in which multiple options are possible.
%files pkgprefs
# empty
#--------------------------------------------------------------------------------------------
%prep
# Nothing to prepare
%build
# Nothing to build
%install
ARCH=%{_target_cpu}
echo $ARCH |grep -q arm && ARCH=armv7hl
[ "$ARCH" = "i386" ] && ARCH=i586
[ "$ARCH" = "i586" ] && ARCH=i586
# Install the GPG key
mkdir -p %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install %{S:0} -pm 0644 %{buildroot}%{_sysconfdir}/pki/rpm-gpg
# Install the repositories
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d
## Create the repositories for various sections
install %{S:3} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}-source.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}.repo
## Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/${ARCH}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*${ARCH}*.repo
sed -e "s/@DIST_SECTION@/main/g" \
-e "s/@DIST_SECTION_NAME@/Main/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*${ARCH}*.repo
sed -e "s/@DIST_SECTION@/non-free/g" \
-e "s/@DIST_SECTION_NAME@/Non-free/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*${ARCH}*.repo
sed -e "s/@DIST_SECTION@/contrib/g" \
-e "s/@DIST_SECTION_NAME@/Contrib/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*${ARCH}*.repo
## For architectures with a secondary arch, we need to create repositories for them, too
%if %{defined secondary_distarch}
### Create the repositories for various sections, excluding sources (as they are identical to primary arch ones)
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-testing-%{secondary_distarch}.repo
### Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/%{secondary_distarch}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*%{secondary_distarch}*.repo
sed -e "s/@DIST_SECTION@/main/g" \
-e "s/@DIST_SECTION_NAME@/Main/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*%{secondary_distarch}*.repo
sed -e "s/@DIST_SECTION@/non-free/g" \
-e "s/@DIST_SECTION_NAME@/Non-free/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*%{secondary_distarch}*.repo
sed -e "s/@DIST_SECTION@/contrib/g" \
-e "s/@DIST_SECTION_NAME@/Contrib/g" \
-i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*%{secondary_distarch}*.repo
# install noarch packages from x86_64, not i686
# Lower number means higher priority
find %{buildroot}%{_sysconfdir}/yum.repos.d/ -type f | grep -v "%{secondary_distarch}" | while read -r line
do
sed -i'' -r -e 's,^cost=.+,cost=999,' "$line"
done
%endif
|