c5be565
# This template shows how to package multiple source archives using the
c5be565
# forgemeta macro.
c5be565
#
c5be565
# PACKAGING MULTIPLE PROJECT ARCHIVES IN A SINGLE SPEC IS DISCOURAGED. IT OFTEN
c5be565
# REQUIRES ERROR-INDUCING VERSIONNING DECISIONS. In rpm, versioning is not an
c5be565
# administrative decoration. Versioning controls the upgrade logic. If upstream
c5be565
# deemed necessary to release a project through multiple archives, mirror its
c5be565
# decision using multiple spec files. That will be safer, simpler, and
c5be565
# ultimately less work.
c5be565
#
c5be565
# For more explanations on forgemeta, read the forgemeta-release template.
c5be565
#
c5be565
# Start by declaring the characteristics of each source using a	number-suffixed
c5be565
# variable block:
c5be565
#  – no suffix and zero suffix blocks are aliases
c5be565
#  – they are “special” and identify the main source archive
c5be565
#  — they use Version: to identify a release
c5be565
#  – other blocks use a version<number> variable for the same need
c5be565
#  – the syntax is otherwise identical to single archive mode; see the various
c5be565
#    forge templates for examples.
c5be565
#
c5be565
# Main archive. In this example we package a full release
c5be565
%global forgeurl0 
c5be565
Version:          
c5be565
c5be565
# Second archive.
c5be565
%global forgeurl1 
c5be565
%global version1  
c5be565
c5be565
# Third archive. This time a tag. Continue as necessary.
c5be565
%global forgeurl2 
c5be565
%global tag2      
c5be565
c5be565
#  – use the “-a” flag to process all the source archives in a single pass
c5be565
#  – use     “-z <number>” to process only the declaration block suffixed with
c5be565
#    <number>
4e3fdf2
#  — without “-a” of “-z <number>” only the main archive is processed
c5be565
#  – use the “-i” flag to display the variables forgemeta reads and sets
c5be565
#  – use the “-v” flag if you want verbose processing
c5be565
#  – remove  “-i” and “-v” before commit
c5be565
%forgemeta -a
c5be565
c5be565
# The following lines use variables computed by forgemeta as default values.
c5be565
# You can replace them with manual definitions.
c5be565
# Release ordering is controlled by the packager with x%{?dist}/0.x%{?dist}
c5be565
# numbers chains.
c5be565
Name:    
c5be565
Release: 1%{?dist}
c5be565
Summary: 
4e3fdf2
URL:     %{forgeurl0}
c5be565
# https://github.com/rpm-software-management/rpm/issues/539
c5be565
Source0: %{forgesource0}
c5be565
Source1: %{forgesource1}
c5be565
Source2: %{forgesource2}
c5be565
%description
c5be565
c5be565
c5be565
%prep
c5be565
#  – use the “-a” flag to process all the source archives in a single pass
c5be565
#  – use     “-z <number>” to process only the declaration block suffixed with
c5be565
#    <number>
c5be565
#  — without “-a” of “-z <number>” only the main archive is processed
c5be565
#  – an autosetup wrapper, forgeautosetup, is also provided
c5be565
#  – forgeautosetup does not understand “-a”
c5be565
#  – use the “-v” flag if you want verbose processing; remove it before commit
c5be565
#  – call forgesetup/autosetup directly if you do not like the result
c5be565
%forgesetup -a
c5be565
#
c5be565
# After this point the archive extraction is done. forgemeta is no longer used.
c5be565
c5be565
%build
c5be565
c5be565
%install
c5be565
c5be565
%check
c5be565
c5be565
%files
c5be565
%license 
c5be565
%doc 
c5be565
c5be565
%changelog