I have a _service file as shown below, I want it to download openmoji-12.1.0.
However, the content of the file after download I found is 12.2.0.
How do I make it download the 12.1.0?
Thanks.
<services>
<service mode="localonly" name="obs_scm">
<param name="url">git://github.com/hfg-gmuend/openmoji.git</param>
<param name="scm">git</param>
<param name="versionformat">12.1.0</param>
</service>
<service mode="localonly" name="tar" />
<service mode="localonly" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="localonly" name="set_version" />
</services>
Hi
Add the revision/tag
<param name="revision">12.1.0</param>
Thanks.
Another question, there is many other files include the source code.
Instead of downloading the source I want to download CozetteVector.otf instead.
I tried
<param name="filename">CozetteVector.otf</param>
But it just rename the source code file and not download the file I want. Thanks.https://i.imgur.com/DPveFOT.png
Hi
That’s a build time font? What about https://github.com/slavfox/Cozette
Build time font?
The font in my screenshot is GitHub - slavfox/Cozette: A bitmap programming font optimized for coziness 💜 as you linked.
My question is how to make _service download the .otf or .ttf instead of the default source code in the github repo?
I managed to download the CozetteVector.otf file with <service name=“download_files”>
<services>
<service mode="localonly" name="obs_scm">
<param name="url">git://github.com/slavfox/Cozette.git</param>
<param name="scm">git</param>
<param name="revision">7882aee</param>
<param name="versionprefix">1.4.0+git</param>
<param name="versionformat">%ct.%h</param>
</service>
<service mode="localonly" name="tar" />
<service mode="localonly" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="localonly" name="set_version" />
<service mode="localonly" name="download_files" />
<param name="versionprefix">1.4.0+git</param>
</services>
The files in directory are shown below.
ls
Cozette cozette-fonts.changes CozetteVector.otf
Cozette-1.4.0+git.1581781581.7882aee.obscpio cozette-fonts.spec _service
Cozette-1.4.0+git.1581781581.7882aee.tar.xz Cozette.obsinfo
But how do I take CozetteVector.otf and put it in %{_ttfontsdir}?
The
%reconfigure_fonts_prereq
%description
A bitmap font with great coverage of all the glyphs
that might encounter in the terminal.
%prep
%setup -q -n %{fontname}-%{version}
%setup -q -n CozetteVector.otf
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 *.otf %{buildroot}%{_ttfontsdir}/
%reconfigure_fonts_scriptlets
%files
%{_ttfontsdir}
%license LICENSE
%doc CHANGELOG.md README.md
%changelog
It is looking for CozetteVector.otf inside the archive source file which of course does not exist because I download it separately.
2s] + cd CozetteVector.otf
2s] /var/tmp/rpm-tmp.x9neir: line 44: cd: CozetteVector.otf: No such file or directory
How do I make it recognized my CozetteVector.otf outside of the .tar.xz?
Complete spec file shown below.
#
# spec file for package cozette-fonts
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
%define ttf_fontdir %{_datadir}/fonts/truetype
%define fontname Cozette
%define opentypefont CozetteVector
%define fontversion 1.4.0
Name: cozette-fonts
Version: 1.4.0+git.1581781581.7882aee
Release: 0
Summary: A bitmap programming font
License: MIT
Group: System/X11/Fonts
URL: https://github.com/slavfox/Cozette
Source0: Cozette-%{version}.tar.xz
Source1: %{url}/releases/download/v.%{fontversion}/CozetteVector.otf
BuildRequires: %{suseconfig_fonts_prereq}
BuildRequires: fontpackages-devel
BuildArch: noarch
%reconfigure_fonts_prereq
%description
A bitmap font with great coverage of all the glyphs
that might encounter in the terminal.
%prep
%setup -q -n %{fontname}-%{version}
%setup -q -n CozetteVector.otf
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 *.otf %{buildroot}%{_ttfontsdir}/
%reconfigure_fonts_scriptlets
%files
%{_ttfontsdir}
%license LICENSE
%doc CHANGELOG.md README.md
%changelog
Hi
Your not building the font? It’s a binary blob…
The following does everything, create directory etc
install -Dm0644 %{S:1} %{buildroot}%{_ttfontsdir}/CozetteVector.otf
I fix it
Just do this
%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_ttfontsdir}/