Add macros to use the same language list for the langpack-subpackages and the requirements of the meta-package to require them all

This commit is contained in:
Mike FABIAN 2016-01-26 22:15:56 +01:00
parent c48b18fcb8
commit d9bc2196b1

View File

@ -1,6 +1,6 @@
%define glibcsrcdir glibc-2.22-621-g90c400b %define glibcsrcdir glibc-2.22-621-g90c400b
%define glibcversion 2.22.90 %define glibcversion 2.22.90
%define glibcrelease 51%{?dist} %define glibcrelease 52%{?dist}
# Pre-release tarballs are pulled in from git using a command that is # Pre-release tarballs are pulled in from git using a command that is
# effectively: # effectively:
# #
@ -550,7 +550,7 @@ Group: System Environment/Base
%description locale-source %description locale-source
The sources for the locales The sources for the locales
%define lang_package() \ %define lang_package()\
%package langpack-%{1}\ %package langpack-%{1}\
Summary: Locale data for %{1}\ Summary: Locale data for %{1}\
Requires: %{name} = %{version}-%{release}\ Requires: %{name} = %{version}-%{release}\
@ -567,375 +567,219 @@ The glibc-langpack-%{1} package includes the locale data for %{1}.\
%endif\ %endif\
%{nil} %{nil}
%lang_package aa %define language_list \
%lang_package af aa \
%lang_package ak af \
%lang_package am ak \
%lang_package an am \
%lang_package anp an \
%lang_package ar anp \
%lang_package as ar \
%lang_package ast as \
%lang_package ayc ast \
%lang_package az ayc \
%lang_package be az \
%lang_package bem be \
%lang_package ber bem \
%lang_package bg ber \
%lang_package bhb bg \
%lang_package bho bhb \
%lang_package bn bho \
%lang_package bo bn \
%lang_package br bo \
%lang_package brx br \
%lang_package bs brx \
%lang_package byn bs \
%lang_package ca byn \
%lang_package ce ca \
%lang_package cmn ce \
%lang_package crh cmn \
%lang_package cs crh \
%lang_package csb cs \
%lang_package cv csb \
%lang_package cy cv \
%lang_package da cy \
%lang_package de da \
%lang_package doi de \
%lang_package dv doi \
%lang_package dz dv \
%lang_package el dz \
%lang_package en el \
%lang_package eo en \
%lang_package es eo \
%lang_package et es \
%lang_package eu et \
%lang_package fa eu \
%lang_package ff fa \
%lang_package fi ff \
%lang_package fil fi \
%lang_package fo fil \
%lang_package fr fo \
%lang_package fur fr \
%lang_package fy fur \
%lang_package ga fy \
%lang_package gd ga \
%lang_package gez gd \
%lang_package gl gez \
%lang_package gu gl \
%lang_package gv gu \
%lang_package ha gv \
%lang_package hak ha \
%lang_package he hak \
%lang_package hi he \
%lang_package hne hi \
%lang_package hr hne \
%lang_package hsb hr \
%lang_package ht hsb \
%lang_package hu ht \
%lang_package hy hu \
%lang_package ia hy \
%lang_package id ia \
%lang_package ig id \
%lang_package ik ig \
%lang_package is ik \
%lang_package it is \
%lang_package iu it \
%lang_package iw iu \
%lang_package ja iw \
%lang_package ka ja \
%lang_package kk ka \
%lang_package kl kk \
%lang_package km kl \
%lang_package kn km \
%lang_package ko kn \
%lang_package kok ko \
%lang_package ks kok \
%lang_package ku ks \
%lang_package kw ku \
%lang_package ky kw \
%lang_package lb ky \
%lang_package lg lb \
%lang_package li lg \
%lang_package lij li \
%lang_package lo lij \
%lang_package lt lo \
%lang_package lv lt \
%lang_package lzh lv \
%lang_package mag lzh \
%lang_package mai mag \
%lang_package mg mai \
%lang_package mhr mg \
%lang_package mi mhr \
%lang_package mk mi \
%lang_package ml mk \
%lang_package mn ml \
%lang_package mni mn \
%lang_package mr mni \
%lang_package ms mr \
%lang_package mt ms \
%lang_package my mt \
%lang_package nan my \
%lang_package nb nan \
%lang_package nds nb \
%lang_package ne nds \
%lang_package nhn ne \
%lang_package niu nhn \
%lang_package nl niu \
%lang_package nn nl \
%lang_package nr nn \
%lang_package nso nr \
%lang_package oc nso \
%lang_package om oc \
%lang_package or om \
%lang_package os or \
%lang_package pa os \
%lang_package pap pa \
%lang_package pl pap \
%lang_package ps pl \
%lang_package pt ps \
%lang_package quz pt \
%lang_package raj quz \
%lang_package ro raj \
%lang_package ru ro \
%lang_package rw ru \
%lang_package sa rw \
%lang_package sat sa \
%lang_package sc sat \
%lang_package sd sc \
%lang_package se sd \
%lang_package shs se \
%lang_package si shs \
%lang_package sid si \
%lang_package sk sid \
%lang_package sl sk \
%lang_package so sl \
%lang_package sq so \
%lang_package sr sq \
%lang_package ss sr \
%lang_package st ss \
%lang_package sv st \
%lang_package sw sv \
%lang_package szl sw \
%lang_package ta szl \
%lang_package tcy ta \
%lang_package te tcy \
%lang_package tg te \
%lang_package th tg \
%lang_package the th \
%lang_package ti the \
%lang_package tig ti \
%lang_package tk tig \
%lang_package tl tk \
%lang_package tn tl \
%lang_package tr tn \
%lang_package ts tr \
%lang_package tt ts \
%lang_package ug tt \
%lang_package uk ug \
%lang_package unm uk \
%lang_package ur unm \
%lang_package uz ur \
%lang_package ve uz \
%lang_package vi ve \
%lang_package wa vi \
%lang_package wae wa \
%lang_package wal wae \
%lang_package wo wal \
%lang_package xh wo \
%lang_package yi xh \
%lang_package yo yi \
%lang_package yue yo \
%lang_package zh yue \
%lang_package zu %{nil}
%define language_list_second \
zh \
zu \
%{nil}
%define create_lang_packages()\
%{lua:\
local languages = rpm.expand("%1")\
string.gsub(languages, "(%a+)",\
function(i) print(rpm.expand("%lang_package "..i.."")) end)}\
%{nil}
%create_lang_packages %language_list
%create_lang_packages %language_list_second
%define require_langpacks()\
%{lua:\
local languages = rpm.expand("%1")\
string.gsub(languages, "(%a+)",\
function(i) print(rpm.expand("Requires: %{name}-langpack-"..i.." = %{version}-%{release}\\n")) end)}\
%{nil}
%package all-langpacks %package all-langpacks
Summary: Meta package to require all langpacks Summary: Meta package to require all langpacks
Group: System Environment/Base Group: System Environment/Base
Requires: %{name}-langpack-aa = %{version}-%{release} %require_langpacks %language_list
Requires: %{name}-langpack-af = %{version}-%{release} %require_langpacks %language_list_second
Requires: %{name}-langpack-ak = %{version}-%{release}
Requires: %{name}-langpack-am = %{version}-%{release}
Requires: %{name}-langpack-an = %{version}-%{release}
Requires: %{name}-langpack-anp = %{version}-%{release}
Requires: %{name}-langpack-ar = %{version}-%{release}
Requires: %{name}-langpack-as = %{version}-%{release}
Requires: %{name}-langpack-ast = %{version}-%{release}
Requires: %{name}-langpack-ayc = %{version}-%{release}
Requires: %{name}-langpack-az = %{version}-%{release}
Requires: %{name}-langpack-be = %{version}-%{release}
Requires: %{name}-langpack-bem = %{version}-%{release}
Requires: %{name}-langpack-ber = %{version}-%{release}
Requires: %{name}-langpack-bg = %{version}-%{release}
Requires: %{name}-langpack-bhb = %{version}-%{release}
Requires: %{name}-langpack-bho = %{version}-%{release}
Requires: %{name}-langpack-bn = %{version}-%{release}
Requires: %{name}-langpack-bo = %{version}-%{release}
Requires: %{name}-langpack-br = %{version}-%{release}
Requires: %{name}-langpack-brx = %{version}-%{release}
Requires: %{name}-langpack-bs = %{version}-%{release}
Requires: %{name}-langpack-byn = %{version}-%{release}
Requires: %{name}-langpack-ca = %{version}-%{release}
Requires: %{name}-langpack-ce = %{version}-%{release}
Requires: %{name}-langpack-cmn = %{version}-%{release}
Requires: %{name}-langpack-crh = %{version}-%{release}
Requires: %{name}-langpack-cs = %{version}-%{release}
Requires: %{name}-langpack-csb = %{version}-%{release}
Requires: %{name}-langpack-cv = %{version}-%{release}
Requires: %{name}-langpack-cy = %{version}-%{release}
Requires: %{name}-langpack-da = %{version}-%{release}
Requires: %{name}-langpack-de = %{version}-%{release}
Requires: %{name}-langpack-doi = %{version}-%{release}
Requires: %{name}-langpack-dv = %{version}-%{release}
Requires: %{name}-langpack-dz = %{version}-%{release}
Requires: %{name}-langpack-el = %{version}-%{release}
Requires: %{name}-langpack-en = %{version}-%{release}
Requires: %{name}-langpack-eo = %{version}-%{release}
Requires: %{name}-langpack-es = %{version}-%{release}
Requires: %{name}-langpack-et = %{version}-%{release}
Requires: %{name}-langpack-eu = %{version}-%{release}
Requires: %{name}-langpack-fa = %{version}-%{release}
Requires: %{name}-langpack-ff = %{version}-%{release}
Requires: %{name}-langpack-fi = %{version}-%{release}
Requires: %{name}-langpack-fil = %{version}-%{release}
Requires: %{name}-langpack-fo = %{version}-%{release}
Requires: %{name}-langpack-fr = %{version}-%{release}
Requires: %{name}-langpack-fur = %{version}-%{release}
Requires: %{name}-langpack-fy = %{version}-%{release}
Requires: %{name}-langpack-ga = %{version}-%{release}
Requires: %{name}-langpack-gd = %{version}-%{release}
Requires: %{name}-langpack-gez = %{version}-%{release}
Requires: %{name}-langpack-gl = %{version}-%{release}
Requires: %{name}-langpack-gu = %{version}-%{release}
Requires: %{name}-langpack-gv = %{version}-%{release}
Requires: %{name}-langpack-ha = %{version}-%{release}
Requires: %{name}-langpack-hak = %{version}-%{release}
Requires: %{name}-langpack-he = %{version}-%{release}
Requires: %{name}-langpack-hi = %{version}-%{release}
Requires: %{name}-langpack-hne = %{version}-%{release}
Requires: %{name}-langpack-hr = %{version}-%{release}
Requires: %{name}-langpack-hsb = %{version}-%{release}
Requires: %{name}-langpack-ht = %{version}-%{release}
Requires: %{name}-langpack-hu = %{version}-%{release}
Requires: %{name}-langpack-hy = %{version}-%{release}
Requires: %{name}-langpack-ia = %{version}-%{release}
Requires: %{name}-langpack-id = %{version}-%{release}
Requires: %{name}-langpack-ig = %{version}-%{release}
Requires: %{name}-langpack-ik = %{version}-%{release}
Requires: %{name}-langpack-is = %{version}-%{release}
Requires: %{name}-langpack-it = %{version}-%{release}
Requires: %{name}-langpack-iu = %{version}-%{release}
Requires: %{name}-langpack-iw = %{version}-%{release}
Requires: %{name}-langpack-ja = %{version}-%{release}
Requires: %{name}-langpack-ka = %{version}-%{release}
Requires: %{name}-langpack-kk = %{version}-%{release}
Requires: %{name}-langpack-kl = %{version}-%{release}
Requires: %{name}-langpack-km = %{version}-%{release}
Requires: %{name}-langpack-kn = %{version}-%{release}
Requires: %{name}-langpack-ko = %{version}-%{release}
Requires: %{name}-langpack-kok = %{version}-%{release}
Requires: %{name}-langpack-ks = %{version}-%{release}
Requires: %{name}-langpack-ku = %{version}-%{release}
Requires: %{name}-langpack-kw = %{version}-%{release}
Requires: %{name}-langpack-ky = %{version}-%{release}
Requires: %{name}-langpack-lb = %{version}-%{release}
Requires: %{name}-langpack-lg = %{version}-%{release}
Requires: %{name}-langpack-li = %{version}-%{release}
Requires: %{name}-langpack-lij = %{version}-%{release}
Requires: %{name}-langpack-lo = %{version}-%{release}
Requires: %{name}-langpack-lt = %{version}-%{release}
Requires: %{name}-langpack-lv = %{version}-%{release}
Requires: %{name}-langpack-lzh = %{version}-%{release}
Requires: %{name}-langpack-mag = %{version}-%{release}
Requires: %{name}-langpack-mai = %{version}-%{release}
Requires: %{name}-langpack-mg = %{version}-%{release}
Requires: %{name}-langpack-mhr = %{version}-%{release}
Requires: %{name}-langpack-mi = %{version}-%{release}
Requires: %{name}-langpack-mk = %{version}-%{release}
Requires: %{name}-langpack-ml = %{version}-%{release}
Requires: %{name}-langpack-mn = %{version}-%{release}
Requires: %{name}-langpack-mni = %{version}-%{release}
Requires: %{name}-langpack-mr = %{version}-%{release}
Requires: %{name}-langpack-ms = %{version}-%{release}
Requires: %{name}-langpack-mt = %{version}-%{release}
Requires: %{name}-langpack-my = %{version}-%{release}
Requires: %{name}-langpack-nan = %{version}-%{release}
Requires: %{name}-langpack-nb = %{version}-%{release}
Requires: %{name}-langpack-nds = %{version}-%{release}
Requires: %{name}-langpack-ne = %{version}-%{release}
Requires: %{name}-langpack-nhn = %{version}-%{release}
Requires: %{name}-langpack-niu = %{version}-%{release}
Requires: %{name}-langpack-nl = %{version}-%{release}
Requires: %{name}-langpack-nn = %{version}-%{release}
Requires: %{name}-langpack-nr = %{version}-%{release}
Requires: %{name}-langpack-nso = %{version}-%{release}
Requires: %{name}-langpack-oc = %{version}-%{release}
Requires: %{name}-langpack-om = %{version}-%{release}
Requires: %{name}-langpack-or = %{version}-%{release}
Requires: %{name}-langpack-os = %{version}-%{release}
Requires: %{name}-langpack-pa = %{version}-%{release}
Requires: %{name}-langpack-pap = %{version}-%{release}
Requires: %{name}-langpack-pl = %{version}-%{release}
Requires: %{name}-langpack-ps = %{version}-%{release}
Requires: %{name}-langpack-pt = %{version}-%{release}
Requires: %{name}-langpack-quz = %{version}-%{release}
Requires: %{name}-langpack-raj = %{version}-%{release}
Requires: %{name}-langpack-ro = %{version}-%{release}
Requires: %{name}-langpack-ru = %{version}-%{release}
Requires: %{name}-langpack-rw = %{version}-%{release}
Requires: %{name}-langpack-sa = %{version}-%{release}
Requires: %{name}-langpack-sat = %{version}-%{release}
Requires: %{name}-langpack-sc = %{version}-%{release}
Requires: %{name}-langpack-sd = %{version}-%{release}
Requires: %{name}-langpack-se = %{version}-%{release}
Requires: %{name}-langpack-shs = %{version}-%{release}
Requires: %{name}-langpack-si = %{version}-%{release}
Requires: %{name}-langpack-sid = %{version}-%{release}
Requires: %{name}-langpack-sk = %{version}-%{release}
Requires: %{name}-langpack-sl = %{version}-%{release}
Requires: %{name}-langpack-so = %{version}-%{release}
Requires: %{name}-langpack-sq = %{version}-%{release}
Requires: %{name}-langpack-sr = %{version}-%{release}
Requires: %{name}-langpack-ss = %{version}-%{release}
Requires: %{name}-langpack-st = %{version}-%{release}
Requires: %{name}-langpack-sv = %{version}-%{release}
Requires: %{name}-langpack-sw = %{version}-%{release}
Requires: %{name}-langpack-szl = %{version}-%{release}
Requires: %{name}-langpack-ta = %{version}-%{release}
Requires: %{name}-langpack-tcy = %{version}-%{release}
Requires: %{name}-langpack-te = %{version}-%{release}
Requires: %{name}-langpack-tg = %{version}-%{release}
Requires: %{name}-langpack-th = %{version}-%{release}
Requires: %{name}-langpack-the = %{version}-%{release}
Requires: %{name}-langpack-ti = %{version}-%{release}
Requires: %{name}-langpack-tig = %{version}-%{release}
Requires: %{name}-langpack-tk = %{version}-%{release}
Requires: %{name}-langpack-tl = %{version}-%{release}
Requires: %{name}-langpack-tn = %{version}-%{release}
Requires: %{name}-langpack-tr = %{version}-%{release}
Requires: %{name}-langpack-ts = %{version}-%{release}
Requires: %{name}-langpack-tt = %{version}-%{release}
Requires: %{name}-langpack-ug = %{version}-%{release}
Requires: %{name}-langpack-uk = %{version}-%{release}
Requires: %{name}-langpack-unm = %{version}-%{release}
Requires: %{name}-langpack-ur = %{version}-%{release}
Requires: %{name}-langpack-uz = %{version}-%{release}
Requires: %{name}-langpack-ve = %{version}-%{release}
Requires: %{name}-langpack-vi = %{version}-%{release}
Requires: %{name}-langpack-wa = %{version}-%{release}
Requires: %{name}-langpack-wae = %{version}-%{release}
Requires: %{name}-langpack-wal = %{version}-%{release}
Requires: %{name}-langpack-wo = %{version}-%{release}
Requires: %{name}-langpack-xh = %{version}-%{release}
Requires: %{name}-langpack-yi = %{version}-%{release}
Requires: %{name}-langpack-yo = %{version}-%{release}
Requires: %{name}-langpack-yue = %{version}-%{release}
Requires: %{name}-langpack-zh = %{version}-%{release}
Requires: %{name}-langpack-zu = %{version}-%{release}
%description all-langpacks %description all-langpacks
Meta package to require all langpacks Meta package to require all langpacks
%ifnarch %{auxarches}
%files all-langpacks %files all-langpacks
%endif
############################################################################## ##############################################################################
# glibc "nscd" sub-package # glibc "nscd" sub-package
@ -2329,8 +2173,8 @@ rm -f *.filelist*
%endif %endif
%changelog %changelog
* Sun Jan 17 2016 Mike FABIAN <mfabian@redhat.com> - 2.22.90-51 * Sun Jan 17 2016 Mike FABIAN <mfabian@redhat.com> - 2.22.90-52
- Testing 51 - Testing 55
* Wed Jan 13 2016 Carlos O'Donell <carlos@redhat.com> - 2.22.90-29 * Wed Jan 13 2016 Carlos O'Donell <carlos@redhat.com> - 2.22.90-29
- New pthread_barrier algorithm with improved standards compliance. - New pthread_barrier algorithm with improved standards compliance.