File manpages-l10n.spec of Package manpages-l10n
#
# spec file for package manpages-l10n
#
# Copyright (c) 2025 Antoine Belvire <antoine.belvire@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: manpages-l10n
Version: 4.27.0.git20250909
Release: 1.0
Summary: Translation of man pages
License: GPL-3.0-only
URL: https://manpages-l10n-team.pages.debian.net/manpages-l10n
Source0: https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/archive/v%{version}/%{name}.tar.gz
Source1: macros.l10n
# PATCH-FIX-UPSTREAM manpages-l10n-4.15.0-fix-links.patch -- Fix incorrect links in man2 (boo#1202798)
Patch1: manpages-l10n-4.15.0-fix-links.patch
BuildRequires: bzip2
BuildRequires: cpio
BuildRequires: findutils
BuildRequires: info
BuildRequires: less
BuildRequires: man-pages
BuildRequires: nfs-utils
BuildRequires: parted
BuildRequires: po4a
BuildRequires: systemd
BuildRequires: tar
BuildRequires: util-linux
BuildRequires: xz
BuildRequires: automake
BuildArch: noarch
%{load:%{SOURCE1}}
%description
This package provides translations of man pages in multiple languages.
%man_lang_package cs Czech
%man_lang_package da Danish
%man_lang_package de German
%man_lang_package el Greek
%man_lang_package es Spanish
%man_lang_package fi Finnish
%man_lang_package hu Hungarian
%man_lang_package id Indonesian
%man_lang_package it Italian
%man_lang_package ko Korean
%man_lang_package mk Macedonian
%man_lang_package nb Norwegian
%man_lang_package nl Dutch
%man_lang_package pl Polish
%man_lang_package pt_BR %{quote:Brazilian Portuguese}
%man_lang_package ro Romanian
%man_lang_package ru Russian
%man_lang_package sr Serbian
%man_lang_package sv Swedish
%man_lang_package uk Ukrainian
%man_lang_package vi Vietnamese
# French translations used to be splitted into a main and an extra package.
# Let's obsolete the extra package.
%man_lang_package fr French -o %{quote:man-pages-fr-extra <= 20151231}
%prep
%setup -q -n %{name}
%patch -P 1 -p1
%build
%configure --enable-distribution=%{distribution_id}
%make_build
%install
%make_install
# net-tools translations conflict on all supported RPM-based distributions
# https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/issues/8
rm -vf %{buildroot}%{_mandir}/de/man5/ethers.5*
rm -vf %{buildroot}%{_mandir}/de/man1/dvipdf*
rm -vf %{buildroot}%{_mandir}/de/man1/gsnd.1*
rm -vf %{buildroot}%{_mandir}/de/man1/pdf2dsc.1*
rm -vf %{buildroot}%{_mandir}/de/man1/pdf2ps.1*
rm -vf %{buildroot}%{_mandir}/de/man1/printafm.1*
rm -vf %{buildroot}%{_mandir}/de/man1/ps2ascii.1*
rm -vf %{buildroot}%{_mandir}/de/man1/ps2pdf.1*
rm -vf %{buildroot}%{_mandir}/de/man1/ps2ps.1*
%changelog