Automatic virtual provides for RPM macros?
by Miro Hrončok
Hello,
today at Nest, somebody said "unfortunately, there is no way to tell what
package to install to get a particular RPM macro".
I think that having an RPM provides generator for "rpm-macro(__python3)" or
similar should be a fairly simple exercise.
Would you folks consider that useful?
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
2 months, 3 weeks
RPM-level auto release and changelog bumping - Fedora 33 System-Wide Change proposal
by Ben Cotton
https://fedoraproject.org/wiki/Changes/rpm_level_auto_release_and_changel...
== Summary ==
redhat-rpm-config will be updated so users of the auto framework get
automated release and changelog bumping.
== Owner ==
* Name: [[User:nim| Nicolas Mailhot]]
* Email: <nicolas.mailhot at laposte.net>
== Detailed Description ==
This is a system-wide change because all packages build with
redhat-rpm-config, but it only concerns packages that opted to use
this part of redhat-rpm-config (auto framework).
The change will make those packages auto-bump and auto-changelog at
the rpm level, in an infrastructure-independent way.
== Benefit to Fedora ==
Autobumping removes a huge packager shore and makes timestamping in
changelogs more reliable.
== Scope ==
* Proposal owners: The feature is coded and works at the rpm level.
Unfortunately, mock filters away the srpms containing the bump state,
so it does not work in upper layers.
* Other developers: The feature requires buy-in by mock developers
(and probably koji developers) to lift the restrictions that block it
above the rpm level. Also, it requires a mechanism to pass the user
name and email that will be used in bumped changelogs (defining two
variables in ~/.rpmmacros is sufficient at rpm level)
* Mock issue: https://github.com/rpm-software-management/mock/issues/599
* Release engineering: https://pagure.io/releng/issue/9567
* Policies and guidelines: maybe eventually if things work out on the
technical level
* FPC issue: https://pagure.io/packaging-committee/issue/998
* Trademark approval: N/A (not needed for this Change)
== Upgrade/compatibility impact ==
This is a pure build tooling update, it changes how things are built
not what is built.
== How To Test ==
A redhat-rpm-config packages with the changes and some example
packages are available in
https://copr.fedorainfracloud.org/coprs/nim/refactoring-forge-patches-aut...
Since the mock/copr layer is currently blocking the feature, you need
to install the redhat-rpm-config and forge macro packages available in
this repo locally. Afterwards you can take any of the example packages
in the repo and rebuild them with rpmbuild -ba to your heart content,
and see the releases bump and the changelogs being updated
accordingly.
To get beautiful changelogs, you also need to add
<pre>
%buildsys_name Your name
%buildsys_email Your email
</pre>
in ~/.rpmmacros
== User Experience ==
N/A Packager experience change only
== Dependencies ==
The change is a spin-off of
https://fedoraproject.org/wiki/Changes/Patches_in_Forge_macros_-_Auto_mac...
Therefore, it depends on the success of that other change and will
probably need rebasing if the code in this other change evolves during
the redhat-rpm-config merge.
It also depends on mock / copr/ koji buy-in and changes, that may add
their own requirements.
== Contingency Plan ==
There is no contingency plan because the change will happen or not at all.
== Documentation ==
There is as much documentation as the average redhat-rpm-config change
(ie comments in the macro files themselves)
== Release Notes ==
N/A Packager productivity change only
--
Ben Cotton
He / Him / His
Senior Program Manager, Fedora & CentOS Stream
Red Hat
TZ=America/Indiana/Indianapolis
9 months, 3 weeks
Fwd: Converting montserrat spec to new version
by Sérgio Basto
Hi Luya
I'm sending this email to packaging Mailing List ...
I'm also facing problems with some fonts packages,
see this error [3].
How I convert %_font_pkg ? from
https://pkgs.rpmfusion.org/cgit/nonfree/lpf-mscore-fonts.git/tree/mscore-...
Thank you .
[3]
warning: This package uses obsolete macros that will go away soon.
Please convert to the spec templates provided by fonts-rpm-templates!
-------- Forwarded Message --------
From: Luya Tshimbalanga <luya(a)fedoraproject.org>
Reply-To: Development discussions related to Fedora
<devel(a)lists.fedoraproject.org>
To: Development discussions related to Fedora
<devel(a)lists.fedoraproject.org>
Subject: Converting montserrat spec to new version
Date: Fri, 8 Oct 2021 22:07:59 -0700
Hello team,
I started converting the current julietaula-montserrat-fonts spec to
the
new version [1] using ibm-plex-fonts as template [2], but struggled to
understand the functionality.
Here is an example below:
--
BuildArch: noarch
%global fontpkgname julietaula-montserrat
%global fontconf 61-%{fontpkgname}
# Override versioning to sync with upstream
Epoch: 1
Version: 7.222
Release: %autorelease
URL: https://github.com/JulietaUla/Montserrat
%global foundry julietaula
%global fontlicense OFL
%global fontlicenses OFL.txt
%global fontdocsex %{fontlicenses}
%global fontfamily1 Montserrat
%global fontsummary1 Sans-serif typeface inspired from
Montserrat area
%global fonts1 *.otf
%global fontdescription1 %{expand:
A typeface inspired by signs around the Montserrat area \
of Buenos Aires, Argentina.}
%global fontfamily2 MontserratAlternates
%global fontsummary2 Sans-serif typeface inspired from
Montserrat area
%global fonts2 *.otf
%global fontdescription1 %{expand:
A typeface inspired by signs around the Montserrat area \
of Buenos Aires, Argentina.}
Source0: %{url}/archive/v%{version}.tar.gz#/Montserrat-
%{version}.tar.gz
Source1: %{name}-fontconfig.conf
Source2: %{name}-alternates-fontconfig.conf
Source3: %{fontpkgname}.metainfo.xml
Source4: %{fontpkgname}-alternates.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
BuildRequires: libappstream-glib
Requires: fontpackages-filesystem
# Reset the old date based versioning
Obsoletes: %{name} < 1:%{version}-%{release}
%description
%{common_description}
%package common
Summary: Common files for %{name}
Requires: fontpackages-filesystem
%description common
%{common_description}
This package consists of files used by other %{name} packages.
%package -n %{fontpkgname}
Summary: Base version of the Montserrat area inspired typeface
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%description -n %{fo
As noticed, two subpackaged webfonts are listed because they are
required from the landing page for Fedora Apache. I
ntpkgname}
%{common_description}
This package provide the base fonts.
%package -n %{fontpkgname}-alternates-fonts
Summary: A Montserrat area inspired typeface family alternate
version
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%description -n %{fontpkgname}-alternates-fonts
%{common_description}
This package provide an alternate version of the fonts.
%package -n %{fontpkgname}-base-web-fonts
Summary: Web fonts version of the Montserrat area inspired typeface
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%description -n %{fontpkgname}-base-web-fonts
%{common_description}
This package include essential web fonts.
%package -n %{fontpkgname}-extra-web-fonts
Summary: Extra web fonts version of the Montserrat area inspired
typeface
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%description -n %{fontpkgname}-extra-web-fonts
%{common_description}
This package includes extra web fonts.
%prep
%autosetup -c
%build
%fontbuild
%install
%fontinstall
install -m 0644 -p Montserrat-%{version}/fonts/webfonts/*.woff
%{buildroot}%{_fontdir}
install -m 0644 -p Montserrat-%{version}/fonts/webfonts/*.woff2
%{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
# Install Montserrat fonts
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
# Install MontserratAlternates fonts
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-alternates.conf
for fconf in %{fontconf}.conf \
%{fontconf}-alternates.conf ; do
ln -s %{_fontconfig_templatedir}/$fconf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
# Add AppStream metadata file, Repeat for every font family
install -Dm 0644 -p %{SOURCE3} \
%{buildroot}%{_datadir}/metainfo/%{fontpkgname}.metainfo.xml
install -Dm 0644 -p %{SOURCE4} \
%{buildroot}%{_datadir}/metainfo/%{fontpkgname}-alternates.metainfo.xml
%check
appstream-util validate-relax --nonet
%{buildroot}/%{_datadir}/metainfo/%{fontpkgname}.metainfo.xml
appstream-util validate-relax --nonet
%{buildroot}/%{_datadir}/metainfo/%{fontpkgname}-
alternates.metainfo.xml
%_font_pkg -f %{fontconf}.conf Montserrat-*.otf
%{_datadir}/metainfo/%{fontpkgname}.metainfo.xml
%_font_pkg -n alternates -f %{fontconf}-alternates.conf
MontserratAlternates-*.otf
%{_datadir}/metainfo/%{fontpkgname}-alternates.metainfo.xml
%_font_pkg -n base-web
Montserrat-{Regular,Light,Bold,ExtraBold,Italic}.{woff,woff2}
%_font_pkg -n extra-web Montserrat*.{woff,woff2}
%files common
%license Montserrat-%{version}/OFL.txt
%doc Montserrat-%{version}/README.md
%changelog
%autochangelog
----
As noticed, two subpackaged webfonts are listed because they are
required from the landing page for Fedora Apache. The challenge is to
keep these lines with the new spec version. Pointers welcome.
Thanks in advance.
Reference:
[1]
https://docs.fedoraproject.org/en-US/packaging-guidelines/FontsPolicy/
[2]
https://src.fedoraproject.org/rpms/ibm-plex-fonts/blob/rawhide/f/ibm-plex...
--
Luya Tshimbalanga
Fedora Design Team
Fedora Design Suite maintainer
_______________________________________________
devel mailing list -- devel(a)lists.fedoraproject.org
To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
--
Sérgio M. B.
1 year, 7 months
Announcing LLVM Snapshot Packages for Fedora Linux
by Konrad Kleine
Dear Fedora packagers, developers and users,
we have some good news for you:
We are beginning to build nightly snapshot packages of LLVM for the latest
versions of Fedora Linux (currently 34, 35 and rawhide) for a growing list
of
architectures.
You can grab them here:
https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/llvm-snapshots/
Feel free to enable the copr repository with
$ dnf copr enable @fedora-llvm-team/llvm-snapshots
and then install the i.e. latest clang with
$ dnf install clang
Beware, that a snapshot release of LLVM is probably more unstable than a
regular release! If you run into a problem, I would kindly ask you to wait
and try it again with the next snapshot.
We hope you enjoy this peek into the next version of LLVM that you can now
try without too much hassle and without compiling it every day on your own.
Regards,
Konrad Kleine
Senior Software Engineer, Platform Tools
Red Hat <https://www.redhat.com>
kkleine(a)redhat.com
M: +49(0)151/21000244
D87A 77F4 2A58 C72D 12A7 203B C0A0 2C32 BCB7 3099
<https://www.redhat.com>
1 year, 7 months