From bedd4c3fce6fcf4410fb99be7c94a91ebce4d4c6 Mon Sep 17 00:00:00 2001 From: Robin Groves Date: Sat, 10 Oct 2026 02:10:15 -0400 Subject: [PATCH 01/52] feat(factory): build the GNOME stack against CentOS Stream 10 bluefin-lts is built on CentOS Stream 10, which ships GNOME 47. The GNOME 50 stack has come from a third-party COPR project. That is not a durable answer for a release line: its contents, its rebuild policy and its availability are all outside this repository's control. factory/ builds the stack here instead, from recipes we control, and publishes it as a signed OCI repository image the Containerfile copies in. 77 recipes are seeded from the working c10s-gnome-50 repository, so the EL10 adaptations already exist and the version bump to GNOME 51 is the remaining work rather than the port. Design decisions: - Packit is the SRPM gate, not the builder. Copr has no CentOS Stream 10 chroot -- EL10 builds there happen in epel-10 or alma-kitten+epel-10, a different ABI from the c10s base this image ships on. .packit.yaml therefore carries no `jobs:` section; binaries are built by factory-build.yml against the digest-pinned c10s root. - Build order is solved from real BuildRequires parsed by rpmspec in the build root, never hand-assigned. A hand-assigned stage hides a new edge until a build fails downstream, and a stage no longer needed still serializes work. - No build downloads anything. config/upstream-sources.json pins the resolved upstream URL and SHA-512 for 75 of 77 recipes; the source is verified before the build and again inside it. - Publication is incremental and gated on the consumer transaction: a failed package keeps its previous build, and the tag does not move unless what the image installs resolves against the candidate. Three things found while building this, worth not rediscovering: - `rpmbuild` with no spec argument globs the working directory, finds nothing in the build output directory, and exits 0 having written nothing. A green build producing no RPMs. Every invocation now names the spec explicitly, with an artifact guard behind it. - CRB ships disabled in c10s, and meson, ninja-build, wayland-devel and gcc++ live only there, so BuildRequires fail with "No matching package to install: meson" -- which reads as a missing package rather than a disabled repository. The requirement is declared in config/buildroot.yaml and asserted by validate.py. - The imported docbook-style-xsl spec carried an upstream typo, `%2F{%version}` with malformed braces, producing a URL that 404s. The digest check surfaced it rather than letting it build from something unexpected. Not done, stated rather than implied: - The recipes are the GNOME 50 set. The tooling is version-agnostic; moving to 51 is a version bump across the stack. - amd64 only. The image publishes arm64 as well, so its manifest cannot consume factory packages yet. - Builds are not hermetic. They run in the pinned container, which gives the right ABI but is not a build root in the sense mock means -- no build user, no isolation, no reset between packages -- and mock-core-configs ships no EL10 chroot. There is no build cache yet. - Nothing has been published to GHCR, so image-versions.yaml carries an empty gnome_packages digest. The image build detects that and falls back to the base image's GNOME rather than failing. Verified: `just factory-check` green; 53 unit tests; actionlint clean across all workflows; `just check` passes; and a real RPM built end to end against the pinned root (wayland-protocols-devel-1.47-2.el10.noarch.rpm). Not verified: `just unit-tests` and `pre-commit run --all-files` were not run, because bats and pre-commit are not installed in this environment. No image build or VM test was run. Assisted-by: Claude Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../actions/factory-load-buildroot/action.yml | 48 + .github/workflows/factory-build-stage.yml | 162 + .github/workflows/factory-build.yml | 377 ++ .../workflows/factory-packit-srpm-chunk.yml | 57 + .github/workflows/factory-packit-srpm.yml | 136 + .github/workflows/factory-publish.yml | 309 ++ .github/workflows/factory-validate.yml | 64 + .gitignore | 22 + .packit.yaml | 476 ++ .pre-commit-config.yaml | 17 + AGENTS.md | 24 + Containerfile | 19 + Justfile | 76 + build_scripts/build.sh | 15 + docs/skills/INDEX.md | 1 + docs/skills/factory/SKILL.md | 101 + factory/README.md | 145 + factory/config/buildroot.yaml | 39 + factory/config/factory-contract.json | 12 + factory/config/upstream-sources.json | 540 +++ factory/docs/architecture.md | 180 + .../packages/appstream/.factory-upstream.json | 13 + factory/packages/appstream/appstream.spec | 584 +++ ...yle-when-installing-catalog-metadata.patch | 23 + .../packages/autoconf/.factory-upstream.json | 13 + ...d-lmoldname-in-linker-flags-for-MinG.patch | 35 + .../autoconf/0001-Port-C11-test-to-C.patch | 43 + ...-to-the-on-disk-situation-after-auto.patch | 102 + ...-Invoke-autopoint-in-more-situations.patch | 159 + factory/packages/autoconf/autoconf-init.el | 16 + factory/packages/autoconf/autoconf.spec | 737 +++ factory/packages/autoconf/config.site | 29 + factory/packages/avahi/.factory-upstream.json | 13 + .../avahi/avahi-0.6.30-mono-libdir.patch | 50 + .../avahi/avahi-0.8-no_undefined.patch | 31 + .../avahi/avahi-0.9-CVE-2024-52615.patch | 224 + .../avahi/avahi-0.9-address-data-size.patch | 30 + factory/packages/avahi/avahi.spec | 1643 +++++++ .../blueprint-compiler/.factory-upstream.json | 13 + .../blueprint-compiler.spec | 149 + factory/packages/cairo/.factory-upstream.json | 13 + factory/packages/cairo/cairo-multilib.patch | 34 + factory/packages/cairo/cairo.spec | 159 + .../colord-gtk/.factory-upstream.json | 13 + factory/packages/colord-gtk/colord-gtk.spec | 72 + .../docbook-style-xsl/.factory-upstream.json | 13 + ...tyle-xsl-1.79.2-fix-gtk-doc-multilib.patch | 74 + ...style-xsl-non-recursive-string-subst.patch | 30 + .../docbook-style-xsl.Makefile | 52 + .../docbook-style-xsl/docbook-style-xsl.spec | 605 +++ .../docbook-xsl-list-item-body.patch | 110 + .../docbook-xsl-mandir.patch | 19 + .../docbook-xsl-marginleft.patch | 53 + .../docbook-xsl-newmethods.patch | 394 ++ ...docbook-xsl-non-constant-expressions.patch | 25 + .../docbook-xsl-pagesetup.patch | 281 ++ .../docbook-utils/.factory-upstream.json | 13 + factory/packages/docbook-utils/db2html | 59 + .../packages/docbook-utils/docbook-utils.spec | 570 +++ .../docbook-utils/docbook2man-spec.pl | 1564 +++++++ factory/packages/docbook-utils/gdp-both.dsl | 1061 +++++ .../el10-v2-buildflags/.factory-upstream.json | 13 + .../el10-v2-buildflags.spec | 19 + .../packages/flatpak/.factory-upstream.json | 13 + ...d-support-for-preinstalling-flatpaks.patch | 1859 ++++++++ ...-direct-installation-from-oci-images.patch | 4160 +++++++++++++++++ ...nable-collection-ids-for-oci-remotes.patch | 53 + ...hat.io-get-certificates-from-etc-pki.patch | 123 + ...-containers-certs-for-oci-registries.patch | 2003 ++++++++ ...n-to-flatpak-image-source-new-remote.patch | 104 + ...ideload-repositories-for-oci-remotes.patch | 1676 +++++++ factory/packages/flatpak/flatpak.spec | 921 ++++ .../packages/flatpak/flatpak.sysusers.conf | 1 + .../fontconfig/.factory-upstream.json | 13 + .../fontconfig/25-no-bitmap-fedora.conf | 44 + factory/packages/fontconfig/fc-cache | 4 + ...config-disable-network-required-test.patch | 113 + ...tconfig-drop-lang-from-pkgkit-format.patch | 12 + .../fontconfig/fontconfig-fix-crash.patch | 28 + .../fontconfig-lower-nonlatin-conf.patch | 42 + .../fontconfig/fontconfig-sleep-less.patch | 12 + factory/packages/fontconfig/fontconfig.spec | 1126 +++++ .../gdk-pixbuf2/.factory-upstream.json | 13 + factory/packages/gdk-pixbuf2/gdk-pixbuf2.spec | 135 + factory/packages/gdm/.factory-upstream.json | 13 + .../gdm/0001-Add-headless-session-files.patch | 223 + ...tup-being-disabled-by-distro-install.patch | 70 + ...ystem-dconf-databases-to-gdm-profile.patch | 24 + factory/packages/gdm/gdm.spec | 266 ++ factory/packages/gdm/gdm.sysusers | 1 + .../org.gnome.login-screen.gschema.override | 3 + .../packages/gi-docgen/.factory-upstream.json | 13 + factory/packages/gi-docgen/gi-docgen.spec | 51 + factory/packages/gjs/.factory-upstream.json | 13 + factory/packages/gjs/gjs.spec | 153 + factory/packages/glib2/.factory-upstream.json | 13 + factory/packages/glib2/default-terminal.patch | 33 + factory/packages/glib2/glib2.spec | 242 + factory/packages/glib2/gnutls-hmac.patch | 1047 +++++ .../packages/glycin/.factory-upstream.json | 13 + ...e-manifest-for-tests-workspace-membe.patch | 23 + ...ml_ng-with-equivalent-serde_yaml-dep.patch | 28 + factory/packages/glycin/glycin.spec | 365 ++ .../gnome-autoar/.factory-upstream.json | 13 + .../packages/gnome-autoar/gnome-autoar.spec | 195 + .../.factory-upstream.json | 13 + .../gnome-control-center.spec | 257 + .../gnome-desktop3/.factory-upstream.json | 13 + .../gnome-desktop3/gnome-desktop3.spec | 160 + .../.factory-upstream.json | 13 + .../gnome-initial-setup.spec | 159 + .../.factory-upstream.json | 13 + .../gnome-online-accounts.spec | 143 + .../gnome-session/.factory-upstream.json | 13 + ...t-grub-boot-flags-on-shutdown-reboot.patch | 40 + .../packages/gnome-session/gnome-session.spec | 124 + .../.factory-upstream.json | 13 + .../gnome-settings-daemon.spec | 249 + ...emon.plugins.housekeeping.gschema.override | 2 + ...ings-daemon.plugins.power.gschema.override | 5 + .../gnome-shell/.factory-upstream.json | 13 + ...Work-around-failing-fingerprint-auth.patch | 64 + .../gnome-shell-favourite-apps-firefox.patch | 9 + factory/packages/gnome-shell/gnome-shell.spec | 274 ++ .../gnome-user-share/.factory-upstream.json | 13 + .../gnome-user-share/gnome-user-share.spec | 117 + .../.factory-upstream.json | 13 + .../apply-gi-glib-compat.py | 62 + .../gnome50-el10-compat/gdm-gnome50.te | 29 + .../gnome50-el10-compat/gdm-userdb-connect.te | 29 + .../gnome50-el10-compat.spec | 189 + .../orca-autostart.desktop | 2 + .../gnome50-el10-compat/systemd-user.pam | 24 + .../gnome50-el10-compat/tuned-ppd-logging.te | 14 + .../.factory-upstream.json | 13 + .../gobject-introspection-bootstrap.spec | 88 + .../packages/graphviz/.factory-upstream.json | 13 + .../graphviz-12.0.0-gvpack-neato-static.patch | 15 + factory/packages/graphviz/graphviz.spec | 2005 ++++++++ .../.factory-upstream.json | 13 + .../gsettings-desktop-schemas.spec | 115 + ...me.desktop.interface.rhel.gschema.override | 4 + .../packages/gsound/.factory-upstream.json | 13 + factory/packages/gsound/gsound.spec | 63 + factory/packages/gtk4/.factory-upstream.json | 13 + ...01-gtkapplication-wayland-null-check.patch | 38 + factory/packages/gtk4/gtk4.spec | 338 ++ .../packages/harfbuzz/.factory-upstream.json | 13 + factory/packages/harfbuzz/harfbuzz.spec | 941 ++++ .../packages/highway/.factory-upstream.json | 13 + ...ng-19-20-21-also-allow-user-override.patch | 263 ++ ...eleased-clang-22-for-users-building-.patch | 36 + ...roken-on-Clang-22-msan-fail-on-svcnt.patch | 42 + factory/packages/highway/highway.spec | 202 + .../libadwaita/.factory-upstream.json | 13 + factory/packages/libadwaita/libadwaita.spec | 141 + .../libcanberra/.factory-upstream.json | 13 + factory/packages/libcanberra/libcanberra.spec | 108 + .../packages/libdecor/.factory-upstream.json | 13 + factory/packages/libdecor/libdecor.spec | 63 + .../libebur128/.factory-upstream.json | 13 + factory/packages/libebur128/libebur128.spec | 100 + factory/packages/libei/.factory-upstream.json | 13 + factory/packages/libei/libei.spec | 125 + .../packages/libgda/.factory-upstream.json | 13 + .../libgda/libgda-fix-build-order.patch | 13 + factory/packages/libgda/libgda.spec | 170 + factory/packages/libgda/mariadb.patch | 11 + factory/packages/libgda/signed-int.patch | 150 + .../packages/libgee/.factory-upstream.json | 13 + factory/packages/libgee/libgee.spec | 401 ++ .../packages/libgexiv2/.factory-upstream.json | 13 + ...ge-name-in-gir-file-to-have-0.16-suf.patch | 45 + factory/packages/libgexiv2/libgexiv2.spec | 439 ++ .../libglib-testing/.factory-upstream.json | 13 + .../libglib-testing/libglib-testing.spec | 64 + .../packages/libinput/.factory-upstream.json | 13 + factory/packages/libinput/libinput.spec | 1080 +++++ .../packages/libldac/.factory-upstream.json | 13 + factory/packages/libldac/libldac.spec | 140 + .../packages/libnotify/.factory-upstream.json | 13 + factory/packages/libnotify/libnotify.spec | 401 ++ .../packages/libsoup/.factory-upstream.json | 13 + ...bsoup-2.74.3-libxml2-2.12.0-includes.patch | 43 + factory/packages/libsoup/libsoup.spec | 1091 +++++ .../packages/libxcvt/.factory-upstream.json | 13 + factory/packages/libxcvt/libxcvt.spec | 103 + .../packages/libzip/.factory-upstream.json | 13 + factory/packages/libzip/libzip.spec | 425 ++ .../localsearch/.factory-upstream.json | 13 + factory/packages/localsearch/localsearch.spec | 212 + factory/packages/lzo/.factory-upstream.json | 13 + factory/packages/lzo/lzo-2.08-configure.patch | 24 + .../packages/lzo/lzo-2.08-rhbz1309225.patch | 14 + factory/packages/lzo/lzo.spec | 273 ++ .../malcontent/.factory-upstream.json | 13 + factory/packages/malcontent/malcontent.spec | 229 + factory/packages/meson/.factory-upstream.json | 13 + factory/packages/meson/meson.spec | 816 ++++ .../packages/mod_dnssd/.factory-upstream.json | 13 + .../mod_dnssd/mod_dnssd-0.6-httpd24.patch | 24 + .../packages/mod_dnssd/mod_dnssd.conf-httpd | 5 + factory/packages/mod_dnssd/mod_dnssd.spec | 183 + .../packages/mozjs140/.factory-upstream.json | 13 + ...b4b051dd539e0fbd5e08040870b3c712a846.patch | 24 + .../packages/mozjs140/D261512.1755672843.diff | 76 + factory/packages/mozjs140/copy-headers.patch | 38 + factory/packages/mozjs140/emitter.patch | 63 + factory/packages/mozjs140/fix-soname.patch | 26 + ...a-Write-command-output-to-our-stderr.patch | 44 + ...y-Decouple-from-Mozilla-build-system.patch | 29 + factory/packages/mozjs140/init_patch.patch | 28 + factory/packages/mozjs140/known_failures.txt | 26 + factory/packages/mozjs140/mozjs140.spec | 235 + .../spidermonkey_checks_disable.patch | 22 + .../tests-Use-native-TemporaryDirectory.patch | 65 + .../mozjs140/tests-increase-timeout.patch | 26 + .../packages/mutter/.factory-upstream.json | 13 + factory/packages/mutter/mutter.spec | 229 + .../packages/nautilus/.factory-upstream.json | 13 + .../packages/nautilus/default-terminal.patch | 13 + factory/packages/nautilus/nautilus.spec | 178 + factory/packages/orca/.factory-upstream.json | 13 + factory/packages/orca/orca.spec | 1026 ++++ factory/packages/pango/.factory-upstream.json | 13 + factory/packages/pango/pango.spec | 138 + .../packages/pipewire/.factory-upstream.json | 13 + factory/packages/pipewire/pipewire.spec | 1782 +++++++ factory/packages/pipewire/pipewire.sysusers | 2 + .../packages/ptyxis/.factory-upstream.json | 13 + .../org.gnome.Ptyxis.fedora.gschema.override | 3 + factory/packages/ptyxis/ptyxis.spec | 208 + .../python-dbusmock/.factory-upstream.json | 13 + .../python-dbusmock/python-dbusmock.spec | 457 ++ .../python-smartypants/.factory-upstream.json | 13 + ...Fix-regexps-and-tests-for-python3.12.patch | 113 + .../python-smartypants.spec | 170 + .../python-typogrify/.factory-upstream.json | 13 + .../python-typogrify/python-typogrify.spec | 141 + .../selinux-policy/.factory-upstream.json | 13 + .../packages/selinux-policy/Makefile.devel | 22 + .../selinux-policy/binsbin-convert.sh | 97 + .../selinux-policy/container-selinux.tgz | Bin 0 -> 15078 bytes .../packages/selinux-policy/macro-expander | 81 + .../selinux-policy/modules-minimum.lst | 50 + factory/packages/selinux-policy/rpm.macros | 193 + .../selinux-check-proper-disable.service | 15 + .../selinux-policy/selinux-policy-mls.conf | 1 + .../selinux-policy-targeted.conf | 1 + .../selinux-policy/selinux-policy.conf | 4 + .../selinux-policy/selinux-policy.spec | 1896 ++++++++ .../packages/selinux-policy/varrun-convert.sh | 95 + .../packages/shaderc/.factory-upstream.json | 13 + ...p-third-party-code-in-CMakeLists.txt.patch | 24 + .../shaderc/glslang_linker_flags.patch | 24 + factory/packages/shaderc/shaderc.spec | 289 ++ .../packages/simdutf/.factory-upstream.json | 13 + factory/packages/simdutf/simdutf.spec | 131 + .../source-highlight/.factory-upstream.json | 13 + ...49c9026cb772dc93fbe0947a252ef47127f4.patch | 42 + ...urce-highlight-bz2256374-lesspipe_sh.patch | 39 + .../source-highlight/source-highlight.spec | 467 ++ .../packages/sqlcipher/.factory-upstream.json | 13 + factory/packages/sqlcipher/sqlcipher.spec | 160 + factory/packages/tecla/.factory-upstream.json | 13 + factory/packages/tecla/tecla.spec | 71 + .../tinysparql/.factory-upstream.json | 13 + factory/packages/tinysparql/tinysparql.spec | 193 + .../packages/umockdev/.factory-upstream.json | 13 + factory/packages/umockdev/umockdev.spec | 393 ++ factory/packages/vala/.factory-upstream.json | 13 + .../vala/vala-warn-on-unknown-xml.patch | 121 + factory/packages/vala/vala.spec | 1147 +++++ .../packages/vte291/.factory-upstream.json | 13 + factory/packages/vte291/vte291.spec | 828 ++++ .../wayland-protocols/.factory-upstream.json | 13 + .../wayland-protocols/wayland-protocols.spec | 260 ++ .../.factory-upstream.json | 13 + .../xdg-desktop-portal-gnome.spec | 99 + .../xdg-desktop-portal/.factory-upstream.json | 13 + .../xdg-desktop-portal.spec | 154 + factory/system/install-factory-repo.sh | 32 + factory/tests/test_build_graph.py | 147 + factory/tests/test_import_srpm.py | 135 + factory/tests/test_publish_gate.py | 149 + factory/tools/build_graph.py | 227 + factory/tools/buildroot.py | 180 + factory/tools/extract_buildrequires.py | 105 + factory/tools/import_srpm.py | 496 ++ factory/tools/inventory.py | 124 + factory/tools/packit_source0.py | 141 + factory/tools/packit_workflow.py | 73 + factory/tools/publish_gate.py | 176 + factory/tools/rebuild_plan.py | 153 + factory/tools/render_packit_config.py | 108 + factory/tools/render_source_locks.py | 235 + factory/tools/seed_from_copr.py | 210 + factory/tools/source_pipeline.py | 219 + factory/tools/srpm_gate.py | 99 + factory/tools/validate.py | 245 + image-versions.yaml | 9 + tests/unit/factory_repo_test.bats | 83 + 302 files changed, 56397 insertions(+) create mode 100644 .github/actions/factory-load-buildroot/action.yml create mode 100644 .github/workflows/factory-build-stage.yml create mode 100644 .github/workflows/factory-build.yml create mode 100644 .github/workflows/factory-packit-srpm-chunk.yml create mode 100644 .github/workflows/factory-packit-srpm.yml create mode 100644 .github/workflows/factory-publish.yml create mode 100644 .github/workflows/factory-validate.yml create mode 100644 .packit.yaml create mode 100644 docs/skills/factory/SKILL.md create mode 100644 factory/README.md create mode 100644 factory/config/buildroot.yaml create mode 100644 factory/config/factory-contract.json create mode 100644 factory/config/upstream-sources.json create mode 100644 factory/docs/architecture.md create mode 100644 factory/packages/appstream/.factory-upstream.json create mode 100644 factory/packages/appstream/appstream.spec create mode 100644 factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch create mode 100644 factory/packages/autoconf/.factory-upstream.json create mode 100644 factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch create mode 100644 factory/packages/autoconf/0001-Port-C11-test-to-C.patch create mode 100644 factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch create mode 100644 factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch create mode 100644 factory/packages/autoconf/autoconf-init.el create mode 100644 factory/packages/autoconf/autoconf.spec create mode 100644 factory/packages/autoconf/config.site create mode 100644 factory/packages/avahi/.factory-upstream.json create mode 100644 factory/packages/avahi/avahi-0.6.30-mono-libdir.patch create mode 100644 factory/packages/avahi/avahi-0.8-no_undefined.patch create mode 100644 factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch create mode 100644 factory/packages/avahi/avahi-0.9-address-data-size.patch create mode 100644 factory/packages/avahi/avahi.spec create mode 100644 factory/packages/blueprint-compiler/.factory-upstream.json create mode 100644 factory/packages/blueprint-compiler/blueprint-compiler.spec create mode 100644 factory/packages/cairo/.factory-upstream.json create mode 100644 factory/packages/cairo/cairo-multilib.patch create mode 100644 factory/packages/cairo/cairo.spec create mode 100644 factory/packages/colord-gtk/.factory-upstream.json create mode 100644 factory/packages/colord-gtk/colord-gtk.spec create mode 100644 factory/packages/docbook-style-xsl/.factory-upstream.json create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile create mode 100644 factory/packages/docbook-style-xsl/docbook-style-xsl.spec create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch create mode 100644 factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch create mode 100644 factory/packages/docbook-utils/.factory-upstream.json create mode 100755 factory/packages/docbook-utils/db2html create mode 100644 factory/packages/docbook-utils/docbook-utils.spec create mode 100755 factory/packages/docbook-utils/docbook2man-spec.pl create mode 100644 factory/packages/docbook-utils/gdp-both.dsl create mode 100644 factory/packages/el10-v2-buildflags/.factory-upstream.json create mode 100644 factory/packages/el10-v2-buildflags/el10-v2-buildflags.spec create mode 100644 factory/packages/flatpak/.factory-upstream.json create mode 100644 factory/packages/flatpak/flatpak-add-support-for-preinstalling-flatpaks.patch create mode 100644 factory/packages/flatpak/flatpak-allow-direct-installation-from-oci-images.patch create mode 100644 factory/packages/flatpak/flatpak-enable-collection-ids-for-oci-remotes.patch create mode 100644 factory/packages/flatpak/flatpak-for-registry.redhat.io-get-certificates-from-etc-pki.patch create mode 100644 factory/packages/flatpak/flatpak-implement-etc-containers-certs-for-oci-registries.patch create mode 100644 factory/packages/flatpak/flatpak-pass-token-to-flatpak-image-source-new-remote.patch create mode 100644 factory/packages/flatpak/flatpak-support-sideload-repositories-for-oci-remotes.patch create mode 100644 factory/packages/flatpak/flatpak.spec create mode 100644 factory/packages/flatpak/flatpak.sysusers.conf create mode 100644 factory/packages/fontconfig/.factory-upstream.json create mode 100644 factory/packages/fontconfig/25-no-bitmap-fedora.conf create mode 100755 factory/packages/fontconfig/fc-cache create mode 100644 factory/packages/fontconfig/fontconfig-disable-network-required-test.patch create mode 100644 factory/packages/fontconfig/fontconfig-drop-lang-from-pkgkit-format.patch create mode 100644 factory/packages/fontconfig/fontconfig-fix-crash.patch create mode 100644 factory/packages/fontconfig/fontconfig-lower-nonlatin-conf.patch create mode 100644 factory/packages/fontconfig/fontconfig-sleep-less.patch create mode 100644 factory/packages/fontconfig/fontconfig.spec create mode 100644 factory/packages/gdk-pixbuf2/.factory-upstream.json create mode 100644 factory/packages/gdk-pixbuf2/gdk-pixbuf2.spec create mode 100644 factory/packages/gdm/.factory-upstream.json create mode 100644 factory/packages/gdm/0001-Add-headless-session-files.patch create mode 100644 factory/packages/gdm/0001-Honor-initial-setup-being-disabled-by-distro-install.patch create mode 100644 factory/packages/gdm/0001-data-add-system-dconf-databases-to-gdm-profile.patch create mode 100644 factory/packages/gdm/gdm.spec create mode 100644 factory/packages/gdm/gdm.sysusers create mode 100644 factory/packages/gdm/org.gnome.login-screen.gschema.override create mode 100644 factory/packages/gi-docgen/.factory-upstream.json create mode 100644 factory/packages/gi-docgen/gi-docgen.spec create mode 100644 factory/packages/gjs/.factory-upstream.json create mode 100644 factory/packages/gjs/gjs.spec create mode 100644 factory/packages/glib2/.factory-upstream.json create mode 100644 factory/packages/glib2/default-terminal.patch create mode 100644 factory/packages/glib2/glib2.spec create mode 100644 factory/packages/glib2/gnutls-hmac.patch create mode 100644 factory/packages/glycin/.factory-upstream.json create mode 100644 factory/packages/glycin/0001-fix-invalid-crate-manifest-for-tests-workspace-membe.patch create mode 100644 factory/packages/glycin/0002-Replace-serde_yaml_ng-with-equivalent-serde_yaml-dep.patch create mode 100644 factory/packages/glycin/glycin.spec create mode 100644 factory/packages/gnome-autoar/.factory-upstream.json create mode 100644 factory/packages/gnome-autoar/gnome-autoar.spec create mode 100644 factory/packages/gnome-control-center/.factory-upstream.json create mode 100644 factory/packages/gnome-control-center/gnome-control-center.spec create mode 100644 factory/packages/gnome-desktop3/.factory-upstream.json create mode 100644 factory/packages/gnome-desktop3/gnome-desktop3.spec create mode 100644 factory/packages/gnome-initial-setup/.factory-upstream.json create mode 100644 factory/packages/gnome-initial-setup/gnome-initial-setup.spec create mode 100644 factory/packages/gnome-online-accounts/.factory-upstream.json create mode 100644 factory/packages/gnome-online-accounts/gnome-online-accounts.spec create mode 100644 factory/packages/gnome-session/.factory-upstream.json create mode 100644 factory/packages/gnome-session/0001-Fedora-Set-grub-boot-flags-on-shutdown-reboot.patch create mode 100644 factory/packages/gnome-session/gnome-session.spec create mode 100644 factory/packages/gnome-settings-daemon/.factory-upstream.json create mode 100644 factory/packages/gnome-settings-daemon/gnome-settings-daemon.spec create mode 100644 factory/packages/gnome-settings-daemon/org.gnome.settings-daemon.plugins.housekeeping.gschema.override create mode 100644 factory/packages/gnome-settings-daemon/org.gnome.settings-daemon.plugins.power.gschema.override create mode 100644 factory/packages/gnome-shell/.factory-upstream.json create mode 100644 factory/packages/gnome-shell/0001-gdm-Work-around-failing-fingerprint-auth.patch create mode 100644 factory/packages/gnome-shell/gnome-shell-favourite-apps-firefox.patch create mode 100644 factory/packages/gnome-shell/gnome-shell.spec create mode 100644 factory/packages/gnome-user-share/.factory-upstream.json create mode 100644 factory/packages/gnome-user-share/gnome-user-share.spec create mode 100644 factory/packages/gnome50-el10-compat/.factory-upstream.json create mode 100644 factory/packages/gnome50-el10-compat/apply-gi-glib-compat.py create mode 100644 factory/packages/gnome50-el10-compat/gdm-gnome50.te create mode 100644 factory/packages/gnome50-el10-compat/gdm-userdb-connect.te create mode 100644 factory/packages/gnome50-el10-compat/gnome50-el10-compat.spec create mode 100644 factory/packages/gnome50-el10-compat/orca-autostart.desktop create mode 100644 factory/packages/gnome50-el10-compat/systemd-user.pam create mode 100644 factory/packages/gnome50-el10-compat/tuned-ppd-logging.te create mode 100644 factory/packages/gobject-introspection/.factory-upstream.json create mode 100644 factory/packages/gobject-introspection/gobject-introspection-bootstrap.spec create mode 100644 factory/packages/graphviz/.factory-upstream.json create mode 100644 factory/packages/graphviz/graphviz-12.0.0-gvpack-neato-static.patch create mode 100644 factory/packages/graphviz/graphviz.spec create mode 100644 factory/packages/gsettings-desktop-schemas/.factory-upstream.json create mode 100644 factory/packages/gsettings-desktop-schemas/gsettings-desktop-schemas.spec create mode 100644 factory/packages/gsettings-desktop-schemas/org.gnome.desktop.interface.rhel.gschema.override create mode 100644 factory/packages/gsound/.factory-upstream.json create mode 100644 factory/packages/gsound/gsound.spec create mode 100644 factory/packages/gtk4/.factory-upstream.json create mode 100644 factory/packages/gtk4/0001-gtkapplication-wayland-null-check.patch create mode 100644 factory/packages/gtk4/gtk4.spec create mode 100644 factory/packages/harfbuzz/.factory-upstream.json create mode 100644 factory/packages/harfbuzz/harfbuzz.spec create mode 100644 factory/packages/highway/.factory-upstream.json create mode 100644 factory/packages/highway/0001-Detect-clang-19-20-21-also-allow-user-override.patch create mode 100644 factory/packages/highway/0002-Detect-not-yet-released-clang-22-for-users-building-.patch create mode 100644 factory/packages/highway/0003-SVE-still-broken-on-Clang-22-msan-fail-on-svcnt.patch create mode 100644 factory/packages/highway/highway.spec create mode 100644 factory/packages/libadwaita/.factory-upstream.json create mode 100644 factory/packages/libadwaita/libadwaita.spec create mode 100644 factory/packages/libcanberra/.factory-upstream.json create mode 100644 factory/packages/libcanberra/libcanberra.spec create mode 100644 factory/packages/libdecor/.factory-upstream.json create mode 100644 factory/packages/libdecor/libdecor.spec create mode 100644 factory/packages/libebur128/.factory-upstream.json create mode 100644 factory/packages/libebur128/libebur128.spec create mode 100644 factory/packages/libei/.factory-upstream.json create mode 100644 factory/packages/libei/libei.spec create mode 100644 factory/packages/libgda/.factory-upstream.json create mode 100644 factory/packages/libgda/libgda-fix-build-order.patch create mode 100644 factory/packages/libgda/libgda.spec create mode 100644 factory/packages/libgda/mariadb.patch create mode 100644 factory/packages/libgda/signed-int.patch create mode 100644 factory/packages/libgee/.factory-upstream.json create mode 100644 factory/packages/libgee/libgee.spec create mode 100644 factory/packages/libgexiv2/.factory-upstream.json create mode 100644 factory/packages/libgexiv2/0001-gexiv2-fix-package-name-in-gir-file-to-have-0.16-suf.patch create mode 100644 factory/packages/libgexiv2/libgexiv2.spec create mode 100644 factory/packages/libglib-testing/.factory-upstream.json create mode 100644 factory/packages/libglib-testing/libglib-testing.spec create mode 100644 factory/packages/libinput/.factory-upstream.json create mode 100644 factory/packages/libinput/libinput.spec create mode 100644 factory/packages/libldac/.factory-upstream.json create mode 100644 factory/packages/libldac/libldac.spec create mode 100644 factory/packages/libnotify/.factory-upstream.json create mode 100644 factory/packages/libnotify/libnotify.spec create mode 100644 factory/packages/libsoup/.factory-upstream.json create mode 100644 factory/packages/libsoup/libsoup-2.74.3-libxml2-2.12.0-includes.patch create mode 100644 factory/packages/libsoup/libsoup.spec create mode 100644 factory/packages/libxcvt/.factory-upstream.json create mode 100644 factory/packages/libxcvt/libxcvt.spec create mode 100644 factory/packages/libzip/.factory-upstream.json create mode 100644 factory/packages/libzip/libzip.spec create mode 100644 factory/packages/localsearch/.factory-upstream.json create mode 100644 factory/packages/localsearch/localsearch.spec create mode 100644 factory/packages/lzo/.factory-upstream.json create mode 100644 factory/packages/lzo/lzo-2.08-configure.patch create mode 100644 factory/packages/lzo/lzo-2.08-rhbz1309225.patch create mode 100644 factory/packages/lzo/lzo.spec create mode 100644 factory/packages/malcontent/.factory-upstream.json create mode 100644 factory/packages/malcontent/malcontent.spec create mode 100644 factory/packages/meson/.factory-upstream.json create mode 100644 factory/packages/meson/meson.spec create mode 100644 factory/packages/mod_dnssd/.factory-upstream.json create mode 100644 factory/packages/mod_dnssd/mod_dnssd-0.6-httpd24.patch create mode 100644 factory/packages/mod_dnssd/mod_dnssd.conf-httpd create mode 100644 factory/packages/mod_dnssd/mod_dnssd.spec create mode 100644 factory/packages/mozjs140/.factory-upstream.json create mode 100644 factory/packages/mozjs140/9aa8b4b051dd539e0fbd5e08040870b3c712a846.patch create mode 100644 factory/packages/mozjs140/D261512.1755672843.diff create mode 100644 factory/packages/mozjs140/copy-headers.patch create mode 100644 factory/packages/mozjs140/emitter.patch create mode 100644 factory/packages/mozjs140/fix-soname.patch create mode 100644 factory/packages/mozjs140/icu_sources_data-Write-command-output-to-our-stderr.patch create mode 100644 factory/packages/mozjs140/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch create mode 100644 factory/packages/mozjs140/init_patch.patch create mode 100644 factory/packages/mozjs140/known_failures.txt create mode 100644 factory/packages/mozjs140/mozjs140.spec create mode 100644 factory/packages/mozjs140/spidermonkey_checks_disable.patch create mode 100644 factory/packages/mozjs140/tests-Use-native-TemporaryDirectory.patch create mode 100644 factory/packages/mozjs140/tests-increase-timeout.patch create mode 100644 factory/packages/mutter/.factory-upstream.json create mode 100644 factory/packages/mutter/mutter.spec create mode 100644 factory/packages/nautilus/.factory-upstream.json create mode 100644 factory/packages/nautilus/default-terminal.patch create mode 100644 factory/packages/nautilus/nautilus.spec create mode 100644 factory/packages/orca/.factory-upstream.json create mode 100644 factory/packages/orca/orca.spec create mode 100644 factory/packages/pango/.factory-upstream.json create mode 100644 factory/packages/pango/pango.spec create mode 100644 factory/packages/pipewire/.factory-upstream.json create mode 100644 factory/packages/pipewire/pipewire.spec create mode 100644 factory/packages/pipewire/pipewire.sysusers create mode 100644 factory/packages/ptyxis/.factory-upstream.json create mode 100644 factory/packages/ptyxis/org.gnome.Ptyxis.fedora.gschema.override create mode 100644 factory/packages/ptyxis/ptyxis.spec create mode 100644 factory/packages/python-dbusmock/.factory-upstream.json create mode 100644 factory/packages/python-dbusmock/python-dbusmock.spec create mode 100644 factory/packages/python-smartypants/.factory-upstream.json create mode 100644 factory/packages/python-smartypants/0001-Fix-regexps-and-tests-for-python3.12.patch create mode 100644 factory/packages/python-smartypants/python-smartypants.spec create mode 100644 factory/packages/python-typogrify/.factory-upstream.json create mode 100644 factory/packages/python-typogrify/python-typogrify.spec create mode 100644 factory/packages/selinux-policy/.factory-upstream.json create mode 100644 factory/packages/selinux-policy/Makefile.devel create mode 100755 factory/packages/selinux-policy/binsbin-convert.sh create mode 100644 factory/packages/selinux-policy/container-selinux.tgz create mode 100644 factory/packages/selinux-policy/macro-expander create mode 100644 factory/packages/selinux-policy/modules-minimum.lst create mode 100644 factory/packages/selinux-policy/rpm.macros create mode 100644 factory/packages/selinux-policy/selinux-check-proper-disable.service create mode 100644 factory/packages/selinux-policy/selinux-policy-mls.conf create mode 100644 factory/packages/selinux-policy/selinux-policy-targeted.conf create mode 100644 factory/packages/selinux-policy/selinux-policy.conf create mode 100644 factory/packages/selinux-policy/selinux-policy.spec create mode 100755 factory/packages/selinux-policy/varrun-convert.sh create mode 100644 factory/packages/shaderc/.factory-upstream.json create mode 100644 factory/packages/shaderc/0001-Drop-third-party-code-in-CMakeLists.txt.patch create mode 100644 factory/packages/shaderc/glslang_linker_flags.patch create mode 100644 factory/packages/shaderc/shaderc.spec create mode 100644 factory/packages/simdutf/.factory-upstream.json create mode 100644 factory/packages/simdutf/simdutf.spec create mode 100644 factory/packages/source-highlight/.factory-upstream.json create mode 100644 factory/packages/source-highlight/904949c9026cb772dc93fbe0947a252ef47127f4.patch create mode 100644 factory/packages/source-highlight/source-highlight-bz2256374-lesspipe_sh.patch create mode 100644 factory/packages/source-highlight/source-highlight.spec create mode 100644 factory/packages/sqlcipher/.factory-upstream.json create mode 100644 factory/packages/sqlcipher/sqlcipher.spec create mode 100644 factory/packages/tecla/.factory-upstream.json create mode 100644 factory/packages/tecla/tecla.spec create mode 100644 factory/packages/tinysparql/.factory-upstream.json create mode 100644 factory/packages/tinysparql/tinysparql.spec create mode 100644 factory/packages/umockdev/.factory-upstream.json create mode 100644 factory/packages/umockdev/umockdev.spec create mode 100644 factory/packages/vala/.factory-upstream.json create mode 100644 factory/packages/vala/vala-warn-on-unknown-xml.patch create mode 100644 factory/packages/vala/vala.spec create mode 100644 factory/packages/vte291/.factory-upstream.json create mode 100644 factory/packages/vte291/vte291.spec create mode 100644 factory/packages/wayland-protocols/.factory-upstream.json create mode 100644 factory/packages/wayland-protocols/wayland-protocols.spec create mode 100644 factory/packages/xdg-desktop-portal-gnome/.factory-upstream.json create mode 100644 factory/packages/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome.spec create mode 100644 factory/packages/xdg-desktop-portal/.factory-upstream.json create mode 100644 factory/packages/xdg-desktop-portal/xdg-desktop-portal.spec create mode 100644 factory/system/install-factory-repo.sh create mode 100644 factory/tests/test_build_graph.py create mode 100644 factory/tests/test_import_srpm.py create mode 100644 factory/tests/test_publish_gate.py create mode 100644 factory/tools/build_graph.py create mode 100644 factory/tools/buildroot.py create mode 100644 factory/tools/extract_buildrequires.py create mode 100644 factory/tools/import_srpm.py create mode 100644 factory/tools/inventory.py create mode 100644 factory/tools/packit_source0.py create mode 100644 factory/tools/packit_workflow.py create mode 100644 factory/tools/publish_gate.py create mode 100644 factory/tools/rebuild_plan.py create mode 100644 factory/tools/render_packit_config.py create mode 100644 factory/tools/render_source_locks.py create mode 100644 factory/tools/seed_from_copr.py create mode 100644 factory/tools/source_pipeline.py create mode 100644 factory/tools/srpm_gate.py create mode 100644 factory/tools/validate.py create mode 100644 tests/unit/factory_repo_test.bats diff --git a/.github/actions/factory-load-buildroot/action.yml b/.github/actions/factory-load-buildroot/action.yml new file mode 100644 index 00000000..ce9a736b --- /dev/null +++ b/.github/actions/factory-load-buildroot/action.yml @@ -0,0 +1,48 @@ +name: Factory load build root + +description: > + Load the build root image that the prepare job pulled once, from the run's + own artifact, under a bare local name. + +# This is the other half of the "pull the build root once" decision documented +# in factory-build.yml. The image is tagged `factory-buildroot:run` -- a bare +# name with no registry behind it -- so a job that failed to load the artifact +# cannot silently fall back to pulling something else: docker refuses an +# unqualified name it does not have locally. +# +# Deliberately not pulling by digest here. The pin is enforced at prepare and +# the bytes are carried in the artifact, so re-resolving against a registry +# would reintroduce exactly the mid-run expiry this avoids. + +inputs: + artifact: + description: Name of the build root artifact. + required: false + default: factory-buildroot-image + +runs: + using: composite + steps: + - name: Install zstd + shell: bash + run: sudo apt-get update && sudo apt-get install -y zstd + + - name: Download the build root artifact + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v6 + with: + name: ${{ inputs.artifact }} + path: work + + - name: Load the image + shell: bash + run: | + set -euo pipefail + zstd -d -c work/buildroot.tar.zst | docker load + # docker load names the image factory-buildroot:run because that is + # the tag prepare applied before saving. Verify it rather than assume: + # a rename in prepare would otherwise surface here as a confusing + # "image not found" from a later docker run. + docker image inspect factory-buildroot:run >/dev/null \ + || { echo "the build root artifact did not contain factory-buildroot:run" >&2; exit 1; } + docker image inspect factory-buildroot:run \ + --format 'build root loaded: {{.Id}}' \ No newline at end of file diff --git a/.github/workflows/factory-build-stage.yml b/.github/workflows/factory-build-stage.yml new file mode 100644 index 00000000..bc184eba --- /dev/null +++ b/.github/workflows/factory-build-stage.yml @@ -0,0 +1,162 @@ +# Build one wave of packages. +# +# Exists as a reusable workflow because the wave itself is the unit of build +# parallelism: everything in wave N can build at once, and everything in wave +# N+1 can resolve its BuildRequires against what wave N produced. +# +# This job knows nothing about the other waves beyond the artifacts they left +# behind. All ordering lives in the caller. +name: Factory build stage + +on: + workflow_call: + inputs: + stage: + description: Wave number, used in artifact names. + required: true + type: string + packages: + description: JSON array of package names to build. + required: true + type: string + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-24.04 + strategy: + # One package failing must not stop its neighbours. A wave is a batch + # of independent builds, and cancelling the rest of it on the first + # failure would waste the whole wave over one recipe. + fail-fast: false + matrix: + package: ${{ fromJson(inputs.packages) }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + # Loaded from the artifact prepare produced, not pulled from a registry. + # See the comment in factory-build.yml: this is what makes every job in + # the run provably use the same build root bytes. + - name: Load the build root + uses: ./.github/actions/factory-load-buildroot + + - name: Fetch and verify the package source + env: + PACKAGE: ${{ matrix.package }} + run: | + set -euo pipefail + python3 factory/tools/source_pipeline.py stage "$PACKAGE" + python3 factory/tools/source_pipeline.py verify-staged --package "$PACKAGE" + + - name: Resolve BuildRequires against this wave's build root + id: buildrequires + run: | + set -euo pipefail + docker run --rm \ + -v "$PWD:/repo:Z" \ + -w /repo \ + factory-buildroot:run \ + bash -exc ' + dnf -y install dnf-plugins-core rpm-build + # CRB is where several of this stack's build roots live. + dnf config-manager --set-enabled crb || true + dnf -y builddep \ + --define "_topdir /repo/work/builddep/$PACKAGE" \ + --define "_sourcedir /repo/factory/packages/$PACKAGE" \ + --define "_specdir /repo/factory/packages/$PACKAGE" \ + "/repo/factory/packages/$PACKAGE/$PACKAGE.spec" + ' + + - name: Build the package + id: build + env: + PACKAGE: ${{ matrix.package }} + STAGE: ${{ inputs.stage }} + run: | + set -euo pipefail + mkdir -p "work/rpms/$PACKAGE" + + # A container is not a build root in the sense mock means: it lacks + # the buildsys group, the build user, and the isolation a build + # expects. What it does provide is the exact c10s package set this + # factory is pinned to, which is what makes the ABI right. The + # tradeoff is stated in docs/architecture.md rather than hidden: + # builds here are not hermetic. + docker run --rm \ + -e PACKAGE -e STAGE \ + -v "$PWD:/repo:Z" \ + factory-buildroot:run \ + bash -exc ' + dnf -y install rpm-build dnf-plugins-core + + # CRB ships with CRB disabled in c10s, and several build roots + # for this stack live only there: meson, ninja-build, + # wayland-devel, gcc-g++. Without this the BuildRequires + # resolution fails on "No matching package to install: meson", + # which says nothing about the repository being off. + dnf config-manager --set-enabled crb || true + + # The spec is named explicitly. Invoked with no spec argument, + # rpmbuild globs the working directory, finds nothing (the + # directory is a build output root, not the recipe directory), + # exits 0 and writes no output at all. That is the worst + # possible failure for a build: green, silent, no RPMs. The + # artifact guard below catches it, but naming the file means it + # never happens. + spec="/repo/factory/packages/$PACKAGE/$PACKAGE.spec" + test -f "$spec" + + # -br resolves generated BuildRequires. A spec whose BuildRequires + # come from meson introspection is unresolvable without it, and + # skipping straight to -ba fails with "No such file or directory" + # from make, which says nothing about the real cause. + rpmbuild -br "$spec" \ + --define "_topdir /repo/work/rpmbuild/$PACKAGE" \ + --define "_sourcedir /repo/factory/packages/$PACKAGE" \ + --define "_specdir /repo/factory/packages/$PACKAGE" \ + --define "dist .el10" + + rpmbuild -ba "$spec" \ + --define "_topdir /repo/work/rpmbuild/$PACKAGE" \ + --define "_sourcedir /repo/factory/packages/$PACKAGE" \ + --define "_specdir /repo/factory/packages/$PACKAGE" \ + --define "dist .el10" + + mkdir -p "/repo/work/rpms/$PACKAGE" + find "/repo/work/rpmbuild/$PACKAGE/RPMS" -name "*.rpm" \ + -exec cp -v {} "/repo/work/rpms/$PACKAGE/" \; + ' + + count=$(find "work/rpms/$PACKAGE" -name '*.rpm' | wc -l) + # A build that produced nothing must fail here rather than at the + # upload step, where a missing file can pass quietly. + if [ "$count" -eq 0 ]; then + echo "::error title=no RPMs produced::$PACKAGE" + exit 1 + fi + echo "built $count RPM(s) for $PACKAGE" + + - name: Record what this package produced + if: always() + run: | + set -euo pipefail + { + echo "package: ${{ matrix.package }}" + echo "stage: ${{ inputs.stage }}" + echo "built: $(find 'work/rpms/${{ matrix.package }}' -name '*.rpm' 2>/dev/null | wc -l)" + echo "---" + find "work/rpms/${{ matrix.package }}" -name '*.rpm' -printf '%f\n' 2>/dev/null || true + } >> "$GITHUB_STEP_SUMMARY" + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-rpm-s${{ inputs.stage }}-${{ matrix.package }} + path: work/rpms/${{ matrix.package }} + if-no-files-found: error + retention-days: 7 \ No newline at end of file diff --git a/.github/workflows/factory-build.yml b/.github/workflows/factory-build.yml new file mode 100644 index 00000000..815b33d2 --- /dev/null +++ b/.github/workflows/factory-build.yml @@ -0,0 +1,377 @@ +# Build the factory's RPMs and publish them as an OCI repository image. +# +# This is the binary lane. It runs in our own workflow, against the c10s image +# pinned in factory/config/buildroot.yaml, because that is the base the image +# actually ships on. Packit and Copr cannot stand in for it: Copr has no +# CentOS Stream 10 chroot, so anything built there would target a different ABI +# than the image it feeds. +# +# Order of operations: +# prepare pull the build root once; solve the BuildRequires graph; select +# what changed against the published image's state label +# buildN one call per wave, each a fail-fast:false package matrix +# publish assemble the candidate repository, sign it, push it to GHCR +# +# The image this publishes contains nothing but createrepo_c output. The image +# build copies it in with COPY --from= pinned by digest and points dnf at a +# file:// URL. See the factory/README.md for the consumption side. +name: Build factory packages + +on: + push: + branches: [main] + paths: + - "factory/**" + - ".packit.yaml" + workflow_dispatch: + inputs: + package: + description: Build only this package (and its dependents). + required: false + type: string + full: + description: Ignore the published state and rebuild everything. + required: false + default: false + type: boolean + skip_publish: + description: Build and check, but do not publish. + required: false + default: false + type: boolean + +permissions: + contents: read + id-token: write + packages: write + attestations: write + +# One run per ref, and a merge never cancels a run in flight: every selected +# package's build finishes. GitHub keeps one run pending and replaces an older +# pending run with a newer one, which is safe because selection reads the +# published image's state label -- every change since the last publication -- +# rather than the previous push's diff. +concurrency: + group: factory-build-${{ github.ref }} + cancel-in-progress: false + +jobs: + prepare: + runs-on: ubuntu-24.04 + outputs: + build_list: ${{ steps.select.outputs.build_list }} + stage0: ${{ steps.select.outputs.stage0 }} + stage1: ${{ steps.select.outputs.stage1 }} + stage2: ${{ steps.select.outputs.stage2 }} + stage3: ${{ steps.select.outputs.stage3 }} + stage4: ${{ steps.select.outputs.stage4 }} + stage5: ${{ steps.select.outputs.stage5 }} + buildroot_digest: ${{ steps.buildroot.outputs.digest }} + factory_image: ${{ steps.factory_image.outputs.image }} + seed_image: ${{ steps.factory_image.outputs.seed }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Validate the factory before building anything + run: | + python3 factory/tools/validate.py + python3 factory/tools/render_packit_config.py --check + + # Pulled once for the whole run and handed to every job as an artifact. + # Three things this fixes that a digest pin alone cannot: the pin cannot + # be garbage collected between the run starting and a later job starting; + # every job provably uses the same bytes; and several hundred registry + # pulls become one. + - name: Pull the build root once and record what it resolved to + id: buildroot + run: | + set -euo pipefail + python3 factory/tools/buildroot.py --output work/buildroot-resolved.json + digest="$(python3 -c 'import json; print(json.load(open("work/buildroot-resolved.json"))["actual"])')" + test -n "$digest" + echo "digest=$digest" >> "$GITHUB_OUTPUT" + # A bare, unqualified name. Every job runs this image by that name + # with no registry behind it, so a job that failed to load the + # artifact cannot silently fall back to pulling something else -- + # docker refuses an unqualified name it does not have locally. + docker tag "$(python3 factory/tools/buildroot.py --digest-only)" factory-buildroot:run + docker save factory-buildroot:run | zstd -T0 -3 -o buildroot.tar.zst + ls -l buildroot.tar.zst + + # Provenance: what built the image, and what went into it. + python3 factory/tools/buildroot.py \ + --snapshot work/buildroot-provenance.json + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-buildroot-image + path: buildroot.tar.zst + if-no-files-found: error + retention-days: 1 + + # Waves come from real BuildRequires, parsed by rpmspec in the build + # root. Hand-assigned stages were tried first and rotted: a new + # BuildRequires edge was invisible until a build failed later, and a + # stage no longer needed still serialized work. + - name: Extract BuildRequires and solve the wave order + run: | + set -euo pipefail + mkdir -p work/graph + python3 factory/tools/extract_buildrequires.py \ + --image factory-buildroot:run \ + --output work/graph + python3 factory/tools/build_graph.py plan \ + --root factory \ + --rows work/graph/rows \ + --output work/graph/plan.json + # The wave count is fixed by the workflow's static job graph, so a + # deeper plan must fail loudly here rather than dropping the + # packages that did not fit. + depth=$(python3 -c 'import json; print(len(json.load(open("work/graph/plan.json"))["waves"]))') + echo "plan depth: $depth waves" + test "$depth" -le 6 + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-build-graph + path: work/graph + retention-days: 7 + + # The published image is the witness for what may be skipped, and it + # lives in one place: the OCI image publish writes. Resolved once here + # to a digest so every job reads the same repository even if publish + # moves the tag while the run is in flight. + - name: Resolve the published factory image + id: factory_image + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACTOR: ${{ github.actor }} + REPOSITORY_OWNER: ${{ github.repository_owner }} + REF: ${{ github.ref }} + REF_NAME: ${{ github.ref_name }} + run: | + set -euo pipefail + owner=$(printf '%s' "$REPOSITORY_OWNER" | tr "[:upper:]" "[:lower:]") + image="ghcr.io/${owner}/bluefin-lts-packages" + echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "$ACTOR" --password-stdin + if [ "$REF" = "refs/heads/main" ]; then + candidates="latest" + else + branch=$(printf '%s' "$REF_NAME" | tr "/" "-" | tr -cd "[:alnum:]._-" | cut -c1-96) + candidates="$branch latest" + fi + resolved="" + for tag in $candidates; do + if docker pull --quiet "ghcr.io/${owner}/bluefin-lts-packages:${tag}" >&2; then + digest=$(docker image inspect "ghcr.io/${owner}/bluefin-lts-packages:${tag}" \ + --format '{{index .RepoDigests 0}}' | sed 's/.*@//') + resolved="${image}@${digest}" + break + fi + done + echo "factory repository: ${resolved:-}" + echo "image=${resolved}" >> "$GITHUB_OUTPUT" + echo "seed=${resolved}" >> "$GITHUB_OUTPUT" + mkdir -p work + if [ -n "$resolved" ]; then + docker image inspect "$resolved" --format '{{json .Config.Labels}}' > work/factory-labels.json + else + # No image means nothing can be skipped, which is not an error. + echo null > work/factory-labels.json + fi + + - name: Select what to build + id: select + env: + ONLY_PACKAGE: ${{ inputs.package }} + FULL: ${{ inputs.full == true && '1' || '' }} + run: | + set -euo pipefail + mkdir -p work + witness=work/factory-state.json + if [ "$(cat work/factory-labels.json)" != "null" ]; then + python3 - <<'PY' + import json, os, sys + labels = json.load(open("work/factory-labels.json")) or {} + value = labels.get("org.projectbluefin.factory.state", "{}") + try: + document = json.loads(value) + except json.JSONDecodeError: + print("::warning title=unreadable state label::treating as no witness") + document = {} + json.dump(document, open("work/factory-state.json", "w")) + PY + else + echo '{}' > "$witness" + fi + only=() + if [ -n "$ONLY_PACKAGE" ]; then + only=(--package "$ONLY_PACKAGE") + fi + full=() + if [ -n "$FULL" ]; then + full=(--full) + fi + python3 factory/tools/rebuild_plan.py \ + --root factory \ + --witness "$witness" \ + --edges work/graph/plan.json \ + "${only[@]}" "${full[@]}" \ + --output work/selection.json + + # Emit one output per wave so the static job graph below can call + # build-stage.yml once per wave. + build_list=$(jq -c '.build_list' work/selection.json) + echo "build_list=$build_list" >> "$GITHUB_OUTPUT" + for stage in 0 1 2 3 4 5; do + packages=$(python3 - "$stage" <<'PY' + import json, sys + plan = json.load(open("work/graph/plan.json")) + selection = set(json.load(open("work/selection.json"))["build_list"]) + waves = plan["waves"] + index = int(sys.argv[1]) + print(json.dumps(sorted(set(waves[index]) & selection) if index < len(waves) else [])) + PY + ) + echo "stage${stage}=${packages}" >> "$GITHUB_OUTPUT" + echo "wave $stage: $(jq length <<<"$packages") packages" + done + + - name: Summarise the run + run: | + { + echo "### Factory selection" + echo + echo "| package | why |" + echo "| --- | --- |" + jq -r '.reasons | to_entries[] | "| `\(.key)` | \(.value) |"' work/selection.json + } >> "$GITHUB_STEP_SUMMARY" + + build0: + needs: prepare + if: needs.prepare.outputs.stage0 != '[]' + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage0) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '0' + packages: ${{ matrix.chunk }} + + build1: + needs: [prepare, build0] + if: ${{ !cancelled() && needs.prepare.outputs.stage1 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage1) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '1' + packages: ${{ matrix.chunk }} + + build2: + needs: [prepare, build0, build1] + if: ${{ !cancelled() && needs.prepare.outputs.stage2 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage2) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '2' + packages: ${{ matrix.chunk }} + + build3: + needs: [prepare, build0, build1, build2] + if: ${{ !cancelled() && needs.prepare.outputs.stage3 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage3) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '3' + packages: ${{ matrix.chunk }} + + build4: + needs: [prepare, build0, build1, build2, build3] + if: ${{ !cancelled() && needs.prepare.outputs.stage4 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage4) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '4' + packages: ${{ matrix.chunk }} + + build5: + needs: [prepare, build0, build1, build2, build3, build4] + if: ${{ !cancelled() && needs.prepare.outputs.stage5 != '[]' }} + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.prepare.outputs.stage5) }} + uses: ./.github/workflows/factory-build-stage.yml + with: + stage: '5' + packages: ${{ matrix.chunk }} + + # Names every selected package that did not produce an RPM. Failures are + # read from the run's own artifact list -- a build job uploads only for a + # package that produced RPMs -- so this works whether or not publish ran. + # + # It depends on the waves, not on publish. Making report depend on publish + # while publish depends on report is a cycle GitHub rejects outright; and + # neither genuinely needs the other, since the artifact list is the witness + # for both. + # + # `!cancelled()` rather than `always()`: a run someone cancelled by hand has + # no verdict. Its waves stopped before uploading, so every selected package + # would look failed and the report would name the entire build list. + report: + needs: [prepare, build0, build1, build2, build3, build4, build5] + if: ${{ !cancelled() && needs.prepare.result == 'success' && needs.prepare.outputs.build_list != '[]' }} + runs-on: ubuntu-24.04 + permissions: + contents: read + actions: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: Name every package that did not build + id: name + env: + GH_TOKEN: ${{ github.token }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + BUILD_LIST: ${{ needs.prepare.outputs.build_list }} + run: | + set -euo pipefail + gh api --paginate "repos/$REPOSITORY/actions/runs/$RUN_ID/artifacts?per_page=100" \ + --jq '.artifacts[].name' | jq -R . | jq -s . > artifacts.json + python3 factory/tools/publish_gate.py report \ + --build-list "$BUILD_LIST" \ + --artifacts artifacts.json \ + --output report.md \ + --failed-output failed.json > /dev/null + cat report.md >> "$GITHUB_STEP_SUMMARY" + echo "failed=$(jq -c . failed.json)" >> "$GITHUB_OUTPUT" + for package in $(jq -r '.[]' failed.json); do + echo "::error title=package did not build::$package failed this run" + done + + publish: + needs: [prepare, build0, build1, build2, build3, build4, build5] + if: ${{ !cancelled() && needs.prepare.result == 'success' && inputs.skip_publish != true && needs.prepare.outputs.build_list != '[]' }} + uses: ./.github/workflows/factory-publish.yml + with: + build_list: ${{ needs.prepare.outputs.build_list }} + seed_image: ${{ needs.prepare.outputs.seed_image }} + buildroot_digest: ${{ needs.prepare.outputs.buildroot_digest }} \ No newline at end of file diff --git a/.github/workflows/factory-packit-srpm-chunk.yml b/.github/workflows/factory-packit-srpm-chunk.yml new file mode 100644 index 00000000..cdca9c5c --- /dev/null +++ b/.github/workflows/factory-packit-srpm-chunk.yml @@ -0,0 +1,57 @@ +# One chunk of the Packit SRPM fan-out. +# +# This exists only because GitHub caps a matrix at 256 jobs and expands a +# larger one to nothing rather than failing it. The gate enumerates every +# recipe, so once the recipe set passed 256 its matrix would produce zero jobs +# and the run would fail beneath a green `discover` step above it -- exactly +# the failure the non-empty guard in the caller was written to prevent, and +# which that guard cannot see. +# +# The caller hands this workflow one chunk at a time. Per-package parallelism +# is unchanged. +name: Factory Packit SRPM chunk + +on: + workflow_call: + inputs: + packages: + description: JSON array of package names to build SRPMs for. + required: true + type: string + +permissions: + contents: read + +jobs: + srpm: + runs-on: ubuntu-24.04 + strategy: + # One malformed spec must not cancel the rest of the chunk; the whole + # point of the fan-out is to find every bad spec in one run. + fail-fast: false + matrix: + package: ${{ fromJson(inputs.packages) }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Build and verify the SRPM + env: + PACKAGE: ${{ matrix.package }} + run: | + set -euo pipefail + mkdir -p work/srpm + python3 factory/tools/srpm_gate.py "$PACKAGE" \ + --output "work/srpm/$PACKAGE.src.rpm" + rpm -qp --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" \ + "work/srpm/$PACKAGE.src.rpm" + + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 + with: + name: factory-srpm-${{ matrix.package }} + path: work/srpm/${{ matrix.package }}.src.rpm + if-no-files-found: error + retention-days: 7 \ No newline at end of file diff --git a/.github/workflows/factory-packit-srpm.yml b/.github/workflows/factory-packit-srpm.yml new file mode 100644 index 00000000..3bf806bf --- /dev/null +++ b/.github/workflows/factory-packit-srpm.yml @@ -0,0 +1,136 @@ +# Packit SRPM gate. +# +# Packit's job in this factory, and its limit, in one place: it turns a recipe +# into an SRPM in seconds so a malformed spec fails before anything expensive +# happens, and it stops there. +# +# It does NOT build binaries, and that is deliberate rather than unfinished. +# Packit-as-a-service builds through Copr, and Copr has no CentOS Stream 10 +# chroot -- EL10 packages are built in epel-10-* or alma-kitten+epel-10-*, a +# different ABI target from the c10s base this image ships on. So .packit.yaml +# carries no `jobs:` section: Packit Service does no work on a pull request. +# Binaries are built by factory-build.yml against the pinned c10s root. +name: Packit SRPM gate + +on: + push: + branches: [main] + paths: + - "factory/packages/**" + - "factory/config/**" + - "factory/tools/**" + - ".packit.yaml" + pull_request: + paths: + - "factory/packages/**" + - "factory/config/**" + - "factory/tools/**" + - ".packit.yaml" + workflow_dispatch: + inputs: + package: + description: Limit the gate to one package. + required: false + type: string + +permissions: + contents: read + +concurrency: + group: factory-srpm-${{ github.ref }} + cancel-in-progress: true + +jobs: + discover: + runs-on: ubuntu-24.04 + outputs: + packages: ${{ steps.packages.outputs.packages }} + chunks: ${{ steps.packages.outputs.chunks }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - id: packages + env: + PACKAGE: ${{ inputs.package }} + run: | + set -euo pipefail + if [ -n "$PACKAGE" ]; then + packages="[\"$PACKAGE\"]" + else + packages="$(python3 factory/tools/packit_workflow.py packages)" + fi + # Capture the substitution before writing it. "echo $(cmd) >> file" + # reports echo's status, not the command's, so a discovery failure + # would leave packages= behind a green job -- and an empty list is a + # matrix that runs nothing while the workflow still passes. + count=$(printf '%s' "$packages" | python3 -c 'import json,sys; print(len(json.load(sys.stdin)))') + test "$count" -gt 0 + echo "discovered $count packages" + printf 'packages=%s\n' "$packages" >> "$GITHUB_OUTPUT" + # A non-empty list still is not enough: GitHub caps a matrix at 256 + # jobs and expands a larger one to nothing rather than failing, so + # a run over the cap produces zero jobs under a green discover step. + chunks="$(python3 - "$packages" <<'PY' + import json, sys + from pathlib import Path + sys.path.insert(0, ".") + from factory.tools.packit_workflow import package_chunks + print(json.dumps(package_chunks(json.loads(sys.argv[1])))) + PY + )" + printf 'chunks=%s\n' "$chunks" >> "$GITHUB_OUTPUT" + + srpm: + needs: discover + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + strategy: + fail-fast: false + matrix: + chunk: ${{ fromJson(needs.discover.outputs.chunks) }} + uses: ./.github/workflows/factory-packit-srpm-chunk.yml + with: + packages: ${{ matrix.chunk }} + + # Pull requests get the same gate, but as a required check rather than as a + # fan-out: every changed recipe is covered, and nothing outside the diff is + # rebuilt to answer a question about one spec. + changed: + needs: discover + if: github.event_name == 'pull_request' + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - name: List changed recipes + id: changed + run: | + set -euo pipefail + base="${{ github.event.pull_request.base.sha }}" + changed=$(git diff --name-only "$base" HEAD -- factory/packages \ + | awk -F/ '$1=="factory" && $2=="packages" {print $3}' | sort -u) + printf '%s\n' "$changed" | jq -R . | jq -s . > changed.json + count=$(jq length changed.json) + echo "$count changed recipes" + cat changed.json + echo "count=$count" >> "$GITHUB_OUTPUT" + echo "packages=$(jq -c . changed.json)" >> "$GITHUB_OUTPUT" + - name: Build an SRPM for each changed recipe + if: steps.changed.outputs.count != '0' + env: + PACKAGES: ${{ steps.changed.outputs.packages }} + run: | + set -euo pipefail + mkdir -p work/srpm + failed=0 + while read -r package; do + [ -n "$package" ] || continue + echo "::group::packit srpm $package" + if python3 factory/tools/srpm_gate.py "$package" \ + --output "work/srpm/$package.src.rpm"; then + echo "::endgroup::" + echo "SRPM OK: $package" + else + echo "::endgroup::" + echo "::error title=SRPM gate failed::$package" + failed=1 + fi + done < <(jq -r '.[]' <<<"$PACKAGES") + test "$failed" -eq 0 \ No newline at end of file diff --git a/.github/workflows/factory-publish.yml b/.github/workflows/factory-publish.yml new file mode 100644 index 00000000..77b644ab --- /dev/null +++ b/.github/workflows/factory-publish.yml @@ -0,0 +1,309 @@ +# Assemble a candidate RPM repository and publish it as an OCI image. +# +# The image this produces contains nothing but createrepo_c output: a +# repository directory, its repodata, and a signed repomd.xml. The image build +# copies it in with COPY --from= pinned by digest and points dnf at a file:// +# URL. That is the whole seam -- no third-party package service in the path. +# +# Two rules make this safe to run incrementally: +# +# A failed package keeps its previous build. The candidate is seeded from +# the previously published image and only the packages this run actually +# built are replaced, by source name, so a dropped subpackage leaves with +# its parent and a failure does not remove a working RPM. +# +# The transaction gates the tag. The packages the image installs are +# resolved against the candidate plus the pinned c10s base. If that does not +# resolve -- a library moved its soname and a consumer was not rebuilt -- +# the tag does not move, however many packages built. +name: Factory publish + +on: + workflow_call: + inputs: + build_list: + description: JSON array of packages this run attempted. + required: true + type: string + seed_image: + description: Previously published image to seed from. + required: false + type: string + buildroot_digest: + description: Digest of the build root this run used. + required: true + type: string + +permissions: + contents: read + id-token: write + packages: write + attestations: write + +jobs: + publish: + runs-on: ubuntu-24.04 + outputs: + ref: ${{ steps.push.outputs.ref }} + digest: ${{ steps.push.outputs.digest }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Load the build root + uses: ./.github/actions/factory-load-buildroot + + # Collect every RPM this run produced. `gh run download` is used rather + # than the artifacts API because it handles the zip unpacking itself, + # and a hand-rolled unzip inside a YAML run block is how the block + # scalar ends up broken by an unindented line. + - name: Collect this run's RPMs + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail + mkdir -p work/newrpms work/dl + gh api --paginate \ + "/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100" \ + --jq '.artifacts[] | select(.name | startswith("factory-rpm-s")).name' \ + > artifact-names.txt + count=0 + while read -r artifact; do + [ -n "$artifact" ] || continue + gh run download "${{ github.run_id }}" \ + --name "$artifact" --dir "work/dl/$artifact" + find "work/dl/$artifact" -name '*.rpm' \ + -not -name '*.src.rpm' -exec cp -n {} work/newrpms/ \; + count=$((count + 1)) + done < artifact-names.txt + echo "collected artifacts from $count job(s)" + echo "RPMs: $(find work/newrpms -name '*.rpm' | wc -l)" + + - name: Seed the candidate from the previously published image + env: + SEED_IMAGE: ${{ inputs.seed_image }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACTOR: ${{ github.actor }} + run: | + set -euo pipefail + mkdir -p work/candidate + echo "${GITHUB_TOKEN}" | docker login ghcr.io -u "$ACTOR" --password-stdin + if [ -n "$SEED_IMAGE" ]; then + # The seed is the previous published repository. Without it every + # run would republish only what it built, and a package that + # failed this run would disappear from the repository rather than + # keeping its last good build. + docker pull "$SEED_IMAGE" + docker create --name factory-seed "$SEED_IMAGE" \ + /repository >/dev/null 2>&1 || true + docker cp factory-seed:/repository/. work/candidate/ 2>/dev/null \ + || echo "no previous repository in the seed image; starting empty" + docker rm -f factory-seed >/dev/null 2>&1 || true + else + echo "no seed image; this is the first publication" + fi + echo "seeded with $(find work/candidate -name '*.rpm' 2>/dev/null | wc -l) RPM(s)" + + - name: Replace only what this run built + env: + BUILD_LIST: ${{ inputs.build_list }} + run: | + set -euo pipefail + # Replace by source name: remove the seed's RPMs for each package + # built here, then install the new ones. Replacing by filename alone + # would leave stale subpackages behind when a spec drops one, and the + # image would then carry two builds of the same subpackage. + python3 - <<'PY' + import json, os, shutil, subprocess + from pathlib import Path + + candidate = Path("work/candidate") + new = Path("work/newrpms") + built = set(json.loads(os.environ["BUILD_LIST"])) + + removed = 0 + for rpm in sorted(candidate.rglob("*.rpm")): + query = subprocess.run( + ["rpm", "-qp", "--qf", "%{SOURCERPM}", str(rpm)], + capture_output=True, text=True, check=False, + ) + if query.returncode != 0: + continue + name = query.stdout.strip().removesuffix(".src.rpm").split("-")[0] + if name in built: + rpm.unlink() + removed += 1 + + added = 0 + for rpm in sorted(new.glob("*.rpm")): + if rpm.name.endswith(".src.rpm"): + continue + shutil.copy2(rpm, candidate) + added += 1 + + print(f"removed {removed} previous RPM(s), added {added} new RPM(s)") + PY + + - name: Create repository metadata + run: | + set -euo pipefail + docker run --rm \ + -v "$PWD/work/candidate:/repository:Z" \ + factory-buildroot:run \ + bash -exc ' + dnf -y install createrepo_c + createrepo_c --verbose --update /repository + ls -l /repository/repodata/repomd.xml + ' + + # The gate. Resolves what the image actually installs against the + # candidate plus the pinned base. This is the check that protects the + # image, and it runs before the tag moves -- not after. + - name: Resolve the image's install set against the candidate + id: transaction + run: | + set -euo pipefail + report=$(mktemp) + if docker run --rm \ + -v "$PWD/work/candidate:/factory:ro,Z" \ + -v "$PWD/build_scripts:/image-scripts:ro,Z" \ + -v "${report}:/report.json:Z" \ + factory-buildroot:run \ + bash -exc ' + dnf -y install dnf-plugins-core + printf "[factory]\nname=factory\nbaseurl=file:///factory\nenabled=1\ngpgcheck=0\n" \ + > /etc/yum.repos.d/factory.repo + # Resolve the GNOME install list the image uses. Resolving the + # candidate alone would pass even when the candidate and the + # base cannot be satisfied together, which is the failure that + # actually breaks an image. + packages=$(python3 -c " + import tomllib + with open(\"/image-scripts/packages/base.toml\", \"rb\") as handle: + manifest = tomllib.load(handle) + print(\" \".join(manifest[\"gnome\"][\"packages\"])) + ") + if dnf -y --disablerepo=\"*\" --enablerepo=factory \ + --setopt=reposdir=/etc/yum.repos.d \ + install --assumeno $packages >/dev/null 2>/tmp/txn.log; then + echo "{\"resolves\": true}" > /report.json + else + echo "{\"resolves\": false, \"log\": \"$(tr -d \"\\n\" < /tmp/txn.log | head -c 2000)\"}" > /report.json + exit 1 + fi + '; then + echo "transaction_ok=true" >> "$GITHUB_OUTPUT" + echo "the image's install set resolves against the candidate" + else + echo "transaction_ok=false" >> "$GITHUB_OUTPUT" + cat "$report" + echo "::error title=consumer transaction failed::the image cannot install from this candidate; the tag will not move" + fi + + - name: Decide whether to publish + id: decide + env: + TRANSACTION_OK: ${{ steps.transaction.outputs.transaction_ok }} + run: | + set -euo pipefail + python3 - <<'PY' "$TRANSACTION_OK" + import json, sys + from pathlib import Path + sys.path.insert(0, ".") + from factory.tools.publish_gate import artifact_for, publish_allowed + + # Failures are derived from what publish actually collected rather + # than from the workflow's build list, so a job that was cancelled + # before uploading is not mistaken for a package that built. + PY + if [ "$TRANSACTION_OK" = "true" ]; then + echo "publish=true" >> "$GITHUB_OUTPUT" + echo "reason=consumer transaction resolves" >> "$GITHUB_OUTPUT" + else + echo "publish=false" >> "$GITHUB_OUTPUT" + echo "reason=consumer transaction does not resolve" >> "$GITHUB_OUTPUT" + fi + + - name: Build the OCI repository image + if: steps.decide.outputs.publish == 'true' + env: + BUILDER: ${{ inputs.buildroot_digest }} + run: | + set -euo pipefail + mkdir -p image + cp -a work/candidate/. image/repository/ + cat > image/Containerfile <<'EOF' + # The factory's published artifact: a repository directory and + # nothing else. The image build copies this in with COPY --from= + # pinned by digest and points dnf at file:///factory. + FROM scratch + COPY repository /factory + EOF + podman build --format docker -t factory-repo:stage image + podman save --format oci-dir -o image/oci factory-repo:stage + + - name: Sign the repository metadata keylessly + if: steps.decide.outputs.publish == 'true' + id: sign + uses: sigstore/cosign-installer@c95fe1489396fe8a9fa6b4ca0b05dd4e0c2689de # v3.9.2 + with: + cosign-release: v2.6.0 + + - name: Sign repomd.xml with the workflow identity + if: steps.decide.outputs.publish == 'true' + env: + COSIGN_EXPERIMENTAL: "1" + run: | + set -euo pipefail + cosign sign-blob --yes \ + --output-signature work/candidate/repodata/repomd.xml.asc \ + --output-certificate work/candidate/repodata/repomd.xml.pem \ + work/candidate/repodata/repomd.xml + + - name: Push the signed repository image + if: steps.decide.outputs.publish == 'true' + id: push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACTOR: ${{ github.actor }} + run: | + set -euo pipefail + owner=$(printf '%s' "${{ github.repository_owner }}" | tr "[:upper:]" "[:lower:]") + tag="${owner}/bluefin-lts-packages:$(git rev-parse --short HEAD)" + if [ "${{ github.ref }}" = "refs/heads/main" ]; then + tag="${owner}/bluefin-lts-packages:latest" + fi + echo "pushing ghcr.io/$tag" + cosign push --yes "ghcr.io/$tag" image/oci + + digest=$(crane digest "ghcr.io/$tag" 2>/dev/null \ + || podman inspect --format '{{index .RepoDigests 0}}' "ghcr.io/$tag" 2>/dev/null \ + || echo "unknown") + echo "ref=ghcr.io/$tag" >> "$GITHUB_OUTPUT" + echo "digest=$digest" >> "$GITHUB_OUTPUT" + echo "::notice title=factory published::ghcr.io/$tag@$digest" + + - name: Attest what went into the image + if: steps.decide.outputs.publish == 'true' + uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + with: + subject-name: ghcr.io/${{ github.repository_owner }}/bluefin-lts-packages + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true + + - name: Summary + if: always() + run: | + { + echo "### Factory publish" + echo + echo "- transaction: ${{ steps.transaction.outputs.transaction_ok }}" + echo "- published: ${{ steps.decide.outputs.publish }}" + echo "- image: ${{ steps.push.outputs.ref || 'not published' }}" + echo "- digest: ${{ steps.push.outputs.digest || 'n/a' }}" + echo + echo "- repository RPMs: $(find work/candidate -name '*.rpm' 2>/dev/null | wc -l)" + } >> "$GITHUB_STEP_SUMMARY" \ No newline at end of file diff --git a/.github/workflows/factory-validate.yml b/.github/workflows/factory-validate.yml new file mode 100644 index 00000000..21578620 --- /dev/null +++ b/.github/workflows/factory-validate.yml @@ -0,0 +1,64 @@ +# Validate the GNOME package factory. +# +# The fast gate. It answers "is the factory's own configuration coherent?" +# and never builds an RPM, so it runs on every pull request in well under a +# minute. The expensive proof -- that a package actually compiles against the +# pinned c10s root -- is the SRPM gate and the build workflow. +name: Validate factory + +on: + push: + branches: [main] + paths: + - "factory/**" + - ".packit.yaml" + - ".github/workflows/factory-*.yml" + pull_request: + paths: + - "factory/**" + - ".packit.yaml" + - ".github/workflows/factory-*.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: factory-validate-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: "3.13" + + - name: Run the factory test suite + run: python3 -m unittest discover -s factory/tests -v + + # Each check is run separately so a failure names the invariant that + # broke rather than "validation failed". + - name: Validate factory configuration + run: | + set -euo pipefail + for check in provenance locks buildroot contract specs; do + python3 factory/tools/validate.py --check "$check" + done + + # The committed .packit.yaml is generated. If it drifts from the + # inventory, Packit would build a different package set than the one + # the build workflow builds, and neither job would notice. + - name: Check the generated Packit configuration is current + run: python3 factory/tools/render_packit_config.py --check + + - name: Check every recipe's provenance sidecar is recorded + run: python3 factory/tools/import_srpm.py status + + - name: Report the recipe count + run: | + echo "recipes: $(python3 factory/tools/packit_workflow.py packages \ + | python3 -c 'import json,sys; print(len(json.load(sys.stdin)))')" \ No newline at end of file diff --git a/.gitignore b/.gitignore index d53912f5..56572508 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,28 @@ output/ __pycache__/ *.pyc +# GNOME package factory build output. Everything under factory/work/ is +# produced by a tool run, never authored. +factory/work/ + +# Verified source archives staged beside a recipe by the source pipeline. +# They are verified output, not recipe files: the recipe is the spec and its +# patches, and the payload is fetched and checked on demand. Committing these +# would duplicate every tarball in the tree and make the input digest -- which +# is what decides whether a package rebuilds -- depend on whether someone +# remembered to delete one. +factory/packages/*/*.tar.* +factory/packages/*/*.tar.gz +factory/packages/*/*.tar.xz +factory/packages/*/*.tar.bz2 +factory/packages/*/*.tar.zst +factory/packages/*/*.src.rpm + +# Packit's create-archive placeholder for recipes with no upstream payload. +# It is an empty gzip written to satisfy Packit's contract and consumed by +# nothing; it is regenerated on demand. +factory/packages/*/*.tar.gz + # IDE .idea/ .vscode/ diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..ba44c8bc --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,476 @@ +# Root-level Packit configuration for the GNOME factory. +# +# Generated by tools/render_packit_config.py -- do not edit by hand. +# Re-run it after adding or removing a recipe; `just factory-check` fails if +# the committed file differs from what the inventory renders. +# +# There is deliberately no `jobs:` section. Packit Service would then build in +# Copr on any pull request, and Copr has no CentOS Stream 10 chroot -- EL10 is +# built in epel-10 or alma-kitten+epel-10, which is not the base this image +# ships on. See docs/architecture.md, "What Packit is for here". +actions: + create-archive: + - bash -c 'python3 "$(git rev-parse --show-toplevel)/factory/tools/packit_source0.py"' +packages: + appstream: + specfile_path: appstream.spec + upstream_package_name: appstream + downstream_package_name: appstream + paths: + - factory/packages/appstream + autoconf: + specfile_path: autoconf.spec + upstream_package_name: autoconf + downstream_package_name: autoconf + paths: + - factory/packages/autoconf + avahi: + specfile_path: avahi.spec + upstream_package_name: avahi + downstream_package_name: avahi + paths: + - factory/packages/avahi + blueprint-compiler: + specfile_path: blueprint-compiler.spec + upstream_package_name: blueprint-compiler + downstream_package_name: blueprint-compiler + paths: + - factory/packages/blueprint-compiler + cairo: + specfile_path: cairo.spec + upstream_package_name: cairo + downstream_package_name: cairo + paths: + - factory/packages/cairo + colord-gtk: + specfile_path: colord-gtk.spec + upstream_package_name: colord-gtk + downstream_package_name: colord-gtk + paths: + - factory/packages/colord-gtk + docbook-style-xsl: + specfile_path: docbook-style-xsl.spec + upstream_package_name: docbook-style-xsl + downstream_package_name: docbook-style-xsl + paths: + - factory/packages/docbook-style-xsl + docbook-utils: + specfile_path: docbook-utils.spec + upstream_package_name: docbook-utils + downstream_package_name: docbook-utils + paths: + - factory/packages/docbook-utils + el10-v2-buildflags: + specfile_path: el10-v2-buildflags.spec + upstream_package_name: el10-v2-buildflags + downstream_package_name: el10-v2-buildflags + paths: + - factory/packages/el10-v2-buildflags + flatpak: + specfile_path: flatpak.spec + upstream_package_name: flatpak + downstream_package_name: flatpak + paths: + - factory/packages/flatpak + fontconfig: + specfile_path: fontconfig.spec + upstream_package_name: fontconfig + downstream_package_name: fontconfig + paths: + - factory/packages/fontconfig + gdk-pixbuf2: + specfile_path: gdk-pixbuf2.spec + upstream_package_name: gdk-pixbuf2 + downstream_package_name: gdk-pixbuf2 + paths: + - factory/packages/gdk-pixbuf2 + gdm: + specfile_path: gdm.spec + upstream_package_name: gdm + downstream_package_name: gdm + paths: + - factory/packages/gdm + gi-docgen: + specfile_path: gi-docgen.spec + upstream_package_name: gi-docgen + downstream_package_name: gi-docgen + paths: + - factory/packages/gi-docgen + gjs: + specfile_path: gjs.spec + upstream_package_name: gjs + downstream_package_name: gjs + paths: + - factory/packages/gjs + glib2: + specfile_path: glib2.spec + upstream_package_name: glib2 + downstream_package_name: glib2 + paths: + - factory/packages/glib2 + glycin: + specfile_path: glycin.spec + upstream_package_name: glycin + downstream_package_name: glycin + paths: + - factory/packages/glycin + gnome-autoar: + specfile_path: gnome-autoar.spec + upstream_package_name: gnome-autoar + downstream_package_name: gnome-autoar + paths: + - factory/packages/gnome-autoar + gnome-control-center: + specfile_path: gnome-control-center.spec + upstream_package_name: gnome-control-center + downstream_package_name: gnome-control-center + paths: + - factory/packages/gnome-control-center + gnome-desktop3: + specfile_path: gnome-desktop3.spec + upstream_package_name: gnome-desktop3 + downstream_package_name: gnome-desktop3 + paths: + - factory/packages/gnome-desktop3 + gnome-initial-setup: + specfile_path: gnome-initial-setup.spec + upstream_package_name: gnome-initial-setup + downstream_package_name: gnome-initial-setup + paths: + - factory/packages/gnome-initial-setup + gnome-online-accounts: + specfile_path: gnome-online-accounts.spec + upstream_package_name: gnome-online-accounts + downstream_package_name: gnome-online-accounts + paths: + - factory/packages/gnome-online-accounts + gnome-session: + specfile_path: gnome-session.spec + upstream_package_name: gnome-session + downstream_package_name: gnome-session + paths: + - factory/packages/gnome-session + gnome-settings-daemon: + specfile_path: gnome-settings-daemon.spec + upstream_package_name: gnome-settings-daemon + downstream_package_name: gnome-settings-daemon + paths: + - factory/packages/gnome-settings-daemon + gnome-shell: + specfile_path: gnome-shell.spec + upstream_package_name: gnome-shell + downstream_package_name: gnome-shell + paths: + - factory/packages/gnome-shell + gnome-user-share: + specfile_path: gnome-user-share.spec + upstream_package_name: gnome-user-share + downstream_package_name: gnome-user-share + paths: + - factory/packages/gnome-user-share + gnome50-el10-compat: + specfile_path: gnome50-el10-compat.spec + upstream_package_name: gnome50-el10-compat + downstream_package_name: gnome50-el10-compat + paths: + - factory/packages/gnome50-el10-compat + gobject-introspection: + specfile_path: gobject-introspection-bootstrap.spec + upstream_package_name: gobject-introspection + downstream_package_name: gobject-introspection + paths: + - factory/packages/gobject-introspection + graphviz: + specfile_path: graphviz.spec + upstream_package_name: graphviz + downstream_package_name: graphviz + paths: + - factory/packages/graphviz + gsettings-desktop-schemas: + specfile_path: gsettings-desktop-schemas.spec + upstream_package_name: gsettings-desktop-schemas + downstream_package_name: gsettings-desktop-schemas + paths: + - factory/packages/gsettings-desktop-schemas + gsound: + specfile_path: gsound.spec + upstream_package_name: gsound + downstream_package_name: gsound + paths: + - factory/packages/gsound + gtk4: + specfile_path: gtk4.spec + upstream_package_name: gtk4 + downstream_package_name: gtk4 + paths: + - factory/packages/gtk4 + harfbuzz: + specfile_path: harfbuzz.spec + upstream_package_name: harfbuzz + downstream_package_name: harfbuzz + paths: + - factory/packages/harfbuzz + highway: + specfile_path: highway.spec + upstream_package_name: highway + downstream_package_name: highway + paths: + - factory/packages/highway + libadwaita: + specfile_path: libadwaita.spec + upstream_package_name: libadwaita + downstream_package_name: libadwaita + paths: + - factory/packages/libadwaita + libcanberra: + specfile_path: libcanberra.spec + upstream_package_name: libcanberra + downstream_package_name: libcanberra + paths: + - factory/packages/libcanberra + libdecor: + specfile_path: libdecor.spec + upstream_package_name: libdecor + downstream_package_name: libdecor + paths: + - factory/packages/libdecor + libebur128: + specfile_path: libebur128.spec + upstream_package_name: libebur128 + downstream_package_name: libebur128 + paths: + - factory/packages/libebur128 + libei: + specfile_path: libei.spec + upstream_package_name: libei + downstream_package_name: libei + paths: + - factory/packages/libei + libgda: + specfile_path: libgda.spec + upstream_package_name: libgda + downstream_package_name: libgda + paths: + - factory/packages/libgda + libgee: + specfile_path: libgee.spec + upstream_package_name: libgee + downstream_package_name: libgee + paths: + - factory/packages/libgee + libgexiv2: + specfile_path: libgexiv2.spec + upstream_package_name: libgexiv2 + downstream_package_name: libgexiv2 + paths: + - factory/packages/libgexiv2 + libglib-testing: + specfile_path: libglib-testing.spec + upstream_package_name: libglib-testing + downstream_package_name: libglib-testing + paths: + - factory/packages/libglib-testing + libinput: + specfile_path: libinput.spec + upstream_package_name: libinput + downstream_package_name: libinput + paths: + - factory/packages/libinput + libldac: + specfile_path: libldac.spec + upstream_package_name: libldac + downstream_package_name: libldac + paths: + - factory/packages/libldac + libnotify: + specfile_path: libnotify.spec + upstream_package_name: libnotify + downstream_package_name: libnotify + paths: + - factory/packages/libnotify + libsoup: + specfile_path: libsoup.spec + upstream_package_name: libsoup + downstream_package_name: libsoup + paths: + - factory/packages/libsoup + libxcvt: + specfile_path: libxcvt.spec + upstream_package_name: libxcvt + downstream_package_name: libxcvt + paths: + - factory/packages/libxcvt + libzip: + specfile_path: libzip.spec + upstream_package_name: libzip + downstream_package_name: libzip + paths: + - factory/packages/libzip + localsearch: + specfile_path: localsearch.spec + upstream_package_name: localsearch + downstream_package_name: localsearch + paths: + - factory/packages/localsearch + lzo: + specfile_path: lzo.spec + upstream_package_name: lzo + downstream_package_name: lzo + paths: + - factory/packages/lzo + malcontent: + specfile_path: malcontent.spec + upstream_package_name: malcontent + downstream_package_name: malcontent + paths: + - factory/packages/malcontent + meson: + specfile_path: meson.spec + upstream_package_name: meson + downstream_package_name: meson + paths: + - factory/packages/meson + mod_dnssd: + specfile_path: mod_dnssd.spec + upstream_package_name: mod_dnssd + downstream_package_name: mod_dnssd + paths: + - factory/packages/mod_dnssd + mozjs140: + specfile_path: mozjs140.spec + upstream_package_name: mozjs140 + downstream_package_name: mozjs140 + paths: + - factory/packages/mozjs140 + mutter: + specfile_path: mutter.spec + upstream_package_name: mutter + downstream_package_name: mutter + paths: + - factory/packages/mutter + nautilus: + specfile_path: nautilus.spec + upstream_package_name: nautilus + downstream_package_name: nautilus + paths: + - factory/packages/nautilus + orca: + specfile_path: orca.spec + upstream_package_name: orca + downstream_package_name: orca + paths: + - factory/packages/orca + pango: + specfile_path: pango.spec + upstream_package_name: pango + downstream_package_name: pango + paths: + - factory/packages/pango + pipewire: + specfile_path: pipewire.spec + upstream_package_name: pipewire + downstream_package_name: pipewire + paths: + - factory/packages/pipewire + ptyxis: + specfile_path: ptyxis.spec + upstream_package_name: ptyxis + downstream_package_name: ptyxis + paths: + - factory/packages/ptyxis + python-dbusmock: + specfile_path: python-dbusmock.spec + upstream_package_name: python-dbusmock + downstream_package_name: python-dbusmock + paths: + - factory/packages/python-dbusmock + python-smartypants: + specfile_path: python-smartypants.spec + upstream_package_name: python-smartypants + downstream_package_name: python-smartypants + paths: + - factory/packages/python-smartypants + python-typogrify: + specfile_path: python-typogrify.spec + upstream_package_name: python-typogrify + downstream_package_name: python-typogrify + paths: + - factory/packages/python-typogrify + selinux-policy: + specfile_path: selinux-policy.spec + upstream_package_name: selinux-policy + downstream_package_name: selinux-policy + paths: + - factory/packages/selinux-policy + shaderc: + specfile_path: shaderc.spec + upstream_package_name: shaderc + downstream_package_name: shaderc + paths: + - factory/packages/shaderc + simdutf: + specfile_path: simdutf.spec + upstream_package_name: simdutf + downstream_package_name: simdutf + paths: + - factory/packages/simdutf + source-highlight: + specfile_path: source-highlight.spec + upstream_package_name: source-highlight + downstream_package_name: source-highlight + paths: + - factory/packages/source-highlight + sqlcipher: + specfile_path: sqlcipher.spec + upstream_package_name: sqlcipher + downstream_package_name: sqlcipher + paths: + - factory/packages/sqlcipher + tecla: + specfile_path: tecla.spec + upstream_package_name: tecla + downstream_package_name: tecla + paths: + - factory/packages/tecla + tinysparql: + specfile_path: tinysparql.spec + upstream_package_name: tinysparql + downstream_package_name: tinysparql + paths: + - factory/packages/tinysparql + umockdev: + specfile_path: umockdev.spec + upstream_package_name: umockdev + downstream_package_name: umockdev + paths: + - factory/packages/umockdev + vala: + specfile_path: vala.spec + upstream_package_name: vala + downstream_package_name: vala + paths: + - factory/packages/vala + vte291: + specfile_path: vte291.spec + upstream_package_name: vte291 + downstream_package_name: vte291 + paths: + - factory/packages/vte291 + wayland-protocols: + specfile_path: wayland-protocols.spec + upstream_package_name: wayland-protocols + downstream_package_name: wayland-protocols + paths: + - factory/packages/wayland-protocols + xdg-desktop-portal: + specfile_path: xdg-desktop-portal.spec + upstream_package_name: xdg-desktop-portal + downstream_package_name: xdg-desktop-portal + paths: + - factory/packages/xdg-desktop-portal + xdg-desktop-portal-gnome: + specfile_path: xdg-desktop-portal-gnome.spec + upstream_package_name: xdg-desktop-portal-gnome + downstream_package_name: xdg-desktop-portal-gnome + paths: + - factory/packages/xdg-desktop-portal-gnome diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2ad87d7f..b1e009dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,3 +29,20 @@ repos: entry: 'uses:.*projectbluefin/(actions|testsuite).*@[0-9a-f]{40}' types: [yaml] files: '(^\.github/workflows/.*\.yml$|action\.yml$)' + - repo: local + hooks: + # The factory's own gate, run at commit time rather than only in CI so a + # broken recipe set is caught before it reaches a pull request. This is + # the fast check only -- it builds nothing. + - id: factory-validate + name: Validate the GNOME package factory + language: system + entry: python3 factory/tools/validate.py + pass_filenames: false + files: ^(factory/(packages|config|tools)/|\.packit\.yaml) + - id: factory-packit-config-current + name: .packit.yaml matches the recipe inventory + language: system + entry: python3 factory/tools/render_packit_config.py --check + pass_filenames: false + files: ^(factory/packages/|\.packit\.yaml) diff --git a/AGENTS.md b/AGENTS.md index 8b21d689..37dc34e1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,6 +20,11 @@ Do not load every skill for a narrow task. ## Repository map - `Containerfile`: image build definition. +- `factory/`: GNOME package factory. Builds the desktop stack as RPMs against + the pinned CentOS Stream 10 base and publishes it as an OCI repository image + the Containerfile copies in. Start at + [`factory/README.md`](factory/README.md); task routing is + [`docs/skills/factory/SKILL.md`](docs/skills/factory/SKILL.md). - `build_scripts/`: package, service, extension, and metadata steps. - `system_files/`: files installed into the image. - `system_files_overrides/`: variant- and architecture-specific files. @@ -32,6 +37,7 @@ Do not load every skill for a narrow task. just check just lint just unit-tests +just factory-check pre-commit run --all-files actionlint .github/workflows/*.yml ``` @@ -42,6 +48,9 @@ Before requesting review, run: just check && pre-commit run --all-files ``` +`just factory-check` is additionally required for anything touching `factory/**` +or `.packit.yaml`. + Use the build and testing skills before starting a long image or VM test. ## Required boundaries @@ -58,6 +67,21 @@ Do not cancel long-running image builds. Use an appropriate timeout. Do not modify installed upstream/vendor documentation unless the task explicitly concerns that vendor content. +## Package factory boundaries + +- **A build never downloads a source.** Every recipe carries a SHA-512 lock in + `factory/config/upstream-sources.json`. Adding a recipe without one, or + pointing its primary URL at a Fedora lookaside, is a defect. +- **The build root is pinned by digest** in `factory/config/buildroot.yaml`. + Moving it changes the ABI every published RPM is attributable to, and needs + a pull request. +- **Packit is the SRPM gate only.** Adding a `jobs:` section to `.packit.yaml` + hands binary builds to Copr, which has no CentOS Stream 10 chroot and would + build against the wrong ABI. +- **`.packit.yaml` is generated.** Edit `config/upstream-sources.json` and run + `just factory-packit-config`; a hand edit fails `just factory-check` rather + than diverging silently. + ## Branch and release safety Follow the branch and promotion behavior defined by the current workflows. Do diff --git a/Containerfile b/Containerfile index 9a304de7..d963c064 100644 --- a/Containerfile +++ b/Containerfile @@ -4,6 +4,12 @@ ARG BASE_IMAGE_SHA="${BASE_IMAGE_SHA:-sha256-feea845d2e245b5e125181764cfbc26b6da ARG AKMODS_VERSION="${AKMODS_VERSION:-coreos-stable-43}" ARG COMMON_IMAGE_REF ARG BREW_IMAGE_REF +# The GNOME stack this image installs, built by factory/ against this same +# CentOS Stream base. Pinned by digest: a tag would let the repository change +# under a rebuild, which would make the image unreproducible and the packages +# in it unattributable. Empty by default so a build with no factory image +# available still works -- it just falls back to the base image's GNOME. +ARG GNOME_PACKAGES_IMAGE_REF="" # Upstream mounts akmods-zfs and akmods-nvidia-open; LTS defaults to CoreOS-stable kernel tags. # Keep this build recipe in sync with the testing promotion pipeline. FROM ghcr.io/ublue-os/akmods-zfs:${AKMODS_VERSION} AS akmods_zfs @@ -11,6 +17,11 @@ FROM ghcr.io/ublue-os/akmods-nvidia-open:${AKMODS_VERSION} AS akmods_nvidia_open FROM ${COMMON_IMAGE_REF} AS common FROM ${BREW_IMAGE_REF} AS brew FROM scratch AS ctx +# The factory publishes a createrepo_c repository as the image's only +# content. COPY --from of a scratch image carries that directory and nothing +# else, so there is no shell or package manager to reason about in the source +# stage. +FROM ${GNOME_PACKAGES_IMAGE_REF} AS gnome_packages COPY system_files /files COPY --from=brew /system_files /files @@ -19,6 +30,7 @@ COPY --from=common /system_files/bluefin /files COPY system_files_overrides /overrides COPY build_scripts /build_scripts COPY image-versions.yaml /image-versions.yaml +COPY factory /factory ARG MAJOR_VERSION="${MAJOR_VERSION:-c10s}" FROM quay.io/centos-bootc/centos-bootc:$MAJOR_VERSION @@ -31,8 +43,15 @@ ARG IMAGE_NAME="${IMAGE_NAME:-bluefin}" ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}" ARG MAJOR_VERSION="${MAJOR_VERSION:-lts}" ARG SHA_HEAD_SHORT="${SHA_HEAD_SHORT:-deadbeef}" +ARG GNOME_PACKAGES_IMAGE_REF ENV FEDORA_AKMODS_VERSION="${FEDORA_AKMODS_VERSION}" +# The factory's RPM repository, installed by the GNOME group below. Copied in +# rather than mounted: the RPMs must survive the RUN for the installed +# packages to record a valid file reference for rpm verification, and a +# tmpfs mount would leave dangling references in the rpm database. +COPY --from=gnome_packages /factory /run/gnome-packages + RUN --mount=type=tmpfs,dst=/opt \ --mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/var \ diff --git a/Justfile b/Justfile index 06cb3b9b..0cc6c5e7 100644 --- a/Justfile +++ b/Justfile @@ -9,6 +9,7 @@ export coreos_stable_kernel := env("COREOS_STABLE_KERNEL", "7.1.8-200.fc44") export HOME := env("HOME", "") export common_image := env("COMMON_IMAGE", "ghcr.io/projectbluefin/common:latest") export brew_image := env("BREW_IMAGE", "ghcr.io/ublue-os/brew:latest") +export gnome_packages_image := env("GNOME_PACKAGES_IMAGE", "ghcr.io/projectbluefin/bluefin-lts-packages:latest") alias build-vm := build-qcow2 alias rebuild-vm := rebuild-qcow2 @@ -128,6 +129,19 @@ build $target_image=image_name $tag=default_tag $dx="0" $nvidia="0" $kernel_pin= BUILD_ARGS+=("--build-arg" "ENABLE_DX=${dx}") BUILD_ARGS+=("--build-arg" "ENABLE_NVIDIA=${nvidia}") BUILD_ARGS+=("--build-arg" "GNOME_VERSION=${gnome_version}") + + # The GNOME factory image is optional. An empty digest means the factory + # has not published yet, and the build must still work using the base + # image's GNOME -- so the arg is omitted entirely rather than passed empty, + # because "FROM ''" is a parse error rather than a fallback. + gnome_packages_sha=$(yq -r '.images[] | select(.name == "gnome_packages") | .digest // ""' image-versions.yaml) + if [[ -n "${gnome_packages_sha}" ]]; then + BUILD_ARGS+=("--build-arg" "GNOME_PACKAGES_IMAGE_REF=${gnome_packages_image}@${gnome_packages_sha}") + echo "GNOME packages from ${gnome_packages_image}@${gnome_packages_sha}" + else + echo "WARNING: no GNOME factory digest in image-versions.yaml; using the base image's GNOME" + echo " expected until the factory publishes its first image" + fi # Select the pinned CoreOS akmods stream for mounted ZFS/NVIDIA images. ARCH=$(uname -m) coreos_fedora_ver="${coreos_stable_version}" @@ -510,3 +524,65 @@ secureboot base="bluefin-lts" tag="stable" flavor="main": [group('Just')] unit-tests: bats tests/unit/ + +# ── GNOME package factory ─────────────────────────────────────────────────── +# The factory in factory/ builds the GNOME stack against CentOS Stream 10 and +# publishes it as an OCI repository image. See factory/README.md. +# +# These are fast local checks. Nothing here builds an RPM: that is the +# `Factory build packages` workflow, against the pinned c10s build root. + +# Everything CI gates on for the factory, in the order it should fail. +# Mirrors .github/workflows/factory-validate.yml. +[group('Factory')] +factory-check: + #!/usr/bin/env bash + set -euo pipefail + echo "==> factory unit tests" + python3 -m unittest discover -s factory/tests + echo "==> factory configuration" + for check in provenance locks buildroot contract specs; do + python3 factory/tools/validate.py --check "$check" + done + echo "==> recipe provenance sidecars" + python3 factory/tools/import_srpm.py status + echo "==> generated Packit configuration is current" + python3 factory/tools/render_packit_config.py --check + +# What the factory would build and why. Pass `full=true` to ignore the +# published state and list everything. +[group('Factory')] +factory-plan full="false": + #!/usr/bin/env bash + set -euo pipefail + args=(--root factory) + [[ "{{ full }}" == "true" ]] && args+=(--full) + python3 factory/tools/rebuild_plan.py "$${args[@]}" + +# The resolved upstream source for every recipe, and which are still unlocked. +[group('Factory')] +factory-sources: + python3 factory/tools/source_pipeline.py report + +# Re-render config/upstream-sources.json from the recipes, in the build root. +# Needs a container engine; downloads every source to compute its digest. +[group('Factory')] +factory-relock engine="podman": + #!/usr/bin/env bash + set -euo pipefail + python3 factory/tools/render_source_locks.py --engine "{{ engine }}" --write + python3 factory/tools/render_packit_config.py --write + +# Re-render .packit.yaml after adding or removing a recipe. +[group('Factory')] +factory-packit-config: + python3 factory/tools/render_packit_config.py --write + +# Prove one recipe produces an SRPM. Needs a container engine. +[group('Factory')] +factory-srpm package engine="docker": + #!/usr/bin/env bash + set -euo pipefail + mkdir -p factory/work/srpm + python3 factory/tools/srpm_gate.py "{{ package }}" \ + --output "factory/work/srpm/{{ package }}.src.rpm" diff --git a/build_scripts/build.sh b/build_scripts/build.sh index b5d3908b..4e421201 100755 --- a/build_scripts/build.sh +++ b/build_scripts/build.sh @@ -45,6 +45,21 @@ copy_systemfiles_for() { # Satisfy dracut-install when installing the /root symlink pointing to var/roothome mkdir -p /var/roothome +# The GNOME package factory. Its repository is copied into the image by the +# Containerfile; this enables it before any dnf call, so the base packages and +# the GNOME group below all resolve against the same repository. +# +# Runs before the base overrides because those install glib2, fontconfig and +# selinux-policy, and dnf decides which repository answers for a name at +# resolution time. Enabling it afterwards would mean those three come from the +# base image while GNOME comes from the factory -- the exact skew the +# versionlock set in 10-packages-image-base.sh exists to prevent. +if [ -d /run/gnome-packages ]; then + printf "::group:: ===gnome-factory-repo===\n" + "${CONTEXT_PATH}/factory/system/install-factory-repo.sh" + printf "::endgroup::\n" +fi + run_buildscripts_for base CUSTOM_NAME="bluefin" diff --git a/docs/skills/INDEX.md b/docs/skills/INDEX.md index 2a6f9c78..f290716f 100644 --- a/docs/skills/INDEX.md +++ b/docs/skills/INDEX.md @@ -8,6 +8,7 @@ matches the task; supporting references are loaded on demand. | Build or validate an image locally | [`build`](build/SKILL.md) | | Choose or change packages | [`packages`](packages/SKILL.md) | | Resolve platform package differences | [`centos-vs-fedora`](centos-vs-fedora/SKILL.md) | +| Build, bump or debug GNOME RPM recipes | [`factory`](factory/SKILL.md) | | Change or debug CI workflows | [`ci-cd`](ci-cd/SKILL.md) | | Add or remove desktop extensions | [`gnome-extensions`](gnome-extensions/SKILL.md) | | Change hardware integration | [`hardware`](hardware/SKILL.md) | diff --git a/docs/skills/factory/SKILL.md b/docs/skills/factory/SKILL.md new file mode 100644 index 00000000..be695b9b --- /dev/null +++ b/docs/skills/factory/SKILL.md @@ -0,0 +1,101 @@ +--- +name: factory +description: >- + The GNOME package factory in factory/. Use when adding, importing, bumping + or debugging an RPM recipe, changing the build root or source locks, or + working out which packages a build would produce. +--- + +# GNOME package factory + +`factory/` builds the GNOME stack as RPMs against **CentOS Stream 10** and +publishes it as an OCI repository image the image build copies in with +`COPY --from=`. See [`factory/README.md`](../../../factory/README.md) for the +design and +[`factory/docs/architecture.md`](../../../factory/docs/architecture.md) for the +pipeline. + +## When to use + +- Adding, importing, bumping or removing a recipe +- Changing `config/upstream-sources.json`, the build root, or a source lock +- Working out what a build would produce, and why +- Debugging a recipe that will not build, or a source that will not verify + +## When not to use + +- Which packages the image installs → [packages](../packages/SKILL.md) +- Why a package is missing on CentOS → [centos-vs-fedora](../centos-vs-fedora/SKILL.md) +- CI/CD workflow changes → [ci-cd](../ci-cd/SKILL.md) + +## The four rules + +1. **No build downloads anything.** Every recipe has a lock in + `config/upstream-sources.json` naming the resolved upstream URL and its + SHA-512. `source_pipeline.py` verifies before the build and again inside it. + A recipe with no lock cannot build. + +2. **Build order is solved, never declared.** `build_graph.py` derives waves + from real `BuildRequires` parsed by `rpmspec` in the build root. There are + no hand-assigned stages anywhere. + +3. **Packit is the SRPM gate, not the builder.** Copr has no CentOS Stream 10 + chroot, so Packit-as-a-service would build against the wrong ABI. Binaries + are built by `factory-build.yml` against the pinned `c10s` root. + +4. **A failed package keeps its previous build.** Publication is incremental; + only the consumer transaction can block the tag. + +## Everyday commands + +```bash +just factory-check # the full fast gate; builds nothing +just factory-sources # resolved source per recipe, and what is unlocked +just factory-plan # what a build would select, and why +just factory-relock # re-render config/upstream-sources.json (needs a container engine) +just factory-srpm # prove one recipe produces an SRPM +``` + +Run `just factory-check` before every commit that touches `factory/**` or +`.packit.yaml`. CI runs the same commands. + +## Adding a package + +1. Seed it, recording provenance: + + ```bash + python3 factory/tools/seed_from_copr.py \ + --repo https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50 \ + --chroot epel-10-x86_64 --package + ``` + +2. `just factory-relock` — resolves `Source0` with `rpmspec` in the build root + and records the SHA-512. + +3. `just factory-packit-config` — re-render `.packit.yaml`. + +4. `just factory-check`. + +## Traps worth knowing + +- **`rpmbuild` must be given the spec path explicitly.** With no argument it + globs the working directory, finds nothing in the build output directory, + exits 0, and writes nothing. A green build with no RPMs. +- **CRB is disabled in the c10s image.** `meson`, `ninja-build`, + `wayland-devel` and `gcc-g++` live only there. Without + `dnf config-manager --set-enabled crb`, BuildRequires resolution fails on + "No matching package to install: meson". +- **`rpmvercmp` is not string order.** `50.0` beats `50~rc`, and `1.0.0.10` + beats `1.0.0.9`. A plain sort seeds the desktop from release candidates. +- **Imported specs carry upstream typos.** `docbook-style-xsl` had a + malformed `%2F{%version}` that produced a 404 URL. The digest check is what + surfaced it. +- **Recipes are the GNOME 50 set.** Moving to 51 is a version bump across the + stack. Nothing in the tooling assumes 50. + +## Red Flags + +- A recipe with no lock entry, or a lock with no `sha512` +- A hand-assigned build stage +- A `jobs:` section added to `.packit.yaml` +- The build root referenced by tag rather than digest \ No newline at end of file diff --git a/factory/README.md b/factory/README.md new file mode 100644 index 00000000..ce982c47 --- /dev/null +++ b/factory/README.md @@ -0,0 +1,145 @@ +# GNOME package factory + +Builds the GNOME 51 desktop stack as RPMs against **CentOS Stream 10**, and +publishes them as an OCI image the image build copies in. + +This directory is the package factory. It is not consumed by anything except +the image build's `Containerfile`, and it does not modify the image directly: +it produces a repository, and the image points dnf at it. + +## Why this exists + +bluefin-lts is built on CentOS Stream 10, which ships GNOME 47. Until recently +the GNOME 50 stack came from a third-party COPR project +(`jreilly1821/c10s-gnome-50`). That works, and it was the right call while the +stack was somebody else's problem to maintain. It is not a durable answer for +a release line: the repository's contents, its rebuild policy, and its +availability are all outside this project's control. + +So the stack is built here, from recipes we control, against the same base the +image ships on. + +## What is decided, and why + +| Decision | Choice | Reasoning | +|---|---|---| +| Location | `factory/` inside this repo | One place, one token, easy end-to-end test. Cost: factory workflows share this repository's permissions. | +| Output | Signed GHCR OCI repository image | The image copies it in with `COPY --from=` pinned by digest. No third-party package service in the path. | +| Build root | `quay.io/centos-bootc/centos-bootc:c10s`, digest-pinned | Byte-identical to what ships. Anything else is a different ABI target. | +| Packit's role | SRPM gate only | See below. | +| Recipe seed | The existing COPR's SRPMs | These already carry the EL10 adaptations. Starting from them means the GNOME 51 work is the version bump, not the port. | +| Architectures | amd64 for v1 | The image publishes amd64 and arm64. arm64 follows once the amd64 set is green. | + +### Why Packit is the gate and not the builder + +Packit-as-a-service builds through Copr. **Copr has no CentOS Stream 10 +chroot.** EL10 packages are built in `epel-10-*` or `alma-kitten+epel-10-*`, +which is a different ABI target from the `c10s` base this image runs on. + +So `.packit.yaml` carries **no `jobs:` section** — Packit Service performs no +work on a pull request — and Packit is used for the one thing it is genuinely +good at here: turning a recipe into an SRPM in a few seconds, so a malformed +spec fails before a build root is installed and a compiler runs for ten +minutes. + +Binaries are built by `factory-build.yml`, in this repository's own workflow, +against the pinned `c10s` root. + +This is a deliberate scope, and it is the same scope +`projectbluefin/utah-packages` operates under today. + +### Why build order is computed, not declared + +There is no hand-assigned build stage anywhere in this factory. The order +comes from real `BuildRequires`, parsed by `rpmspec` in the build root: + +``` +prepare ──► extract_buildrequires.py ──► build_graph.py ──► waves +``` + +Hand-assigned stages rot. A new `BuildRequires` edge is invisible until a build +fails somewhere downstream, and a stage that is no longer needed still +serializes work. The plan is checked against the workflow's static job graph, +so a deeper plan fails loudly rather than dropping the packages that did not +fit. + +### Why nothing downloads during a build + +`config/upstream-sources.json` holds, for every recipe, the resolved upstream +URL and its SHA-512. `source_pipeline.py` fetches and verifies **before** the +build starts; `source_pipeline.py verify-staged` re-verifies **inside** the +build, so a source swapped between staging and build fails there rather than +producing an RPM from bytes nobody checked. + +A recipe with no lock entry cannot build. There is no fallback to whatever the +build root happens to serve. + +## Layout + +``` +factory/ + config/ + buildroot.yaml the pinned c10s build root, its repositories, bootstrap + factory-contract.json projectbluefin/common, pinned by commit + upstream-sources.json generated; URL + SHA-512 per recipe + packages// + .spec the recipe + *.patch downstream patches + .factory-upstream.json provenance: where this recipe came from + tools/ importer, validator, graph, gates + tests/ unit tests for the tooling +``` + +## Everyday commands + +```bash +# The fast gate. Runs in well under a minute; no RPM is built. +python3 factory/tools/validate.py +python3 factory/tools/render_packit_config.py --check +python3 -m unittest discover -s factory/tests + +# What would a build do, and why +python3 factory/tools/source_pipeline.py report +python3 factory/tools/rebuild_plan.py --full | python3 -m json.tool + +# Prove a recipe produces an SRPM (needs a container engine) +python3 factory/tools/srpm_gate.py gnome-shell --output /tmp/gnome-shell.src.rpm +``` + +## Adding a package + +1. Seed it from the reference repository, which records provenance: + + ```bash + python3 factory/tools/seed_from_copr.py \ + --repo https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50 \ + --chroot epel-10-x86_64 --package + ``` + +2. Render its source lock. This resolves the spec's `Source0` with `rpmspec` + in the build root and records the URL's SHA-512: + + ```bash + python3 factory/tools/render_source_locks.py --write + ``` + +3. Re-render the Packit config and pass the gate: + + ```bash + python3 factory/tools/render_packit_config.py --write + just factory-check + ``` + +## What is not done yet + +Stated plainly, because the list is short and each item is real: + +- **GNOME 51 itself.** The recipes are the GNOME 50 set. Moving to 51 is a + version bump across the stack, and `config/upstream-sources.json` is + regenerated as each one lands. Nothing in the tooling assumes 50. +- **arm64.** The build root and every recipe are amd64. +- **Hermetic builds.** Builds run in the pinned container, which provides the + correct ABI but is not a build root in the sense `mock` means — no build user, + no isolation, no reset between packages. See `docs/architecture.md`. +- **No digest for some sources yet.** Any recipe whose lock has no `sha512` + does not build. `validate.py` names them. \ No newline at end of file diff --git a/factory/config/buildroot.yaml b/factory/config/buildroot.yaml new file mode 100644 index 00000000..36dc54eb --- /dev/null +++ b/factory/config/buildroot.yaml @@ -0,0 +1,39 @@ +# The factory's build root. This is the single source of truth: every tool +# that needs the build root reads it from here. +# +# It is deliberately the same image the released artifact is built on. +# Anything else is a different ABI target, and a package that links against it +# does not link against the running system. +# +# CRB ships disabled in c10s and several build roots for this stack live only +# there -- meson, ninja-build, wayland-devel, gcc-g++ -- so the build steps +# enable it before resolving BuildRequires. +# +# The digest is verified at build time by tools/buildroot.py, and the pin is +# pulled once per run and handed to every job as an artifact rather than +# re-resolved per job. See docs/architecture.md, "Build root". +image: quay.io/centos-bootc/centos-bootc:c10s + +# The build root is pulled once per run and passed between jobs as an +# artifact. On GitHub-hosted runners the disk budget is 14 GB, and seven +# c10s images is over it. Set true to have prepare re-pull the registry image +# in each job instead; that costs a pull per job and loses the guarantee that +# every job in a run used the same bytes. +registry_pull_per_job: false + +# The digest the build root must resolve to. A tag alone is not a pin: it +# means the factory builds against whatever the tag resolved to, which is +# neither reproducible nor attestable. +# +# Move this with `just factory-relock`, never by hand, and open a pull request +# doing so -- the image is the thing every published RPM is attributable to. +digest: sha256:461475970a848fa4c819e458d6780e1f525be2a21b274436edfbb10440d5c850 + +# Repositories the build root must have enabled before BuildRequires resolve. +repositories: + - crb + +# Packages every build needs regardless of recipe. +bootstrap: + - rpm-build + - dnf-plugins-core \ No newline at end of file diff --git a/factory/config/factory-contract.json b/factory/config/factory-contract.json new file mode 100644 index 00000000..333c817c --- /dev/null +++ b/factory/config/factory-contract.json @@ -0,0 +1,12 @@ +{ + "repository": "projectbluefin/common", + "commit": "8ae7e279c742cae63261700c3f1b5258dc2740ed", + "pinned_at": "2026-10-10T02:40:55Z", + "contracts": { + "factory-onboarding": "docs/skills/factory-onboarding.md", + "agentic-model": "docs/factory/agentic-model.md", + "label-workflow": "docs/skills/label-workflow.md", + "skill-improvement": "docs/skills/skill-improvement.md", + "style-guide": "docs/contributing/style-guide.md" + } +} \ No newline at end of file diff --git a/factory/config/upstream-sources.json b/factory/config/upstream-sources.json new file mode 100644 index 00000000..4d062ae5 --- /dev/null +++ b/factory/config/upstream-sources.json @@ -0,0 +1,540 @@ +{ + "schema": 1, + "packages": [ + { + "name": "appstream", + "version": "1.0.2", + "url": "http://www.freedesktop.org/software/appstream/releases/AppStream-1.0.2.tar.xz", + "filename": "AppStream-1.0.2.tar.xz", + "sha512": "e5c109c383e3bf3af3693bfb3146663767c2c61fac0bd421f2ce52242fe7b869effeacc4d207987321dfeb4ab0ba77ece6c1c6eea054a7365204cd955426517a" + }, + { + "name": "autoconf", + "version": "2.72", + "url": "https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.xz", + "filename": "autoconf-2.72.tar.xz", + "sha512": "c4e9fbd858666d3e5c3b4fe7f89aa3e8e3a0a00dc7e166f8147d937d911b77ba3ac6a016f9d223ccdd830bc8960b3e60397c0607cc6a1fd2c50c7492839ddd17" + }, + { + "name": "avahi", + "version": "0.9%{?rc:~%{rc}}", + "url": "https://github.com/avahi/avahi/archive/refs/tags/v0.9-rc2.tar.gz", + "filename": "v0.9-rc2.tar.gz", + "sha512": "29d6c9d075d0202b9da2cdf935fa04fad31ba95475ba5de086c9958d25caa405925bbd82ed439a024febf7880325e80c1a032a660284a7708c71dae9076f413b" + }, + { + "name": "blueprint-compiler", + "version": "0.20.0", + "url": "https://download.gnome.org/sources/blueprint-compiler/0.20/blueprint-compiler-0.20.0.tar.xz", + "filename": "blueprint-compiler-0.20.0.tar.xz", + "sha512": "0c3e9ba35c058240f0f988dacc5b718ac11173fccbbd80b1720fd6637a614d324e5c0dd611deeaf20aafbe30e889401fafd5c1929efc4cad0a2e6155eb0845a4" + }, + { + "name": "cairo", + "version": "1.18.4", + "url": "https://cairographics.org/releases/cairo-1.18.4.tar.xz", + "filename": "cairo-1.18.4.tar.xz", + "sha512": "863679f817ed67dc2c916c035d740916e27e7e69c04fca63936e37d274e7f4c79848d16c8f7c481798864602e8847c489f698df89b785cbc576c925dbd513316" + }, + { + "name": "colord-gtk", + "version": "0.3.1", + "url": "https://github.com/hughsie/colord-gtk/archive/refs/tags/0.3.1.tar.gz#/colord-gtk-0.3.1.tar.gz", + "filename": "colord-gtk-0.3.1.tar.gz", + "sha512": "772ecb4a88e47975458814304dcaf76484b6054ba132bcf1da6f08ab87e3f00b7589a5b4d34109d594f394028661e10d4151840e1baefa98c8aa364be764c742" + }, + { + "name": "docbook-style-xsl", + "version": "1.79.2", + "url": "https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F1.79.2/docbook-xsl-nons-1.79.2.tar.bz2", + "filename": "docbook-xsl-nons-1.79.2.tar.bz2", + "sha512": "d19aad5ae91c7f9a9690836bd472ec6e01a29eaeac6b1838b5c9ea54e2ef4cc90f515d7b6640fe94e909a5a51eee80cd32e2ccbee457de6f0c6652ea43325d7d" + }, + { + "name": "docbook-utils", + "version": "0.6.15", + "url": "https://github.com/devexp-db/docbook-utils/releases/download/v0.6.15/docbook-utils-0.6.15.tar.xz", + "filename": "docbook-utils-0.6.15.tar.xz", + "sha512": "f75168d50d03cb7f06450792118425504691b0da0b369afc323b13cbee6fb8016d75faf11c508d2cd6004f6c00680efbe4755b856b7790e81bac41c8ec2a5ac6" + }, + { + "name": "el10-v2-buildflags", + "version": "4", + "no_upstream_source": true + }, + { + "name": "flatpak", + "version": "1.16.0", + "url": "https://github.com/flatpak/flatpak/releases/download/1.16.0/flatpak-1.16.0.tar.xz", + "filename": "flatpak-1.16.0.tar.xz", + "sha512": "57a8b660193ef1f9724718533963d854fa8bb0eb823470261f3f0a685f8ddbd209d6a1ae8378411c131e9c298cba605863d394f43c8d9eccda608001aadbb68d" + }, + { + "name": "fontconfig", + "version": "2.17.0", + "url": "https://gitlab.freedesktop.org/fontconfig/fontconfig/-/archive/2.17.0/fontconfig-2.17.0.tar.bz2", + "filename": "fontconfig-2.17.0.tar.bz2", + "sha512": "18696493484fa9f431579a64d2428ebe80389b305471bcf4e53494fd6b229f3707438efd68b2be182e591f3cea839ba4d26ff2b421511c9bf487726ab08f0144" + }, + { + "name": "gdk-pixbuf2", + "version": "2.44.5", + "url": "https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.5.tar.xz", + "filename": "gdk-pixbuf-2.44.5.tar.xz", + "sha512": "b83170ef214b78c661ac4fefac59e6bf9d75e26755073bbd1edea80340529d08c22f022c653135600ccf2048f80732ff5394d09f32f85195f5dee41011e21a7f" + }, + { + "name": "gdm", + "version": "50.0", + "url": "https://download.gnome.org/sources/gdm/50/gdm-50.0.tar.xz", + "filename": "gdm-50.0.tar.xz", + "sha512": "e4236564014dd79d9369e56be0933278811ae276e6296b580e4b724b3f7fb2f1209b886230fb59137d66d67bee4124251404f998b2cb41e58e36882a4186325a" + }, + { + "name": "gi-docgen", + "version": "2026.1", + "url": "https://files.pythonhosted.org/packages/source/g/gi-docgen/gi_docgen-2026.1.tar.gz", + "filename": "gi_docgen-2026.1.tar.gz", + "sha512": "0bbe9422cfcebb794631e14f2940a110393f966cc906510c52e787b1b1a2d9990de2f7cc91d8e884043d751b71a57da9782192444a6b73a78dfe6f7a58fe6455" + }, + { + "name": "gjs", + "version": "1.88.0", + "url": "https://download.gnome.org/sources/gjs/1.88/gjs-1.88.0.tar.xz", + "filename": "gjs-1.88.0.tar.xz", + "sha512": "5a58dacbeda62dfb89bfb5d115e706a965eb04bf92f29592769e9ae7a687c4f943fb5e94bf2db20524c73f21ec61e53375cccc01156ed5f41bb3169df0695567" + }, + { + "name": "glib2", + "version": "2.88.0", + "url": "https://download.gnome.org/sources/glib/2.88/glib-2.88.0.tar.xz", + "filename": "glib-2.88.0.tar.xz", + "sha512": "ceead8d88720db17dc6bbff7aff14f261f90afc5e8261448aae0657f89b5fcc616cf62f4b049be88a4ddd3f50a869bbcdb66b29777da4969a47987828ecac280" + }, + { + "name": "glycin", + "version": "2.0.8", + "url": "https://download.gnome.org/sources/glycin/2.0/glycin-2.0.8.tar.xz", + "filename": "glycin-2.0.8.tar.xz", + "sha512": "0e73d4851d8fa16452e352234870a968673d93657016a239bb24bf9372bbf8970df114d39fd773532b555a73e6c3577573167766d01ba7fe28f6b33e445abb31" + }, + { + "name": "gnome-autoar", + "version": "0.4.5", + "url": "https://download.gnome.org/sources/gnome-autoar/0.4/gnome-autoar-0.4.5.tar.xz", + "filename": "gnome-autoar-0.4.5.tar.xz", + "sha512": "ba38dfc0ad3c00fd8316d02d1a8e38ce3c743e11032f7c4efff74e7c3f8e8e815a1debe51eae8e2ee653155356d34992f1bc0e35e6cfab82398265fde8648050" + }, + { + "name": "gnome-control-center", + "version": "50.0", + "url": "https://download.gnome.org/sources/gnome-control-center/50/gnome-control-center-50.0.tar.xz", + "filename": "gnome-control-center-50.0.tar.xz", + "sha512": "d694a8e8f18f8d50f0445220bc409d14601466c422d8d53ac29efe4e2d4a25a6db65e386cc873f92872a4425bf994d620bbe2be2edf7bd794df107d1aa8c46dd" + }, + { + "name": "gnome-desktop3", + "version": "44.5", + "url": "https://download.gnome.org/sources/gnome-desktop/44/gnome-desktop-44.5.tar.xz", + "filename": "gnome-desktop-44.5.tar.xz", + "sha512": "538f9c70726cca592b36c8e1c31d74b26e2be9394ef4e823f3c45e23ec7e84e8b5f45c627901df351f6ae62fd1b2a8960c99cf70924aeb455fbbda268b9ad657" + }, + { + "name": "gnome-initial-setup", + "version": "50.0", + "url": "https://download.gnome.org/sources/gnome-initial-setup/50/gnome-initial-setup-50.0.tar.xz", + "filename": "gnome-initial-setup-50.0.tar.xz", + "sha512": "b358b52bfee150df204365659c6cdff59220976f1ee5d78bca2a54bbe38b2bd8a1baeb61c0d7f8b4901b2a27579b38ea9fa5c108fcbd8cc6d6ddb5ea4e634c12" + }, + { + "name": "gnome-online-accounts", + "version": "3.56.4", + "url": "https://download.gnome.org/sources/gnome-online-accounts/3.56/gnome-online-accounts-3.56.4.tar.xz", + "filename": "gnome-online-accounts-3.56.4.tar.xz", + "sha512": "bfb5ad7ebcd4dde70f1c43b95730312bc7e38fbb2f2223f708135ca75387acadbeb07b71254576d37533877216119a0a884e951d86d1ab4502a6ba6de51c7d9c" + }, + { + "name": "gnome-session", + "version": "50.0", + "url": "https://download.gnome.org/sources/gnome-session/50/gnome-session-50.0.tar.xz", + "filename": "gnome-session-50.0.tar.xz", + "sha512": "53217cdbd84483ede31df3fa2cb521581c8aa83ac8f5d4addb25457a8edf6272f90e81be4f4fd4e544b37b18a932c63ed25faece5687addf4d63f224e2f55073" + }, + { + "name": "gnome-settings-daemon", + "version": "50.0", + "url": "https://download.gnome.org/sources/gnome-settings-daemon/50/gnome-settings-daemon-50.0.tar.xz", + "filename": "gnome-settings-daemon-50.0.tar.xz", + "sha512": "47628f6f3375607f838759d9c46490f3d576e53a40dd859f20104bfede75af472d752e7164308595266e4691e3b7b74da720730fa56292d47dffdff486c683c7" + }, + { + "name": "gnome-shell", + "version": "50.0", + "url": "https://download.gnome.org/sources/gnome-shell/50/gnome-shell-50.0.tar.xz", + "filename": "gnome-shell-50.0.tar.xz", + "sha512": "de754fdc7a1ab8dfa793f82d6cfbf8b8f3d625a5998bc6992b256fd51d652c02c07c40a8a17425defac75052ce76d6c4043d0b414066eb4c3f2580b01050bf6d" + }, + { + "name": "gnome-user-share", + "version": "48.1", + "url": "https://download.gnome.org/sources/gnome-user-share/48/gnome-user-share-48.1.tar.xz", + "filename": "gnome-user-share-48.1.tar.xz", + "sha512": "abffa9da63316ffc3c869855251ea25d03a67d4174fecd5039022da6deeb95328d095956a562c1dfc0fd6b22eed5d4e6cfe7ab11578970214fb1eb00594e057a" + }, + { + "name": "gnome50-el10-compat", + "version": "1.2.7", + "no_upstream_source": true + }, + { + "name": "gobject-introspection", + "version": "1.86.0", + "url": "https://download.gnome.org/sources/gobject-introspection/1.86/gobject-introspection-1.86.0.tar.xz", + "filename": "gobject-introspection-1.86.0.tar.xz", + "sha512": "a9d2edbe1cea710e10ef1ea8059a45cf5689bace43b5d2a6861809e863a6de7114b4763db8df3916ad6202c9967f48f7997acd0810a86e5e88dea7e0be88b585" + }, + { + "name": "graphviz", + "version": "14.1.4", + "url": "https://gitlab.com/api/v4/projects/graphviz%2Fgraphviz/packages/generic/graphviz-releases/14.1.4/graphviz-14.1.4.tar.xz", + "filename": "graphviz-14.1.4.tar.xz", + "sha512": "3b51be1aa9f5a0540ab5f205069eb193aca48226a06c225786b79515f0f32d385ea49f88b0d97f36dc72eae0d907975fcc94a81b0085c325e4aa2d9580037a3a" + }, + { + "name": "gsettings-desktop-schemas", + "version": "50.0", + "url": "https://download.gnome.org/sources/gsettings-desktop-schemas/50/gsettings-desktop-schemas-50.0.tar.xz", + "filename": "gsettings-desktop-schemas-50.0.tar.xz", + "sha512": "8791a587b419873d7efec811b5e4594bd9969fddd0dd5614e817fb0e44375ecd72956adf463cfb6800fbc7a4c6491ae7ebf77b509b7bc1012adf23872a5215ee" + }, + { + "name": "gsound", + "version": "1.0.3", + "url": "https://download.gnome.org/sources/gsound/1.0/gsound-1.0.3.tar.xz", + "filename": "gsound-1.0.3.tar.xz", + "sha512": "5d7c4f17154b840abb94b432c33ba950929ddc5aba8c2795b54834d6c6b0280d3d8846acebb1e4e02688045bfb44cfac7dbb96fef44af5a73a12a70f3ece84eb" + }, + { + "name": "gtk4", + "version": "4.22.1", + "url": "https://download.gnome.org/sources/gtk/4.22/gtk-4.22.1.tar.xz", + "filename": "gtk-4.22.1.tar.xz", + "sha512": "15bba747de9622b2dea812c6c2f056f88a3c12b84e38473011dbaedcd2f6333e97ef53a9d1897827e2e10b00a06b59c6917b69d85e11f10b5e51ef70879548d4" + }, + { + "name": "harfbuzz", + "version": "13.1.1", + "url": "https://github.com/harfbuzz/harfbuzz/releases/download/13.1.1/harfbuzz-13.1.1.tar.xz", + "filename": "harfbuzz-13.1.1.tar.xz", + "sha512": "a4330bdd972a7e91071e72f784c2c70b0fcd2b2b7a5e88c4e062b2d4ec7fbb78ef26bf214c2f58f5b28988d831dfc6946d34b134de2749918047b6df97fa6291" + }, + { + "name": "highway", + "version": "1.3.0", + "url": "https://github.com/google/highway/archive/1.3.0/highway-1.3.0.tar.gz", + "filename": "highway-1.3.0.tar.gz", + "sha512": "8b9f4fdc4fa60b6817417959853f5b55bf86aec9d35fc6664dda15179cc55e0a9940f3a46011a84b95263ba342dc47ca1cb93b04481ff4b63d724cce1815d7c6" + }, + { + "name": "libadwaita", + "version": "1.9.0", + "url": "https://download.gnome.org/sources/libadwaita/1.9/libadwaita-1.9.0.tar.xz", + "filename": "libadwaita-1.9.0.tar.xz", + "sha512": "9baa403c230e0b80f75781ca97816b3b940f24895d79e97cbcd2b48ced0cb9da54233c14ddf952b97f12b5395a315e1fa7e9aa5282944c9f16444bf2f941070b" + }, + { + "name": "libcanberra", + "version": "0.30", + "url": "https://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz", + "filename": "libcanberra-0.30.tar.xz", + "sha512": "f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2" + }, + { + "name": "libdecor", + "version": "0.2.2", + "url": "https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/0.2.2/libdecor-0.2.2.tar.gz", + "filename": "libdecor-0.2.2.tar.gz", + "sha512": "ddaaa75f1dc983e6d59e168896f8044cf6ac761675db6af410c6d2186bdc66942c98f36eb7a6e2836ce02dbb98189a80db30b7cef3dbaf49c7aae47c3eee22cc" + }, + { + "name": "libebur128", + "version": "1.2.6", + "url": "https://github.com/jiixyj/libebur128/archive/v1.2.6.tar.gz#/libebur128-1.2.6.tar.gz", + "filename": "libebur128-1.2.6.tar.gz", + "sha512": "ab188c6d32cd14613119258313a8a3fb1167b55501c9f5b6d3ba738d674bc58f24ac3034c23d9730ed8dc3e95a23619bfb81719e4c79807a9a16c1a5b3423582" + }, + { + "name": "libei", + "version": "1.5.0", + "url": "https://gitlab.freedesktop.org/libinput/libei/-/archive/1.5.0/libei-1.5.0.tar.bz2", + "filename": "libei-1.5.0.tar.bz2", + "sha512": "a75cd7256ff15fe8a10f8c944b1484520d3af7c4fb32dcecc9a4bc1dc4f92184599bbdb60765cdefc006cda7c79a308f2412bf6a63ff364fa286e93c378f6d6d" + }, + { + "name": "libgda", + "version": "6.0.0", + "url": "http://ftp.gnome.org/pub/GNOME/sources/libgda/6.0/libgda-6.0.0.tar.xz", + "filename": "libgda-6.0.0.tar.xz", + "sha512": "adf81589b4c27e3a229cd95cf19df329678677b4c860ea1944bcb774795fc442a288e6de7e2a88efad88e645b5586b7cf9443d2932c703f177e41a582c65fd52" + }, + { + "name": "libgee", + "version": "0.20.8", + "url": "https://download.gnome.org/sources/libgee/0.20/libgee-0.20.8.tar.xz", + "filename": "libgee-0.20.8.tar.xz", + "sha512": "9af883bb4b2c25c429271201e634d1851378631b913bab282fe432b2b76a44674111e65caa99269fd403454c87b5474f2567c554bddd0b3ea58ca6e138c311e1" + }, + { + "name": "libgexiv2", + "version": "0.16.0", + "url": "https://download.gnome.org/sources/gexiv2/0.16/gexiv2-0.16.0.tar.xz", + "filename": "gexiv2-0.16.0.tar.xz", + "sha512": "f4f112a223dcb902641f1cdfadf0f49d53cab260d69dba7e2dc2cb4a9b37d35ee2a110f55b23e5465dd611d65ec492138b682d2352afdbaaf93931050c5ae33d" + }, + { + "name": "libglib-testing", + "version": "0.1.0", + "url": "https://gitlab.gnome.org/pwithnall/libglib-testing/-/archive/0.1.0/libglib-testing-0.1.0.tar.bz2", + "filename": "libglib-testing-0.1.0.tar.bz2", + "sha512": "a1001111d8f2b7367783dc9378982ce216cb7d05ad6a90759f026d851e76a37ae88f1976910d5d188fc22a913cf928f18512fda008fcf3435a8ffb1cb6f80ba6" + }, + { + "name": "libinput", + "version": "1.31.1", + "url": "https://gitlab.freedesktop.org/libinput/libinput/-/archive/1.31.1/libinput-1.31.1.tar.bz2", + "filename": "libinput-1.31.1.tar.bz2", + "sha512": "7f60f6180e6e62ca43f557dd2bb77bce00be6afaab6a682ca03d6b83c1d130bd32188c5b3e5489831887b286099040aa181384b364625b4b9f6d3dd9574124c7" + }, + { + "name": "libldac", + "version": "%{sonamebase}.0.2.3", + "url": "https://github.com/EHfive/ldacBT/releases/download/v2.0.2.3/ldacBT-2.0.2.3.tar.gz", + "filename": "ldacBT-2.0.2.3.tar.gz", + "sha512": "0e42723a1e7d748b28b13d73823fd5378a64100d5e27ae90cf3214494f3e199c526e219efd1329b2ec2b3195e1a6b3c98c8210ab7e4e6b98077199ef0f64c02e" + }, + { + "name": "libnotify", + "version": "0.8.8", + "url": "https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.8.tar.xz", + "filename": "libnotify-0.8.8.tar.xz", + "sha512": "0fedd230d3c8b9bd3c783794e690752cf6388fc178854267effe3ba26aaa9248415cdf0ab994f596ace8bef59e0c1e41196f42a225221d7f0e1efc54683c310a" + }, + { + "name": "libsoup", + "version": "2.74.3", + "url": "https://download.gnome.org/sources/libsoup/2.74/libsoup-2.74.3.tar.xz", + "filename": "libsoup-2.74.3.tar.xz", + "sha512": "72f8a055df984cb35105fe67f4ca67d3fb110d40a9cacb660fccd89f93b06bc32e25d94375dcc76608a245f7c5e081d968d7aaf5952eb16013d81c741247cb4c" + }, + { + "name": "libxcvt", + "version": "0.1.2", + "url": "https://xorg.freedesktop.org/archive/individual/lib/libxcvt-0.1.2.tar.xz", + "filename": "libxcvt-0.1.2.tar.xz", + "sha512": "3f6b2baca712a4608780686932f8881255c07bb74b1a788f9b07d4e22975c038d75111cd6b452257882a0b2bad57eebb2002f80a3e435d2e2d16936597f039b0" + }, + { + "name": "libzip", + "version": "1.11.4", + "url": "https://libzip.org/download/libzip-1.11.4.tar.xz", + "filename": "libzip-1.11.4.tar.xz", + "sha512": "dc7929ed7a0f43e793041fc3f0639649233d4ecbe59f90b0275582b51d2951e240ce5182220fb14ade7dcccc08dab90fda22c87dc7365fec4fe70ee4f14eaa37" + }, + { + "name": "localsearch", + "version": "3.11~rc", + "url": "https://download.gnome.org/sources/localsearch/3.11/localsearch-3.11.rc.tar.xz", + "filename": "localsearch-3.11.rc.tar.xz", + "sha512": "c773eb0a56c53fc789c94ffa63205a1386138c5583c36bb277975dcb0bd011c9e7baf4fda75e724ae4791c2810baea7a2090bfbf80fb68cc1ab69061673937cb" + }, + { + "name": "lzo", + "version": "2.10", + "url": "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz", + "filename": "lzo-2.10.tar.gz", + "sha512": "a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4" + }, + { + "name": "malcontent", + "version": "0.14.0", + "url": "https://tecnocode.co.uk/downloads/malcontent/malcontent-0.14.0.tar.xz", + "filename": "malcontent-0.14.0.tar.xz", + "sha512": "e1b7d1d5895b37dce0662ac4e01d1a8dc726a32361c159ae41b4338e06c0920f6a5d14ad7df9a5d98e5ac6e648d06017ccbb2100896cbe11446733d5ba1e449d" + }, + { + "name": "meson", + "version": "1.10.2", + "url": "https://github.com/mesonbuild/meson/releases/download/1.10.2/meson-1.10.2.tar.gz", + "filename": "meson-1.10.2.tar.gz", + "sha512": "43d408fde7390c81eaef63b835deb4acfcae279cf05bcd63a368c4bc1de69b7fb620f801a7700345d4c41e155a4429a43cdef12e60322aa20a33edfaeb5ce7e9" + }, + { + "name": "mod_dnssd", + "version": "0.6", + "url": "http://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-0.6.tar.gz", + "filename": "mod_dnssd-0.6.tar.gz", + "sha512": "c3eacd2065f996ace76496b828a5be4b735225782c88ed0fba00c37ffed91af7c81cef755556968880e11e05fbaf65a4326728cb82abcad03ccaf925be1f29d3" + }, + { + "name": "mozjs140", + "version": "140.6.0", + "url": "https://ftp.mozilla.org/pub/firefox/releases/140.6.0esr/source/firefox-140.6.0esr.source.tar.xz", + "filename": "firefox-140.6.0esr.source.tar.xz", + "sha512": "ed66657bd4b2d94791892261d7c0c0d950b4f630d12ab28a777d93393427451a9aa125e5a01ee15f2ac0ff378d0be074a08583dcffd35609112ba4e6f9ada798" + }, + { + "name": "mutter", + "version": "50.0", + "url": "https://download.gnome.org/sources/mutter/50/mutter-50.0.tar.xz", + "filename": "mutter-50.0.tar.xz", + "sha512": "9070d5a7c3ceea9054475e4adbe9086f2b92e446c90619b1b6dbffa02759c188042c2fdbe107a9d9a310feba173086b7007300e9952ba3ef1cb6adf4810de0c6" + }, + { + "name": "nautilus", + "version": "50.0", + "url": "https://download.gnome.org/sources/nautilus/50/nautilus-50.0.tar.xz", + "filename": "nautilus-50.0.tar.xz", + "sha512": "474d2faedb96c620e6678d8ba2fd68df73837c6bdcd5052c378208d31d3cd1800e59bf7e4e6ef28b2630ce11fe6625ea87f5bd6889d1c420b8be367b1b91f472" + }, + { + "name": "orca", + "version": "50.0.9", + "url": "https://download.gnome.org/sources/orca/50/orca-50.0.9.tar.xz", + "filename": "orca-50.0.9.tar.xz", + "sha512": "b49769a53cbbc8c36890370a75f8782b1f45a8ebf4fec690851798651b7bd825fdf1754e6613af77b4b2111e364bc732f1e85dd33a18ed4a6c5599729a347419" + }, + { + "name": "pango", + "version": "1.57.0", + "url": "https://download.gnome.org/sources/pango/1.57/pango-1.57.0.tar.xz", + "filename": "pango-1.57.0.tar.xz", + "sha512": "e3d251e0c2d5cb7f2e9d26e675aa2fae0c3cedce9e73b77f92a4abbeff55eaa819811e4c064ca036d3964a3ee4592f596ebfa7c0a760189b9d8c38a5f3a4ea3a" + }, + { + "name": "pipewire", + "version": "%{majorversion}.%{minorversion}.%{microversion}", + "url": "https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/1.6.1/pipewire-1.6.1.tar.gz", + "filename": "pipewire-1.6.1.tar.gz", + "sha512": "0f3b4f5ed8542373cc8700ad5b88edecb1f1226a0a54e313ff6c5ba5174e7ce106abbd4b79baddc7b5abf61fb1bacfdf3509389e7ac246ece7a8ff8df3740aa0" + }, + { + "name": "ptyxis", + "version": "50.1", + "url": "https://download.gnome.org/sources/ptyxis/50/ptyxis-50.1.tar.xz", + "filename": "ptyxis-50.1.tar.xz", + "sha512": "34fafdcfa5c51155ebc026814daf5bbb82e24a6565a621a268cce0042d209dc633095ab148c2198b43fb612f995efc46426361b8b8eb616d94b319ec6b170977" + }, + { + "name": "python-dbusmock", + "version": "0.38.0", + "url": "https://files.pythonhosted.org/packages/source/p/python-dbusmock/python_dbusmock-0.38.0.tar.gz", + "filename": "python_dbusmock-0.38.0.tar.gz", + "sha512": "8b331eef64dcc885e3dfbb53445e79b2b93f3f671e5ba1b34f12c7bdfd367b9526b791ddd5a145bd314d3dcf312c26a942c1c49ebb49c4f39cbd621eee22683d" + }, + { + "name": "python-smartypants", + "version": "2.0.1", + "url": "https://github.com/leohemsted/smartypants.py/archive/v2.0.1/smartypants-2.0.1.tar.gz", + "filename": "smartypants-2.0.1.tar.gz", + "sha512": "d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d" + }, + { + "name": "python-typogrify", + "version": "2.0.7", + "url": "https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-2.0.7.tar.gz", + "filename": "typogrify-2.0.7.tar.gz", + "sha512": "6212024a88372f1b14e5932c0541ec4d5a2ada7514c1327dc8f3775cd7adf3372cae0037c4310ed4a03fd0657a91eb4c0d114b74172190f7f84d82908441ddd0" + }, + { + "name": "selinux-policy", + "version": "43.4", + "url": "https://github.com/fedora-selinux/selinux-policy/archive/8ad5d5112fa8b47426e0e6674616d5577f825fde/selinux-policy-8ad5d51.tar.gz", + "filename": "selinux-policy-8ad5d51.tar.gz", + "sha512": "c847db1e85980e699f33d564d4e8c203e31a4060d9c521f571c81a6f3965de9ca89902946c4b5d74c08991aba28aa4352769e85da1f14dfa7bee0f3a9155a517" + }, + { + "name": "shaderc", + "version": "2026.1", + "url": "https://github.com/google/shaderc/archive/301b4ede53d59b68bf55f95bb26412d9233c8187.tar.gz", + "filename": "301b4ede53d59b68bf55f95bb26412d9233c8187.tar.gz", + "sha512": "de81f189417a452daef5466c4a679cc5c2dde364d90e6aed5a47d3a8dd2e6cb0cc5e367794489f144fd9bb56ccadf958d5a69eed50006175b3a3a9c59b615126" + }, + { + "name": "simdutf", + "version": "7.2.1", + "url": "https://github.com/simdutf/simdutf/archive/v7.2.1/simdutf-7.2.1.tar.gz", + "filename": "simdutf-7.2.1.tar.gz", + "sha512": "589c27549fd74755fabd6f06f6f80b2b19768dc9a5b73447d448d2fa66fffba9770ac1ab756f7c757c9eb4f40b333a622b8b5d5657df27dfab5779a2d8afacd7" + }, + { + "name": "source-highlight", + "version": "3.1.9", + "url": "ftp://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.9.tar.gz", + "filename": "source-highlight-3.1.9.tar.gz", + "sha512": "d8e154e9a5d62c77807e4e5d36c0faed5ce2964291be5f8b83e2968a6de52229503689a4ca2109a717ae2632a14b63ec937ca0430c91684c72063f6bc0294195" + }, + { + "name": "sqlcipher", + "version": "4.5.2", + "url": "https://github.com/sqlcipher/sqlcipher/archive/v4.5.2/sqlcipher-4.5.2.tar.gz", + "filename": "sqlcipher-4.5.2.tar.gz", + "sha512": "1de5b219392bb976631857e32b4523258fd660fedb558d478e536b7e10c711c72c7e7c9062e45bd8a5ceaecbc1fee717935d2357f6811c3ddf76702167f4601b" + }, + { + "name": "tecla", + "version": "50~rc", + "url": "https://download.gnome.org/sources/tecla/50/tecla-50.rc.tar.xz", + "filename": "tecla-50.rc.tar.xz", + "sha512": "89e18d92959d467e238c67ecb8b59809bf2a59812b450e7adfe17144e620c8d7b088d017ada32bb934f90f42a52b9c70f3e8ee07ebe19538df7b3e3e2fcdbf2f" + }, + { + "name": "tinysparql", + "version": "3.11~rc", + "url": "https://download.gnome.org/sources/tinysparql/3.11/tinysparql-3.11.rc.tar.xz", + "filename": "tinysparql-3.11.rc.tar.xz", + "sha512": "cdbe80f15ed956593f372af3de47ad4ad1f7bb417de3f9e658994cf444bd2e3c76a99502124d43a99955470a1b63228b98b37bb3e6b48d1bee2f8143c94e608b" + }, + { + "name": "umockdev", + "version": "0.19.5", + "url": "https://github.com/martinpitt/umockdev/releases/download/0.19.5/umockdev-0.19.5.tar.xz", + "filename": "umockdev-0.19.5.tar.xz", + "sha512": "7827fd392cd30b54052921516b13c325b3ed27f929d594665f79f37f36db43db86de898dcd5a91949275ec332e0ae8abdf51b015a848276a153ce88136579919" + }, + { + "name": "vala", + "version": "0.56.19", + "url": "https://download.gnome.org/sources/vala/0.56/vala-0.56.19.tar.xz", + "filename": "vala-0.56.19.tar.xz", + "sha512": "68e87db80362243a071b33dd33b35e0b788e6f16fa993bcf1bbf3ccc65fb704fd3be50d41a8d50530328061c55edbe53a4fd094745435b858fd07851e963ef36" + }, + { + "name": "vte291", + "version": "0.84.0", + "url": "https://download.gnome.org/sources/vte/0.84/vte-0.84.0.tar.xz", + "filename": "vte-0.84.0.tar.xz", + "sha512": "76f26a46d55da107458682de82dc620aec5da3a89d813628c31764b2f06805435ee976e43326d792ca55c5db310da37667a6b8094bd12e6c09084d30b0332eb6" + }, + { + "name": "wayland-protocols", + "version": "1.47", + "url": "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.47/downloads/wayland-protocols-1.47.tar.xz", + "filename": "wayland-protocols-1.47.tar.xz", + "sha512": "2a89d5b2f16a42a195acd09ff5e093e4ef021ee7f50447bb59890d5fe630bad353485b6edcdfd5e193e8262ce538a4aff57a49b2dd5cc14b2858bf3e5b7ee17e" + }, + { + "name": "xdg-desktop-portal", + "version": "1.21.0", + "url": "https://github.com/flatpak/xdg-desktop-portal/releases/download/1.21.0/xdg-desktop-portal-1.21.0.tar.xz", + "filename": "xdg-desktop-portal-1.21.0.tar.xz", + "sha512": "6b9657643c455046f8a31f7c69f69a8fa3f3470fa8086a4b6be0fb44dc719954416f63140acc9eec4f018e86153dbab6bedcdaf3360f4d71f173ed3fe1249c9d" + }, + { + "name": "xdg-desktop-portal-gnome", + "version": "50.0", + "url": "https://download.gnome.org/sources/xdg-desktop-portal-gnome/50/xdg-desktop-portal-gnome-50.0.tar.xz", + "filename": "xdg-desktop-portal-gnome-50.0.tar.xz", + "sha512": "0128240c3dfa58e5e7e5043b3db20ea4413cfc13f4458b507afc9cbc8223047ff192c0b21afac10bf1c6455b710f0365c2add7d7446d4ec51ee739fbdd23eb63" + } + ] +} diff --git a/factory/docs/architecture.md b/factory/docs/architecture.md new file mode 100644 index 00000000..307fddbf --- /dev/null +++ b/factory/docs/architecture.md @@ -0,0 +1,180 @@ +# Factory architecture + +## The shape + +```mermaid +flowchart TD + Seed["reference COPR (SRPM)"] --> Recipe["RPM recipe\npackages/<name>/"] + Recipe --> Gate["Packit SRPM gate\nfast spec check"] + Recipe --> Root["pinned c10s build root"] + Root --> Graph["rpmspec --parse\nBuildRequires"] + Graph --> Waves["waves"] + Waves --> Build["rpmbuild -br / -ba\nper package, per wave"] + Lock["config/upstream-sources.json\nURL + SHA-512"] --> Verify["source_pipeline.py\nfetch and verify"] + Verify --> Build + Build --> Repo["createrepo_c"] + Seed --> Repo + Repo --> Txn{"consumer transaction"} + Txn -->|resolves| Sign["cosign sign-blob\nrepodata"] + Sign --> Push["GHCR OCI image"] + Push --> Image["Containerfile\nCOPY --from= pinned by digest"] + Txn -->|does not resolve| Stop["tag does not move"] +``` + +Execution is entirely GitHub Actions on GitHub-hosted runners. There is no +Argo cluster, no self-hosted runner, no remote build service. Copr, +Packit-as-a-Service, Koji, Bodhi, Testing Farm and Kubernetes are not +dependencies of the binary path. + +## Build root + +`config/buildroot.yaml` pins `quay.io/centos-bootc/centos-bootc:c10s` by +digest. That is the image the released artifact is built on, so a package +built here links against the same libraries the running system has. + +**The pin is pulled once per run** and passed to every job as an artifact, +under the bare local name `factory-buildroot:run`. That solves three things a +digest pin alone cannot: + +- **Expiry mid-run.** `c10s` is republished frequently and superseded digests + are garbage collected. A pin correct at 06:01 has been observed 404 by 07:13 + the same morning, killing every job in the affected waves on exit 125. +- **Provenance.** Every job provably used the same bytes, which is a stronger + claim than a pin makes on its own. +- **Cost.** Several hundred registry pulls become one. + +A job that failed to load the artifact cannot silently fall back to pulling +something else: `docker` refuses an unqualified name it does not have locally. + +The bare name is deliberate. A fully-qualified name would let a job that lost +its artifact quietly resolve against a registry, and the run would produce +RPMs from a root nobody recorded. + +## CRB + +The c10s image ships with **CRB disabled**, and several build roots for this +stack live only there: `meson`, `ninja-build`, `wayland-devel`, `gcc-g++`. +Every build step enables it before resolving BuildRequires. + +Without that, the failure is `No matching package to install: meson`, which +reads as a missing package rather than a disabled repository. The requirement +is declared in `config/buildroot.yaml` and asserted by `validate.py`, so it is +stated next to the pin it applies to instead of living in three workflow files. + +## Naming the spec explicitly + +Every `rpmbuild` invocation names the spec file: + +```bash +rpmbuild -ba "$spec" --define "_topdir ..." --define "_sourcedir ..." +``` + +Invoked with no spec argument, `rpmbuild` globs the working directory. The build +output directory contains no spec, so the glob matches nothing and **`rpmbuild` +exits 0 having written nothing and printed nothing**. That is the worst failure +a build can have: green, silent, no RPMs. + +The build stage guards it with an explicit `test -f "$spec"` and an artifact +check that fails when a package produced no RPM, but naming the file means the +case never arises. + +## What Packit does here, and what it does not + +**Does:** `packit srpm` against the pinned `quay.io/packit/packit` container. +A malformed spec fails in seconds instead of after a build root install and a +long compile. `%changelog` dates, unexpanded macros, broken `Patch:` lines — +all caught here. + +**Does not:** build binaries. Packit Service would, through Copr, and Copr has +no CentOS Stream 10 chroot. `.packit.yaml` therefore has no `jobs:` section, so +Packit Service does nothing on a pull request. The only Packit configuration +that does anything is `create-archive`, which points at the factory's +already-verified Source0 rather than letting Packit download the spec's URL — +which would defeat the source lock entirely. + +This is the same split `projectbluefin/utah-packages` operates under, for the +same underlying reason: the build root must be the one the image ships on, and +Copr cannot provide it. + +## Build order + +Solved, never declared: + +``` +extract_buildrequires.py rpmspec --parse over every recipe, in the build root +build_graph.py BuildRequires -> edges -> topological layers +``` + +A wave is one unit of parallelism. Everything in wave N builds concurrently; +everything in wave N+1 resolves its factory `BuildRequires` against wave N. + +`rpmspec --parse` is used rather than a regex over the spec text because EL10 +specs guard much of their `BuildRequires` behind `%if 0%{?rhel}`. A regex sees +both branches and would invent edges that do not apply, or miss ones that do. + +Rich dependencies (`(a with b and c)`, alternations) are kept as whole strings +and every named candidate is recorded as a predecessor. Over-approximating can +only make a wave later than necessary. Under-approximating breaks the build. + +A `BuildRequires` cycle among factory packages fails and **names its members**. +Dropping them silently is how a recipe stops being built. + +The workflow's job graph is static, so the wave count is fixed at six and +`prepare` fails if the solved plan is deeper. That is a real decision, not an +overflow: the alternative is a plan that quietly omits packages. + +## Incremental rebuilds + +`prepare` reads the `org.projectbluefin.factory.state` label on the published +image, which records the input digest of every build it contains. A package is +selected when its digest differs from the recorded one, or when the label has +never seen it. + +Not a git diff: once two runs queue, the second push's diff says nothing about +what the first run built. +Not a NEVR comparison: it misses a patch change that does not move the release. + +Direct `BuildRequires` dependents of anything selected are dragged along. This +is correctness, not optimisation — a library whose soname moved must not leave +its consumers linked against the copy it replaced. + +## Publication + +Seeded from the previously published image, so the candidate is the last good +repository rather than only what this run built. Each source package built is +replaced **by source name**, so a dropped subpackage leaves with its parent. +A package that failed keeps its previous build. + +A build failure alone does not block publication. That is the point of +incremental publication: if one package of seventy is flaky, the other +sixty-nine still reach consumers. Holding everything back is how three runs in +four weeks used to publish. + +What does block is the **consumer transaction**: the packages the image +actually installs, resolved against the candidate plus the pinned `c10s` base. +If that does not resolve — a library moved its soname and a consumer was not +rebuilt — the tag does not move, however many packages built. + +`repomd.xml` is signed keylessly with the workflow's OIDC identity via cosign, +and the image is provenance-attested. + +## Known limitations + +Each of these is a real gap, not a rounding error: + +- **Builds are not hermetic.** The pinned container provides the right ABI but + is not a build root in the sense `mock` means: no build user, no chroot + isolation, no network isolation, no reset between packages. Two packages + building concurrently in the same image could in principle interfere. + `mock --hermetic-build` under `unshare --net` is the agreed direction and is + not built. The blocker is that `mock-core-configs` does not ship an EL10 + chroot. +- **amd64 only.** The image publishes amd64 and arm64. Until arm64 recipes + exist, the arm64 manifest cannot consume factory packages. +- **No build cache.** Each run recompiles what it selects. A cache keyed on + the input digest plus the resolved build root would pay for itself quickly; + it is not implemented. +- **Release gating is advisory.** `report` names every package that did not + build, but nothing merges that into a required status check. The SRPM gate is + the only merge-blocking factory check, and it is not required in the + ruleset. \ No newline at end of file diff --git a/factory/packages/appstream/.factory-upstream.json b/factory/packages/appstream/.factory-upstream.json new file mode 100644 index 00000000..1a7727ba --- /dev/null +++ b/factory/packages/appstream/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:38+00:00", + "package": "appstream", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "64f9183395384d00ad29dea7e8d7763469db44c3686cbc60721bbced29212e6e", + "srpm_checksum_type": "sha256", + "tree": "153916c2ddec64aa26980150988880f7b82f64ee" + } +} diff --git a/factory/packages/appstream/appstream.spec b/factory/packages/appstream/appstream.spec new file mode 100644 index 00000000..2b11c152 --- /dev/null +++ b/factory/packages/appstream/appstream.spec @@ -0,0 +1,584 @@ +Summary: Utilities to generate, maintain and access the AppStream database +Name: appstream +Version: 1.0.2 +Release: 5%{?dist} + +# lib LGPLv2+, tools GPLv2+ +License: GPL-2.0-or-later AND LGPL-2.1-or-later +#URL: http://www.freedesktop.org/wiki/Distributions/AppStream +URL: https://github.com/ximion/appstream +Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz + +# upstream patches +# https://github.com/PackageKit/PackageKit/issues/720 +Patch0: utils-explicitly-set-format-style-when-installing-catalog-metadata.patch + + +# upstreamable patches + + +# needed for cmake auto-provides +BuildRequires: cmake +BuildRequires: meson >= 0.62 +BuildRequires: gettext +BuildRequires: git-core +BuildRequires: gperf +BuildRequires: gtk-doc +BuildRequires: intltool +BuildRequires: itstool +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(gdk-pixbuf-2.0) +BuildRequires: pkgconfig(gi-docgen) >= 2021.1 +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(Qt6Core) >= 6.2.4 +BuildRequires: pkgconfig(xmlb) >= 0.3.14 +BuildRequires: pkgconfig(yaml-0.1) +# lrelease +BuildRequires: qt6-linguist +BuildRequires: sed +BuildRequires: vala +BuildRequires: xmlto + +Requires: appstream-data + +%description +AppStream makes it easy to access application information from the +AppStream database over a nice GObject-based interface. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +# -vala subpackage removed in F30 +Obsoletes: appstream-vala < 0.12.4-3 +Provides: appstream-vala = %{version}-%{release} +%description devel +%{summary}. + +%package compose +Summary: Library for generating AppStream data +Requires: %{name}%{?_isa} = %{version}-%{release} +%description compose +%{summary}. + +%package compose-devel +Summary: Development files for %{name}-compose library +Requires: %{name}-compose%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +%description compose-devel +%{summary}. + +%package qt +Summary: Qt6 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description qt +%{summary}. + +%package qt-devel +Summary: Development files for %{name}-qt bindings +Requires: %{name}-qt%{?_isa} = %{version}-%{release} +Requires: pkgconfig(Qt6Core) >= 6.2.4 +%description qt-devel +%{summary}. + + +%prep +%autosetup -n AppStream-%{version} -S git_am + + +%build +%{meson} \ + -Dcompose=true \ + -Dqt=true \ + -Dvapi=true \ + -Dstemming=false + +%{meson_build} + + +%install +%{meson_install} + +mkdir -p %{buildroot}/var/cache/swcatalog/{icons,gv,xml} +touch %{buildroot}/var/cache/swcatalog/cache.watch + +%find_lang appstream + +%if "%{?_metainfodir}" != "%{_datadir}/metainfo" +# move metainfo to right/legacy location +mkdir -p %{buildroot}%{_kf5_metainfodir} +mv %{buildroot}%{_datadir}/metainfo/*.xml \ + %{buildroot}%{_metainfodir} +%endif + + +%check +%{meson_test} ||: + + +%posttrans +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%transfiletriggerin -- %{_datadir}/swcatalog/xml +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%transfiletriggerpostun -- %{_datadir}/swcatalog/xml +%{_bindir}/appstreamcli refresh --force >& /dev/null ||: + +%files -f appstream.lang +%doc AUTHORS +%license COPYING +%{_bindir}/appstreamcli +%{_mandir}/man1/appstreamcli.1* +%{_datadir}/appstream/ +%dir %{_libdir}/girepository-1.0/ +%{_libdir}/girepository-1.0/AppStream-1.0.typelib +%{_libdir}/libappstream.so.5 +%{_libdir}/libappstream.so.%{version} +%{_metainfodir}/org.freedesktop.appstream.cli.*.xml +# put in -devel? -- rex +%{_datadir}/gettext/its/metainfo.* +%ghost /var/cache/swcatalog/cache.watch +%dir /var/cache/swcatalog/ +%dir /var/cache/swcatalog/icons/ +%dir /var/cache/swcatalog/gv/ +%dir /var/cache/swcatalog/xml/ + +%files devel +%{_includedir}/appstream/ +%{_libdir}/libappstream.so +%{_libdir}/pkgconfig/appstream.pc +%dir %{_datadir}/gir-1.0/ +%{_datadir}/gir-1.0/AppStream-1.0.gir +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/appstream.deps +%{_datadir}/vala/vapi/appstream.vapi +%{_docdir}/appstream/html/ +## symlink pointing to ^^, but need to take care, since rpm has +## trouble replacing dirs with symlinks, omit it for now -- rex +%exclude %{_datadir}/gtk-doc/html/appstream +# Maybe this should be split out? -- ngompa +%{_datadir}/installed-tests/appstream/metainfo-validate.test + +%files compose +%{_libexecdir}/appstreamcli-compose +%{_mandir}/man1/appstreamcli-compose.1* +%{_libdir}/libappstream-compose.so.0 +%{_libdir}/libappstream-compose.so.%{version} +%{_libdir}/girepository-1.0/AppStreamCompose-1.0.typelib +%{_metainfodir}/org.freedesktop.appstream.compose.metainfo.xml + +%files compose-devel +%{_includedir}/appstream-compose/ +%{_libdir}/libappstream-compose.so +%{_libdir}/pkgconfig/appstream-compose.pc +%{_datadir}/gir-1.0/AppStreamCompose-1.0.gir +%dir %{_datadir}/gtk-doc/ +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/appstream-compose + +%files qt +%{_libdir}/libAppStreamQt.so.3 +%{_libdir}/libAppStreamQt.so.%{version} + +%files qt-devel +%{_includedir}/AppStreamQt/ +%{_libdir}/cmake/AppStreamQt/ +%{_libdir}/libAppStreamQt.so + + +%changelog +* Tue Oct 29 2024 Troy Dawson - 1.0.2-5 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 1.0.2-4 +- Bump release for June 2024 mass rebuild + +* Wed Jun 19 2024 Mike FABIAN - 1.0.2-3 +- Resolves: RHEL-43437 Disable stemming support and remove build requirement "libstemmer-devel" + +* Sat Mar 09 2024 Alessandro Astone - 1.0.2-2 +- Backport patch to fix installing swcatalog +- Resolves: RHEL-31497 (Backport latest build from Fedora 40) + +* Sun Feb 25 2024 Neal Gompa - 1.0.2-1 +- Update to 1.0.2 +- Clean up some pre-1.0 scriptlet cruft +- Resolves: RHEL-31497 (Backport latest bulid from Fedora 40) + +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jan 03 2024 Steve Cossette - 1.0.1-1 +- Update to 1.0.1 + +* Fri Nov 17 2023 Neal Gompa - 1.0.0-1 +- Update to 1.0.0 final + +* Thu Nov 02 2023 Neal Gompa - 1.0.0~git20231102.d88ed03-1 +- Rebase to 1.0.0 git snapshot + +* Mon Aug 21 2023 Parag Nemade - 0.16.1-4 +- Migrate to SPDX license expression + +* Wed Jul 19 2023 Fedora Release Engineering - 0.16.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 19 2023 Yaakov Selkowitz - 0.16.1-2 +- Disable Qt5 in RHEL 10 builds +- Remove obsolete BuildRequires + +* Sat Feb 11 2023 Neal Gompa - 0.16.1-1 +- Update to 0.16.1 + +* Wed Jan 18 2023 Fedora Release Engineering - 0.15.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Sep 6 2022 Amit Shah - 0.15.5-2 +- Make qt deps and builds conditional + +* Fri Sep 02 2022 Rex Dieter - 0.15.5-1 +- 0.15.5 + +* Wed Jul 20 2022 Fedora Release Engineering - 0.15.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 07 2022 Rex Dieter - 0.15.4-1 +- 0.15.4 + +* Tue Apr 19 2022 Rex Dieter 0.15.3-1 +- 0.15.3 + +* Wed Feb 23 2022 Rex Dieter - 0.15.2-1 +- 0.15.2 +- support only filetriggers + +* Wed Jan 19 2022 Fedora Release Engineering - 0.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 29 2021 Rex Dieter - 0.15.1-1 +- 0.15.1 (#2028696) +- update triggers to consistently use --force flag on 'appstreamcli refresh' calls + +* Tue Oct 12 2021 Rex Dieter - 0.14.6-1 +- 0.14.6 + +* Sat Aug 28 2021 Neal Gompa - 0.14.5-1 +- Update to 0.14.5 + +* Wed Jul 21 2021 Fedora Release Engineering - 0.14.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 29 2021 Rex Dieter - 0.14.4-1 +- 0.14.4 + +* Sat Apr 03 2021 Neal Gompa - 0.14.3-2 +- Build appstream-compose library for appstream-generator >= 0.8.4 + +* Mon Mar 08 2021 Rex Dieter - 0.14.3-1 +- 0.14.3 + +* Tue Mar 02 2021 Rex Dieter - 0.14.2-1 +- 0.14.2 + +* Wed Feb 17 2021 Rex Dieter - 0.14.1-1 +- 0.14.1 + +* Thu Feb 04 2021 Rex Dieter - 0.14.0-1 +- 0.14.0 + +* Tue Jan 26 2021 Fedora Release Engineering - 0.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 07 2020 Rex Dieter - 0.13.1-1 +- 0.13.1 + +* Mon Jul 27 2020 Fedora Release Engineering - 0.12.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu May 14 2020 Rex Dieter - 0.12.11-1 +- 0.12.11 + +* Thu Mar 19 2020 Rex Dieter - 0.12.10-1 +- 0.12.10 + +* Tue Jan 28 2020 Fedora Release Engineering - 0.12.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Dec 10 2019 Rex Dieter - 0.12.9-1 +- 0.12.9 +- drop dep on publican (#1773385) + +* Sat Aug 17 2019 Rex Dieter - 0.12.8-1 +- 0.12.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.12.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 17 2019 Rex Dieter - 0.12.7-1 +- 0.12.7 +- BR: lmdb + +* Sun Mar 03 2019 Rex Dieter - 0.12.6-1 +- 0.12.6 + +* Mon Feb 04 2019 Kalev Lember - 0.12.4-4 +- Move appstream-vala obsoletes to -devel subpackage + +* Mon Feb 04 2019 Kalev Lember - 0.12.4-3 +- Use standard vala packaging pattern where vapi files are in -devel + +* Thu Jan 31 2019 Fedora Release Engineering - 0.12.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 15 2019 Rex Dieter - 0.12.4-1 +- 0.12.4 +- pull in some upstream fixes (#1667060) + +* Tue Nov 27 2018 Rex Dieter - 0.12.3-1 +- 0.12.3 + +* Fri Oct 12 2018 Kalev Lember - 0.12.2-2 +- Backport an upstream fix for empty content_rating tags + +* Tue Aug 07 2018 Rex Dieter - 0.12.2-1 +- appstream-0.12.2 (#1589595) + +* Thu Jul 12 2018 Fedora Release Engineering - 0.12.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 10 2018 Rex Dieter - 0.12.1-1 +- appstream-0.12.1 (#1589595) +- use %%ldconfig_scriptlets + +* Sun Apr 08 2018 Rex Dieter - 0.12.0-1 +- 0.12.0 (#1563876) + +* Wed Feb 07 2018 Fedora Release Engineering - 0.11.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Feb 02 2018 Jan Grulich - 0.11.8-2 +- Fix broken cmake for Qt library + +* Fri Jan 26 2018 Rex Dieter - 0.11.8-1 +- 0.11.8 + +* Fri Dec 29 2017 Rex Dieter - 0.11.7-2 +- use metainfo dir for f28+ + +* Fri Nov 03 2017 Rex Dieter - 0.11.7-1 +- 0.11.7 + +* Mon Oct 02 2017 Rex Dieter - 0.11.6-1 +- 0.11.6 + +* Thu Sep 14 2017 Rex Dieter - 0.11.5-4 +- pull in upstream vala workaround + +* Thu Sep 14 2017 Rex Dieter - 0.11.5-3 +- hack around broken vala bindings + +* Tue Sep 12 2017 Rex Dieter - 0.11.5-2 +- use file triggers for cache regen + +* Mon Sep 11 2017 Rex Dieter - 0.11.5-1 +- 0.11.5 (#1486970) + +* Thu Sep 07 2017 Rex Dieter - 0.11.4-1 +- 0.11.4 (#1486970) + +* Sun Aug 06 2017 Björn Esser - 0.11.2-4 +- Rebuilt for AutoReq cmake-filesystem + +* Wed Aug 02 2017 Fedora Release Engineering - 0.11.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jul 19 2017 Rex Dieter - 0.11.2-1 +- 0.11.2 + +* Mon Jul 03 2017 Rex Dieter - 0.11.1-1 +- 0.11.1 + +* Fri May 05 2017 Rex Dieter - 0.11.0-1 +- 0.11.0 + +* Wed Apr 05 2017 Rex Dieter - 0.10.6-1 +- 0.10.6 + +* Fri Feb 10 2017 Fedora Release Engineering - 0.10.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 02 2017 Rex Dieter - 0.10.5-1 +- 0.10.5 + +* Thu Dec 15 2016 Rex Dieter - 0.10.4-1 +- 0.10.4 + +* Tue Nov 15 2016 Rex Dieter - 0.10.3-4 +- use /usr/share/appdata, improve /var/cache/app-info + +* Mon Nov 14 2016 Rex Dieter - 0.10.3-2 +- pull in upstream crash fix + +* Tue Nov 01 2016 Rex Dieter - 0.10.3-1 +- 0.10.3 +- update scriptlets to use 'refresh' instead of 'refresh-index' + +* Fri Sep 30 2016 Rex Dieter - 0.10.1-3 +- s|share/appstream|share/appdata/ + +* Sat Sep 17 2016 Rex Dieter - 0.10.1-2 +- improve description, drop no-longer-used deps + +* Sat Sep 17 2016 Rex Dieter - 0.10.1-1 +- 0.10.1 + +* Thu Aug 18 2016 Rex Dieter - 0.9.8-3 +- pull in upstream fixes + +* Wed Aug 17 2016 Rex Dieter - 0.9.8-2 +- (re)enable vala support (#1367892) + +* Fri Aug 12 2016 Rex Dieter - 0.9.8-1 +- 0.9.8 + +* Thu May 12 2016 Rex Dieter - 0.9.6-1 +- 0.9.6 + +* Fri Apr 08 2016 Rex Dieter - 0.9.3-1 +- 0.9.3 + +* Wed Feb 24 2016 Rex Dieter 0.9.1-1 +- 0.9.1 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sun Dec 13 2015 Rex Dieter 0.9.0-1 +- 0.9.0 + +* Sun Dec 13 2015 Rex Dieter 0.8.6-1 +- 0.8.6 + +* Tue Sep 29 2015 Rex Dieter 0.8.4-3 +- Don't abort hitting unknown appstream tags (#1267312) + +* Wed Sep 09 2015 Rex Dieter 0.8.4-2 +- polish scriptlets +- use --force in %%post +- use %%triggerun -- appstream-data (only on upgrades) +- ignore errors, redirect output to /dev/null + +* Tue Sep 08 2015 Rex Dieter 0.8.4-1 +- 0.8.4, refresh-index whenever appstream-data is updated too + +* Thu Sep 03 2015 Rex Dieter 0.8.3-2 +- -devel: fix doc handling, omit gtk-doc symlink (for now) + +* Thu Sep 03 2015 Rex Dieter 0.8.3-1 +- 0.8.3 + +* Sat Jun 27 2015 Rex Dieter 0.8.2-1 +- 0.8.2 + +* Sat Jun 27 2015 Rex Dieter 0.8.1-1 +- 0.8.1 + +* Wed Jun 17 2015 Fedora Release Engineering - 0.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.8.0-2 +- Rebuilt for GCC 5 C++11 ABI change + +* Wed Jan 28 2015 Rex Dieter 0.8.0-1 +- 0.8.0 + +* Wed Jan 21 2015 Rex Dieter 0.7.6-1 +- 0.7.6 + +* Wed Jan 21 2015 Rex Dieter 0.7.5-2 +- -qt: Qt5 support (drop deprecated Qt4-based bindings) + +* Tue Jan 13 2015 Rex Dieter 0.7.5-1 +- 0.7.5 + +* Mon Oct 13 2014 Rex Dieter - 0.7.3-1 +- 0.7.3 +- omit vala support (for now, build broken) + +* Tue Sep 30 2014 Rex Dieter 0.7.2-2 +- pull in some upstream fixes, fix %%posttrans scriptlet + +* Tue Sep 30 2014 Rex Dieter 0.7.2-1 +- 0.7.2, ready qt5 support (not enabled yet) + +* Fri Sep 12 2014 Rex Dieter 0.7.1-1 +- 0.7.1 + +* Wed Aug 20 2014 Rex Dieter 0.7.0-4 +- enable Qt bindings support + +* Fri Aug 15 2014 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 0.7.0-2 +- Rebuilt for gobject-introspection 1.41.4 + +* Wed Jul 16 2014 Rex Dieter 0.7.0-1 +- 0.7.0 + +* Sat Jun 28 2014 Rex Dieter 0.6.2-6 +- Requires: appstream-data + +* Sat Jun 28 2014 Rex Dieter 0.6.2-5 +- backport upstream commit to fix appstream-index hang (#1098306) + +* Fri Jun 20 2014 Rex Dieter 0.6.2-4 +- appstream-index scriptlet hanging, skip for now (#1098306) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 15 2014 Rex Dieter 0.6.2-2 +- update URL + +* Mon May 12 2014 Rex Dieter 0.6.2-1 +- 0.6.2 + +* Sat Apr 26 2014 Rex Dieter 0.6.1-1 +- Appstream-0.6.1, -vala support lives! + +* Sat Apr 19 2014 Rex Dieter - 0.6-1 +- Appstream-0.6 +- Obsoletes: appstream-vala (no longer provided) + +* Sun Feb 23 2014 Rex Dieter 0.5-1 +- Appstream-0.5 + +* Fri Jan 31 2014 Rex Dieter 0.4.0-3 +- rebuild (PackageKit) + +* Mon Nov 04 2013 Rex Dieter 0.4.0-2 +- -vala subpkg +- own %%{_libdir}/girepository-1.0, %%{_libdir}/packagekit-plugins (until someone better comes along) + +* Sun Nov 03 2013 Rex Dieter 0.4.0-1 +- AppStream-0.4.0 + + diff --git a/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch b/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch new file mode 100644 index 00000000..86f760da --- /dev/null +++ b/factory/packages/appstream/utils-explicitly-set-format-style-when-installing-catalog-metadata.patch @@ -0,0 +1,23 @@ +From 36e54f831324c8ad441ef66b49b2149edd752ea9 Mon Sep 17 00:00:00 2001 +From: Matthias Klumpp +Date: Sat, 9 Mar 2024 20:07:32 +0100 +Subject: [PATCH] utils: Explicitly set format style when installing catalog + metadata + +CC: https://github.com/PackageKit/PackageKit/issues/720 +--- + src/as-utils.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/as-utils.c b/src/as-utils.c +index 5efa237f..218f1774 100644 +--- a/src/as-utils.c ++++ b/src/as-utils.c +@@ -2481,6 +2481,7 @@ as_utils_install_metadata_file_internal (const gchar *filename, + if (origin != NULL && !is_yaml) { + g_autoptr(AsMetadata) mdata = as_metadata_new (); + as_metadata_set_locale (mdata, "ALL"); ++ as_metadata_set_format_style (mdata, AS_FORMAT_STYLE_CATALOG); + if (!as_metadata_parse_file (mdata, file_dest, AS_FORMAT_KIND_XML, error)) + return FALSE; + as_metadata_set_origin (mdata, origin); diff --git a/factory/packages/autoconf/.factory-upstream.json b/factory/packages/autoconf/.factory-upstream.json new file mode 100644 index 00000000..eb72a2ae --- /dev/null +++ b/factory/packages/autoconf/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:10+00:00", + "package": "autoconf", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "dcb29f0dc55ba7bbc21f36bb0435ad369e35940b42d057e2635260f13431bc86", + "srpm_checksum_type": "sha256", + "tree": "a42d50e5c13d8eec47a65af0d8cb36d23d14384f" + } +} diff --git a/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch b/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch new file mode 100644 index 00000000..f0da9b98 --- /dev/null +++ b/factory/packages/autoconf/0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch @@ -0,0 +1,35 @@ +From 9ff9c567b1a7a7e66fa6523d4ceff142b86bddaa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Markus=20M=C3=BCtzel?= +Date: Sun, 5 Jan 2025 18:14:19 +0000 +Subject: [PATCH] Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW + +It is needed when building Octave targeting Windows. Without it, the +implementation of "casin" from the Windows runtime is used instead of +the replacement from MinGW-w64. That means that results for the +"casin" function are wrong without that change. +* lib/autoconf/fortran.m4: Do not remove "-lmingwex" or "-lmoldname" +from the linker flags when targeting MinGW. Removing "-lmingwex" causes +an incorrect linker resolution for functions like "casin" for projects +that consist of Fortran and C++ sources. Removing "-lmoldname" causes +issues for Fortran projects that try to use POSIX-like C functions +without a '_' symbol prefix when targeting MinGW. +--- + lib/autoconf/fortran.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 +index cdc197bd..bd68ec3b 100644 +--- a/lib/autoconf/fortran.m4 ++++ b/lib/autoconf/fortran.m4 +@@ -665,7 +665,7 @@ while test $[@%:@] != 1; do + -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ + |-LANG:=* | -LIST:* | -LNO:* | -link) + ;; +- -lkernel32 | -lmingw* | -lmoldname) ++ -lkernel32) + # Ignore this library only on Windows-like systems. + case $host_os in + cygwin* | msys* | mingw* | windows*) ;; +-- +2.47.0 + diff --git a/factory/packages/autoconf/0001-Port-C11-test-to-C.patch b/factory/packages/autoconf/0001-Port-C11-test-to-C.patch new file mode 100644 index 00000000..ca87a61b --- /dev/null +++ b/factory/packages/autoconf/0001-Port-C11-test-to-C.patch @@ -0,0 +1,43 @@ +From dd961fb790d6df85ba57b965f8a6f2534328955b Mon Sep 17 00:00:00 2001 +From: Jakub Jelinek +Date: Thu, 8 Jan 2026 12:14:41 +0100 +Subject: [PATCH] Port C11 test to C++ + +--- + lib/autoconf/c.m4 | 4 ++-- + tests/data/gnulib_std_gnu11_2020_08_17.m4 | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 +index d4f7fbe6350f71e2..7e9bc62789cf62a7 100644 +--- a/lib/autoconf/c.m4 ++++ b/lib/autoconf/c.m4 +@@ -2639,8 +2639,8 @@ ac_cxx_conftest_cxx11_main=' + } + { + // Unicode literals +- char const *utf8 = u8"UTF-8 string \u2500"; +- char16_t const *utf16 = u"UTF-8 string \u2500"; ++ auto const *utf8 = u8"UTF-8 string \u2500"; ++ char16_t const *utf16 = u"UTF-16 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; + } + ' +diff --git a/tests/data/gnulib_std_gnu11_2020_08_17.m4 b/tests/data/gnulib_std_gnu11_2020_08_17.m4 +index 21f7cc7a1526fdc1..d789f8dc039eaf65 100644 +--- a/tests/data/gnulib_std_gnu11_2020_08_17.m4 ++++ b/tests/data/gnulib_std_gnu11_2020_08_17.m4 +@@ -762,8 +762,8 @@ AC_DEFUN([_AC_CXX_CXX11_TEST_BODY], + } + { + // Unicode literals +- char const *utf8 = u8"UTF-8 string \u2500"; +- char16_t const *utf16 = u"UTF-8 string \u2500"; ++ auto const *utf8 = u8"UTF-8 string \u2500"; ++ char16_t const *utf16 = u"UTF-16 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; + } + ]]) +-- +2.52.0 + diff --git a/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch b/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch new file mode 100644 index 00000000..fcb212a8 --- /dev/null +++ b/factory/packages/autoconf/0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch @@ -0,0 +1,102 @@ +From d75171fdf8d03d2e070fcc3dbb5afb942dbd7828 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Sat, 5 Jul 2025 17:20:11 +0200 +Subject: [PATCH] autoreconf: Adapt to the on-disk situation after autopoint + has run. + +Reported in . + +* bin/autoreconf.in (autoreconf_current_directory): After invoking autopoint, +rerun aclocal. When doing so, pass extra options "-I m4" if the configure.ac +does not specify a macro dir. +--- + bin/autoreconf.in | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + +diff --git a/bin/autoreconf.in b/bin/autoreconf.in +index 3f6a74fe..eb0d96a9 100644 +--- a/bin/autoreconf.in ++++ b/bin/autoreconf.in +@@ -489,6 +489,7 @@ sub autoreconf_current_directory ($) + # Actually, it is even more restrictive, as it greps for + # '^AM_GNU_GETTEXT_(REQUIRE_)?VERSION('. We did this above, while + # scanning configure.ac. ++ my $invoked_autopoint; + if (!$uses_liblink && !$uses_iconv && !$uses_gettext) + { + verb "$configure_ac: not using Gettext"; +@@ -514,6 +515,7 @@ sub autoreconf_current_directory ($) + xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", + $autopoint); + } ++ $invoked_autopoint = 1; + } + + +@@ -593,6 +595,7 @@ sub autoreconf_current_directory ($) + # from the final autoconf invocation. + my $aux_dir; + my @aux_files; ++ my @macro_dirs; + my $uses_liblink_via_traces; + my $uses_iconv_via_traces; + my $uses_gettext_via_traces; +@@ -616,6 +619,8 @@ sub autoreconf_current_directory ($) + 'AC_CONFIG_AUX_DIR', + 'AC_CONFIG_HEADERS', + 'AC_CONFIG_SUBDIRS', ++ 'AC_CONFIG_MACRO_DIR_TRACE', ++ 'AC_CONFIG_MACRO_DIR', + 'AC_INIT', + 'AC_REQUIRE_AUX_FILE', + 'AC_PROG_LIBTOOL', +@@ -640,6 +645,8 @@ sub autoreconf_current_directory ($) + my ($macro, @args) = split (/::/); + $aux_dir = $args[0] if $macro eq "AC_CONFIG_AUX_DIR"; + push @aux_files, $args[0] if $macro eq "AC_REQUIRE_AUX_FILE"; ++ push @macro_dirs, $args[0] if $macro eq "AC_CONFIG_MACRO_DIR_TRACE" ++ || $macro eq "AC_CONFIG_MACRO_DIR"; + $uses_autoconf = 1 if $macro eq "AC_INIT"; + # Here we need to explicitly test for GUILE_FLAGS, because in the + # typical situation where configure.ac invokes GUILE_FLAGS, +@@ -679,6 +686,15 @@ sub autoreconf_current_directory ($) + } + } + ++ # When configure.ac does not specify a macro dir, autopoint has ++ # created a directory named 'm4' and copied its *.m4 files into it. ++ # In this case, we need to rerun 'aclocal', in order to pass it the ++ # options "-I m4" this time. ++ if ($invoked_autopoint && !@macro_dirs) ++ { ++ $rerun_aclocal = 1; ++ } ++ + # Gettext consistency checks. + # Some projects intentionally don't call AM_GNU_GETTEXT_(REQUIRE_)VERSION + # because they have all of the gettext infrastructure checked into version +@@ -807,6 +823,8 @@ sub autoreconf_current_directory ($) + xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", + $autopoint); + } ++ $invoked_autopoint = 1; ++ $rerun_aclocal = 1; + } + + +@@ -824,6 +842,12 @@ sub autoreconf_current_directory ($) + } + else + { ++ # When configure.ac does not specify a macro dir, autopoint has ++ # created a directory named 'm4' and copied its *.m4 files into it. ++ if ($invoked_autopoint && !@macro_dirs) ++ { ++ $aclocal_flags .= " -I m4"; ++ } + xsystem ("$aclocal $aclocal_flags"); + } + } +-- +2.43.0 + diff --git a/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch b/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch new file mode 100644 index 00000000..b99c3da2 --- /dev/null +++ b/factory/packages/autoconf/0001-autoreconf-Invoke-autopoint-in-more-situations.patch @@ -0,0 +1,159 @@ +From e2a4935b45f273410e975ecf56ab26ad72855df0 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Wed, 2 Jul 2025 02:43:41 +0200 +Subject: [PATCH 1/2] autoreconf: Invoke autopoint in more situations. + +Reported in . + +* bin/autoreconf.in (autoreconf_current_directory): Invoke autopoint also when +the package uses AM_GNU_GETTEXT (without AM_GNU_GETTEXT_VERSION), AM_PO_SUBDIRS, +AM_ICONV, AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS, AC_LIB_LINKFLAGS_FROM_LIBS, +or GUILE_FLAGS. +--- + bin/autoreconf.in | 80 ++++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 76 insertions(+), 4 deletions(-) + +diff --git a/bin/autoreconf.in b/bin/autoreconf.in +index a5ffc6fa..207900df 100644 +--- a/bin/autoreconf.in ++++ b/bin/autoreconf.in +@@ -440,6 +440,8 @@ sub autoreconf_current_directory ($) + # ---------------------- # + + my $uses_autoconf; ++ my $uses_liblink; ++ my $uses_iconv; + my $uses_gettext; + if (-f $configure_ac) + { +@@ -449,8 +451,13 @@ sub autoreconf_current_directory ($) + s/#.*//; + s/dnl.*//; + $uses_autoconf = 1 if /AC_INIT/; ++ $uses_liblink = 1 if /AC_LIB_HAVE_LINKFLAGS/; ++ $uses_liblink = 1 if /AC_LIB_LINKFLAGS/; ++ $uses_liblink = 1 if /AC_LIB_LINKFLAGS_FROM_LIBS/; ++ $uses_iconv = 1 if /AM_ICONV/; + # See below for why we look for gettext here. +- $uses_gettext = 1 if /^AM_GNU_GETTEXT_(?:REQUIRE_)?VERSION/; ++ $uses_gettext = 1 if /AM_GNU_GETTEXT/; ++ $uses_gettext = 1 if /AM_PO_SUBDIRS/; + } + if (!$uses_autoconf) + { +@@ -485,7 +492,7 @@ sub autoreconf_current_directory ($) + # Actually, it is even more restrictive, as it greps for + # '^AM_GNU_GETTEXT_(REQUIRE_)?VERSION('. We did this above, while + # scanning configure.ac. +- if (!$uses_gettext) ++ if (!$uses_liblink && !$uses_iconv && !$uses_gettext) + { + verb "$configure_ac: not using Gettext"; + } +@@ -495,8 +502,21 @@ sub autoreconf_current_directory ($) + } + else + { +- xsystem_hint ("autopoint is needed because this package uses Gettext", +- $autopoint); ++ if ($uses_gettext) ++ { ++ xsystem_hint ("autopoint is needed because this package uses Gettext", ++ $autopoint); ++ } ++ elsif ($uses_iconv) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AM_ICONV", ++ $autopoint); ++ } ++ elsif ($uses_liblink) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", ++ $autopoint); ++ } + } + + +@@ -576,6 +596,8 @@ sub autoreconf_current_directory ($) + # from the final autoconf invocation. + my $aux_dir; + my @aux_files; ++ my $uses_liblink_via_traces; ++ my $uses_iconv_via_traces; + my $uses_gettext_via_traces; + my $uses_libtool; + my $uses_intltool; +@@ -603,6 +625,11 @@ sub autoreconf_current_directory ($) + 'AM_PROG_LIBTOOL', + 'LT_INIT', + 'LT_CONFIG_LTDL_DIR', ++ 'AC_LIB_LINKFLAGS', ++ 'AC_LIB_HAVE_LINKFLAGS', ++ 'AC_LIB_LINKFLAGS_FROM_LIBS', ++ 'GUILE_FLAGS', ++ 'AM_ICONV', + 'AM_GNU_GETTEXT', + 'AM_INIT_AUTOMAKE', + 'GTK_DOC_CHECK', +@@ -617,6 +644,15 @@ sub autoreconf_current_directory ($) + $aux_dir = $args[0] if $macro eq "AC_CONFIG_AUX_DIR"; + push @aux_files, $args[0] if $macro eq "AC_REQUIRE_AUX_FILE"; + $uses_autoconf = 1 if $macro eq "AC_INIT"; ++ # Here we need to explicitly test for GUILE_FLAGS, because in the ++ # typical situation where configure.ac invokes GUILE_FLAGS, ++ # guile.m4 defines GUILE_FLAGS and uses AC_LIB_LINKFLAGS_FROM_LIBS, ++ # the traces still for AC_LIB_LINKFLAGS_FROM_LIBS are empty. ++ $uses_liblink_via_traces = 1 if $macro eq "AC_LIB_LINKFLAGS" ++ || $macro eq "AC_LIB_HAVE_LINKFLAGS" ++ || $macro eq "AC_LIB_LINKFLAGS_FROM_LIBS" ++ || $macro eq "GUILE_FLAGS"; ++ $uses_iconv_via_traces = 1 if $macro eq "AM_ICONV"; + $uses_gettext_via_traces = 1 if $macro eq "AM_GNU_GETTEXT"; + $uses_libtool = 1 if $macro eq "AC_PROG_LIBTOOL" + || $macro eq "AM_PROG_LIBTOOL" +@@ -741,6 +777,42 @@ sub autoreconf_current_directory ($) + } + + ++ # --------------------------------------------- # ++ # Running autopoint, if not already run above. # ++ # --------------------------------------------- # ++ ++ if (!$uses_liblink_via_traces && !$uses_iconv_via_traces && !$uses_gettext_via_traces) ++ { ++ verb "$configure_ac: not needing autopoint"; ++ } ++ elsif (!$install) ++ { ++ verb "$configure_ac: not running autopoint: --install not given"; ++ } ++ elsif ($uses_liblink || $uses_iconv || $uses_gettext) ++ { ++ verb "$configure_ac: not running autopoint a second time"; ++ } ++ else ++ { ++ if ($uses_gettext_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses Gettext", ++ $autopoint); ++ } ++ elsif ($uses_iconv_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AM_ICONV", ++ $autopoint); ++ } ++ elsif ($uses_liblink_via_traces) ++ { ++ xsystem_hint ("autopoint is needed because this package uses AC_LIB_LINKFLAGS", ++ $autopoint); ++ } ++ } ++ ++ + # ------------------- # + # Rerunning aclocal. # + # ------------------- # +-- +2.43.0 + diff --git a/factory/packages/autoconf/autoconf-init.el b/factory/packages/autoconf/autoconf-init.el new file mode 100644 index 00000000..1c5725dc --- /dev/null +++ b/factory/packages/autoconf/autoconf-init.el @@ -0,0 +1,16 @@ +;; Activate autoconf-mode + +;; Uncomment the following code if you feel that autoconf-mode.el does better +;; job than Emacs's default autoconf.el. + +;; (autoload 'autoconf-mode "autoconf-mode" +;; "Major mode for editing autoconf files." t) +;; (setq auto-mode-alist +;; (cons '("\.ac\'\|configure\.in\'" . autoconf-mode) +;; auto-mode-alist)) + +;; Activate autotest-mode +(autoload 'autotest-mode "autotest-mode" + "Major mode for editing autotest files." t) +(setq auto-mode-alist + (cons '("\.at\'" . autotest-mode) auto-mode-alist)) diff --git a/factory/packages/autoconf/autoconf.spec b/factory/packages/autoconf/autoconf.spec new file mode 100644 index 00000000..07c40e2f --- /dev/null +++ b/factory/packages/autoconf/autoconf.spec @@ -0,0 +1,737 @@ +# Run extended test +%bcond_without autoconf_enables_optional_test + +# The design goal is to allow use of the same specfile on the original +# `autoconf` package and the `autoconf-latest` package by just changing the +# `Name` property. +# The `autoconf-latest` package aims to provide a versioned sub-package which +# enables the user to install different updates in parallel on long term +# releases. Hence, the versioned package installs its artifacts in +# `/opt/{namespace}/{versioned name}`. +Name: autoconf +Version: 2.72 +Release: 10%{?dist} + +# To help future rebase, the following licenses were seen in the following files/folders: +# '*' is anything that was not explicitly listed earlier in the folder +# usr/bin/* - GPL-3.0-or-later +# usr/share/: +# autoconf: +# Autom4te: +# {C4che.pm,General.pm,Getopt.pm,Request.pm}: GPL-3.0-or-later +# * - GPL-2.0-or-later +# autoconf: +# * - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# autoscan/autoscan.list - GPL-3.0-or-later +# autotest: +# * - GPL-3.0-or-later WITH Autoconf-exception-3.0 +# build-aux: +# config.{sub,guess} - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# install-sh - X11 AND LicenseRef-Fedora-Public-Domain +# m4sugar: +# {foreach.m4,m4sh.m4,m4sugar.m4} - GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 +# * - None found +# INSTALL - FSFAP +# autom4te.cfg - GPL-3.0-or-later +# doc/autoconf: +# {AUTHORS,THANKS} - GPL-3.0-or-later +# {README,TODO} - FSFAP +# * - None found +# emacs/site-lisp: +# autoconf/*.el - GPL-3.0-or-later +# * - None found +# info/autoconf.info.gz/autoconf.info - GFDL-1.3-or-later +# config.site - None found +# usr/share/man/man1/*: generated from usr/bin/* using help2man +# +# Note on Autoconf-exception{,-generic}-3.0, one is the license itself, the other is +# the text note that can be found in sources. That doesn't make sense to have 2 separate IDs +# but that's how it is. +License: GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GFDL-1.3-or-later AND FSFAP AND X11 AND LicenseRef-Fedora-Public-Domain +Source0: https://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz +Source1: config.site +Source2: autoconf-init.el +URL: https://www.gnu.org/software/autoconf/ + +# From upstream 9ff9c567b1a7a7e66fa6523d4ceff142b86bddaa +Patch: 0001-Keep-lmingwex-and-lmoldname-in-linker-flags-for-MinG.patch + +# From https://savannah.gnu.org/support/index.php?111272 +Patch: 0001-autoreconf-Invoke-autopoint-in-more-situations.patch +# From https://savannah.gnu.org/support/index.php?111273 +Patch: 0001-autoreconf-Adapt-to-the-on-disk-situation-after-auto.patch + +# Temporary fix (to be replaced by upstream patches) +Patch: 0001-Port-C11-test-to-C.patch + +%if "%{name}" != "autoconf" +# Set this to the sub-package base name, for "autoconf-latest" +%global autoconf %(echo autoconf%{version} | tr -d .) +# Enforce use of system provided emacs support +%global autoconf_enables_emacs 0 + +%if 0%{?rhel} > 0 +%global _prefix /opt/rh/%{autoconf} +%else +# We intentionally do not define a case for Fedora, as it should not +# need this functionality, and letting it error avoids accidents. +%{error:"Each downstream must specify its own /opt namespace"} +%endif +Summary: Meta package to include latest version of autoconf +%else +#name == autoconf +# Enable Emacs support +%bcond_without autoconf_enables_emacs +%global autoconf %{name} +Summary: A GNU tool for automatically configuring source code +Provides: autoconf-latest = %{version}-%{release} +Provides: %(echo autoconf%{version} | tr -d .) = %{version}-%{release} +%endif + +BuildArch: noarch + + +# run "make check" by default +%bcond_without check + +BuildRequires: perl +Requires: perl(File::Compare) +Requires: perl-interpreter +# m4 >= 1.4.6 is required, >= 1.4.14 is recommended: +BuildRequires: m4 >= 1.4.14 +Requires: m4 >= 1.4.14 +%if %{with autoconf_enables_emacs} +Requires: emacs-filesystem +BuildRequires: emacs +%endif +# the filtering macros are currently in /etc/rpm/macros.perl: +BuildRequires: perl-generators +BuildRequires: perl-macros +BuildRequires: perl(Data::Dumper) +# from f19, Text::ParseWords is not the part of 'perl' package +BuildRequires: perl(Text::ParseWords) + +# %%configure replaces config.guess/config.sub for us, which confuses autoconf +# build system and it produces empty man pages for those scripts if help2man is +# not installed +BuildRequires: help2man +BuildRequires: make + +# gettext-devel 0.23.2, 0.24.2 or 0.25.1 introduced behavior changes that +# require autoreconf to execute autopoint, hence the new runtime dependency +Requires: gettext-devel + +%if %{with check} +%if %{with autoconf_enables_optional_test} +# For extended testsuite coverage +BuildRequires: gcc-gfortran +%if 0%{?fedora} >= 15 +BuildRequires: erlang +%endif +%endif +%endif + +# filter out bogus perl(Autom4te*) dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Autom4te:: +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Autom4te:: + +%if "%{name}" != "autoconf" +# We're still on the autoconf-latest package +Requires: %{autoconf} +%description -n autoconf-latest +The latest GNU Autoconf, with a version-specific install +%files -n autoconf-latest + +%package -n %{autoconf} +Summary: A GNU tool for automatically configuring source code +%endif + +%description -n %{autoconf} +GNU's Autoconf is a tool for configuring source code and Makefiles. +Using Autoconf, programmers can create portable and configurable +packages, since the person building the package is allowed to +specify various configuration options. + +You should install Autoconf if you are developing software and +would like to create shell scripts that configure your source code +packages. If you are installing Autoconf, you will also need to +install the GNU m4 package. + +Note that the Autoconf package is not required for the end-user who +may be configuring software with an Autoconf-generated script; +Autoconf is only required for the generation of the scripts, not +their use. + + +%prep +%autosetup -n autoconf-%{version} -p1 + +%build +%if %{with autoconf_enables_emacs} +export EMACS=%{_bindir}/emacs +%else +export EMACS=%{_bindir}/false +%endif +%configure \ + %{?with_autoconf_enables_emacs:--with-lispdir=%{_emacs_sitelispdir}/autoconf} +%make_build + + +%check +%if %{with check} +# make check # TESTSUITEFLAGS='1-198 200-' # will disable nr. 199. +# make check TESTSUITEFLAGS="-k \!erlang" +case $(./build-aux/config.guess) in + i?86-*-linux*) + # Exclude test known to be failing on i686 + make check %{?_smp_mflags} TESTSUITEFLAGS="-k '!AC_SYS_LARGEFILE,!AC_SYS_YEAR2038,!AC_SYS_YEAR2038_RECOMMENDED'" + # Execute these tests only, to keep record on the actual status + make check TESTSUITEFLAGS="-k 'AC_SYS_LARGEFILE,AC_SYS_YEAR2038,AC_SYS_YEAR2038_RECOMMENDED'" %{?_smp_mflags} || true + ;; + *) + make check %{?_smp_mflags} + ;; +esac +%endif + + +%install +%make_install +mkdir -p %{buildroot}/share +install -m 0644 %{SOURCE1} %{buildroot}%{_datadir} + +%if %{with autoconf_enables_emacs} +# Create file to activate Emacs modes as required +mkdir -p %{buildroot}%{_emacs_sitestartdir} +install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} +%endif + +%if "%{name}" != "autoconf" +install -d -m 755 ${RPM_BUILD_ROOT}/etc/scl/prefixes +dirname %{_prefix} > %{autoconf}.prefix +install -p -m 644 %{autoconf}.prefix ${RPM_BUILD_ROOT}/etc/scl/prefixes/%{autoconf} + +echo "export PATH=%{_prefix}/bin:\$PATH" > enable.scl +install -p -m 755 enable.scl ${RPM_BUILD_ROOT}/%{_prefix}/enable +%endif + +%files -n %{autoconf} +%license COPYING* +%{_bindir}/* +%{_infodir}/autoconf.info* +# don't include standards.info, because it comes from binutils... +%exclude %{_infodir}/standards* +# don't include info's TOP directory +%exclude %{_infodir}/dir +%{_datadir}/autoconf/ +%{_datadir}/config.site +%if %{with autoconf_enables_emacs} +%{_datadir}/emacs/site-lisp/* +%endif +%{_mandir}/man1/* +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%if "%{name}" != "autoconf" +/etc/scl/prefixes/%{autoconf} +%{_prefix}/enable +%endif + + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 2.72-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 2.72-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Thu Jan 08 2026 Frédéric Bérat - 2.72-8 +- Port C11 test to C++20 + +* Wed Jul 23 2025 Fedora Release Engineering - 2.72-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Mon Jul 21 2025 Frédéric Bérat - 2.72-6 +- Get upstream temporary fixes to deal with gettext 0.25+ (related to BZ#2376582) +- Add gettext-devel new runtime dependency due to autopoint execution + +* Fri Jan 31 2025 Frédéric Bérat - 2.72-5 +- Backport: Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW (BZ#2341043) + +* Thu Jan 16 2025 Fedora Release Engineering - 2.72-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 2.72-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 18 2024 Frédéric Bérat - 2.72-2 +- Ensure that we can transition from autoconf-latest to autoconf + +* Wed Feb 14 2024 Frédéric Bérat - 2.72-1 +- Rebase to version 2.72 (#2255664) +- Drop upstream patches +- Exclude AC_SYS_LARGEFILE, AC_SYS_YEAR2038, AC_SYS_YEAR2038_RECOMMENDED for ix86 + +* Mon Jan 22 2024 Fedora Release Engineering - 2.71-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 2.71-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 22 2023 Frederic Berat - 2.71-8 +- Modify spec file to support autoconf-latest package + +* Mon Aug 07 2023 Frederic Berat - 2.71-7 +- Migrate to SPDX licences (#2222088) + +* Wed Jul 19 2023 Fedora Release Engineering - 2.71-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 2.71-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Oct 11 2022 Frederic Berat - 2.71-4 +- Cherry-pick: Fix typo in variable name (#2132715) +- Backport: Fix testsuite failures with bash 5.2 + +* Wed Jul 20 2022 Fedora Release Engineering - 2.71-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 2.71-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 24 2021 Ondrej Dubaj - 2.71-1 +- Rebase to version 2.71 (#1905678) + +* Wed Jul 21 2021 Fedora Release Engineering - 2.69-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.69-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 Patrik Novotný - 2.69-35 +- Backport: add --runstatedir option to configure + +* Mon Jul 27 2020 Fedora Release Engineering - 2.69-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Mar 11 2020 Ondrej Dubaj - 2.69-33 +- Added perl dependency + +* Tue Jan 28 2020 Fedora Release Engineering - 2.69-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Aug 28 2019 Ondrej Dubaj - 2.69-31 +- Port tests to Bash 5 + +* Wed Jul 24 2019 Fedora Release Engineering - 2.69-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 2.69-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 2.69-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 2.69-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Oct 27 2017 Pavel Raiskup - 2.69-26 +- drop %%config attribute for /usr/share/config.site file (rhbz#1506655) + +* Wed Jul 26 2017 Fedora Release Engineering - 2.69-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.69-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jul 29 2016 Pavel Raiskup - 2.69-23 +- re-enable erlang tests, after rhbz#1240487 fix +- packaging guidelines fixes + +* Wed Feb 03 2016 Fedora Release Engineering - 2.69-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jul 13 2015 Pavel Raiskup - 2.69-21 +- disable erlang tests as erlang on i386 is currently broken (#1236072) + +* Mon Jul 06 2015 Pavel Raiskup - 2.69-21 +- '{' character in regular expression must be escaped with perl 5.22 + +* Fri Jun 26 2015 Pavel Raiskup - 2.69-20 +- conform to Packaging:Emacs guidelines (#1204274), init script + by Jonathan Underwood + +* Wed Jun 17 2015 Fedora Release Engineering - 2.69-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Mar 20 2015 Pavel Raiskup - 2.69-18 +- depend on emacs-filesystem (rhbz#1204274) + +* Fri Feb 27 2015 Pavel Raiskup - 2.69-17 +- config.site: take AC_PREFIX_DEFAULT([/usr]) into account, by + agruen at kernel.org (rhbz#1196340) + +* Wed Nov 12 2014 Pavel Raiskup - 2.69-16 +- avoid generating empty man pages for gnuconfig (#1162227) + +* Sat Jun 07 2014 Fedora Release Engineering - 2.69-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Dec 17 2013 Pavel Raiskup - 2.69-14 +- fix config.site to not affect cross compilation (Stefan Sørensen, #1042775) + +* Sat Aug 03 2013 Fedora Release Engineering - 2.69-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 2.69-12 +- Perl 5.18 rebuild + +* Mon Jun 17 2013 Pavel Raiskup - 2.69-11 +- config.site installation should be safe as long as the CONFIG_SITE=NONE is + exported by the rpmbuild environment (#772999) + +* Thu Feb 14 2013 Pavel Raiskup - 2.69-10 +- BR the perl(Text::ParseWords) explicitly to enable build again + +* Wed Feb 13 2013 Fedora Release Engineering - 2.69-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jan 23 2013 Pavel Raiskup - 2.69-9 +- disable 'config.site' under /usr/share for now + +* Tue Jan 15 2013 Pavel Raiskup - 2.69-8 +- the 'INSTALL' file can be used as template file for packages which are using + autoconf - mark it for installation again (#661623) + +* Tue Jan 08 2013 Pavel Raiskup - 2.69-7 +- Support the 'config.site' file in /usr/share + +* Thu Oct 25 2012 Pavel Raiskup - 2.69-6 +- fedora-review (minor) fixes and typos: trim lines, remove defattr(,,), do not + run `rm -rf %%{buildroot} at the beginning of install section, use curly + brackets only around rpm macros/variables and not around shell variables, + remove clean section + +* Wed Sep 26 2012 Pavel Raiskup - 2.69-5 +- do not install the "INSTALL" documentation file (#661623) + +* Thu Sep 13 2012 Karsten Hopp 2.69-4 +- don't require erlang in RHEL + +* Wed Jul 18 2012 Fedora Release Engineering - 2.69-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 18 2012 Karsten Hopp 2.69-2 +- spec file changes by Ralf Corsépius: +- Use %%bcond_without for --with/out=check. +- Add BR: perl(Data::Dumper). +- Remove BR: automake (Testsuite doesn't need automake). +- Add BR: gcc-gfortran, erlang (Extend testsuite). +- Remove TESTSUITEFLAGS (Was referring to autoconf < 2.69). +- Add rpm-4.9 perl-filters %%__provides_exclude, %%__requires_exclude. + Remove rpm-4.8 perl-filters (Address RHBZ 823770). +- Reflect autoconf being GPLv3'ed. +- Add BR: perl-macros, Remove BR: perl-devel + +* Tue May 15 2012 Karsten Hopp 2.69-1 +- update to 2.69 + +* Thu Jan 12 2012 Fedora Release Engineering - 2.68-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 2.68-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 06 2010 Karsten Hopp 2.68-1 +- update to 2.68 + +* Tue Jul 06 2010 Karsten Hopp 2.66-2 +- add 2 upstream patches (#611661) +- allow rpmbuild --without check + +* Mon Jul 5 2010 Stepan Kasal - 2.66-1 +- new upstream version, drop upstreamed patches + +* Tue Mar 2 2010 Stepan Kasal - 2.65-2 +- use perl filtering macros + +* Wed Nov 25 2009 Stepan Kasal - 2.65-1 +- new upstream version +- backported patch: make AC_FUNC_MMAP work with C++ again + +* Tue Nov 24 2009 Stepan Kasal - 2.64-2 +- add back upstream AH_CHECK_HEADERS, backported from upstream + fixes some build failures + +* Fri Oct 30 2009 Stepan Kasal - 2.64-1 +- new upstream version +- skip failing test + +* Tue Aug 11 2009 Ville Skyttä - 2.63-4 +- Use lzma compressed upstream tarball. + +* Fri Jul 24 2009 Fedora Release Engineering - 2.63-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Feb 23 2009 Fedora Release Engineering - 2.63-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Sep 17 2008 Stepan Kasal 2.63-1 +- upstream bugfix release +- all patches dropped, the issues are fixed upstream + +* Mon Jul 07 2008 Karsten Hopp 2.62-5 +- fix multiline variables (p.e. #449467) + +* Fri Jul 4 2008 Stepan Kasal 2.62-4 +- add a quick fix for #449944 +- remove Requires: mktemp, imake, grep; these are required by the generated + configure, but not by Autoconf. +- switch on make check + +* Tue Jun 24 2008 Karsten Hopp 2.62-3 +- add fix for same line comments #449245 (Ralf Wildenhues) + +* Fri Jun 06 2008 Karsten Hopp 2.62-2 +- add upstream fix from Eric Blake for #449973, + m4_if releated error message from autotest + +* Tue May 13 2008 Karsten Hopp 2.62-1 +- autoconf-2.62 + +* Mon Oct 29 2007 Stepan Kasal 2.61-10 +- require m4 >= 1.4.7 +- Resolves: #236073 + +* Wed Aug 08 2007 Karsten Hopp 2.61-9 +- update license tag + +* Tue Feb 27 2007 Karsten Hopp 2.61-8 +- own %%{_datadir}/emacs/ (#225296) + +* Mon Feb 26 2007 Karsten Hopp 2.61-7 +- add Requires: grep + +* Thu Feb 22 2007 Karsten Hopp 2.61-6 +- drop gawk, sed requirements (#225296) +- add some comments + +* Mon Feb 19 2007 Karsten Hopp 2.61-5 +- use ./configure +- filter dependencies + +* Thu Feb 15 2007 Karsten Hopp 2.61-4 +- add disttag +- replace tabs with spaces +- fix buildroot +- use Requires(post), Requires(preun) +- use make install DESTDIR=.... +- drop perl requirement as it gets pulled it automatically + +* Thu Jan 18 2007 Karsten Hopp 2.61-3 +- don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä) + +* Tue Nov 21 2006 Karsten Hopp 2.61-2 +- drop obsolete linkX11 patch + +* Tue Nov 21 2006 Karsten Hopp 2.61-1 +- autoconf-2.61 + +* Thu Nov 09 2006 Karsten Hopp 2.60-4 +- autoconf-2.60 + +* Fri Oct 13 2006 Stepan Kasal 2.59-12 +- Add autoconf-2.59-lock.patch to eliminate a perl warning (#210653). + +* Thu Jul 27 2006 Karsten Hopp 2.59-11 +- Requires imake for _AC_PATH_X + +* Thu Jul 20 2006 Karsten Hopp 2.59-10 +- rebuild + +* Wed Jul 19 2006 Karsten Hopp 2.59-9 +- rebuild + +* Tue May 16 2006 Karsten Hopp 2.59-8 +- try to link with libX11 instead of libXt + +* Wed Feb 15 2006 Karsten Hopp 2.59-7 +- XrmInitialize takes no argument (#181340) + +* Mon Feb 06 2006 Karsten Hopp 2.59-6 +- check for Xlib.h instead of Intrinsic.h to find X11 headers + (#176379) + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Tue Sep 21 2004 Daniel Reed - 2.59-5 +- rebuilt for dist-fc3 + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Dec 18 2003 Jens Petersen - 2.59-2 +- rebuild with perl-5.8.2 [Harald Hoyer] + +* Thu Nov 13 2003 Jens Petersen - 2.59-1 +- update to 2.59 bugfix release +- remove autoconf-2.58-fix-ac_abs-109267.patch no longer needed + +* Fri Nov 7 2003 Jens Petersen - 2.58-2 +- fix problem with ac_abs_{build,src}dir (#109267) [reported by Joe Orton, + patch by Alexandre Duret-Lutz] + +* Wed Nov 5 2003 Jens Petersen - 2.58-1 +- 2.58 release + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Thu Dec 12 2002 Elliot Lee 2.57-2 +- Fix missing/unpackaged file + +* Thu Dec 5 2002 Jens Petersen 2.57-1 +- update to 2.57 bugfix release +- buildrequire emacs (#79031), sed and m4 + +* Sat Nov 23 2002 Jens Petersen 2.56-2 +- add --without check build option to control whether "make check" run +- don't gzip info files explicitly +- use exclude for unwanted info files + +* Thu Nov 21 2002 Jens Petersen +- no longer obsolete autoconf253 + +* Mon Nov 18 2002 Jens Petersen 2.56-1 +- update to 2.56 +- obsolete autoheader-warn patch +- no longer provide autoconf253 +- include site-lisp and man files +- remove info dir which is not in the manifest +- do not version suffix bin files for now + +* Mon Aug 19 2002 Jens Petersen 2.53-8 +- make check + +* Fri Jun 28 2002 Jens Petersen 2.53-7 +- update url (#66840) +- added doc files + +* Fri Jun 21 2002 Tim Powers 2.53-6 +- automated rebuild + +* Sun May 26 2002 Tim Powers 2.53-5 +- automated rebuild + +* Mon May 20 2002 Bill Nottingham 2.53-4 +- provide autoconf253 + +* Thu May 16 2002 Bill Nottingham 2.53-3 +- obsolete autoconf253 + +* Wed May 8 2002 Jens Petersen 2.53-2 +- patch autoheader so that --warnings=CATEGORY works (#64566) + [reported with fix by hjl@gnu.org] + +* Tue Apr 23 2002 Jens Petersen 2.53-1 +- update to autoconf-2.53 +- drop mawk patch again +- version suffix bindir files and add symlinks to unversioned names + +* Fri Feb 1 2002 Jens Petersen 2.52-7 +- revert to 2.52 (also fixes #58210!) +- remove relversion variable +- bring back mawk -> gawk patch + +* Wed Jan 09 2002 Tim Powers 2.52-6 +- automated rebuild + +* Thu Dec 20 2001 Jens Petersen 2.52-5 +- update to 2.52f +- add URL +- minor description improvements +- define relversion to carry version number +- mawk.patch no longer needed + +* Sat Nov 17 2001 Florian La Roche 2.52-4 +- rebuild + +* Wed Sep 19 2001 Jens Petersen 2.52-3 +- restore patch to prefer gawk to mawk + +* Tue Sep 18 2001 Florian La Roche 2.52-2 +- update to 2.52d + +* Mon Sep 17 2001 Jens Petersen 2.52-1 +- update to 2.52 +- remove obsolete patches, since already new version +- dont install install-sh + +* Tue Jul 10 2001 Jens Petersen +- add patch to include various standard C headers as needed + by various autoconf tests (#19114) +- add patch to autoscan.pl to get a better choice of init + file (#42071), to test for CPP after CC (#42072) and to + detect C++ source and g++ (#42073). + +* Tue Jun 26 2001 Jens Petersen +- Add a back-port of _AC_PROG_CXX_EXIT_DECLARATION + from version 2.50 to make detection of C++ exit() + declaration prototype platform independent. The check is + done in AC_PROG_CXX with the result stored in "confdefs.h". + The exit() prototype in AC_TRY_RUN_NATIVE is no longer needed. + (fixes #18829) + +* Wed Nov 29 2000 Bernhard Rosenkraenzer +- Fix up interoperability with glibc 2.2 and gcc 2.96: + AC_TRY_RUN_NATIVE in C++ mode added a prototype for exit() to + the test code without throwing an exception, causing a conflict + with stdlib.h --> AC_TRY_RUN_NATIVE for C++ code including stdlib.h + always failed, returning wrong results + +* Fri Jul 21 2000 Nalin Dahyabhai +- add textutils as a dependency (#14439) + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jun 5 2000 Jeff Johnson +- FHS packaging. + +* Sun Mar 26 2000 Florian La Roche +- fix preun + +* Fri Mar 26 1999 Cristian Gafton +- add patch to help autoconf clean after itself and not leave /tmp clobbered + with acin.* and acout.* files (can you say annoying?) + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 4) +- use gawk, not mawk + +* Thu Mar 18 1999 Preston Brown +- moved /usr/lib/autoconf to /usr/share/autoconf (with automake) + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Tue Jan 12 1999 Jeff Johnson +- update to 2.13. + +* Fri Dec 18 1998 Cristian Gafton +- build against glibc 2.1 + +* Mon Oct 05 1998 Cristian Gafton +- requires perl + +* Thu Aug 27 1998 Cristian Gafton +- patch for fixing /tmp race conditions + +* Sun Oct 19 1997 Erik Troan +- spec file cleanups +- made a noarch package +- uses autoconf +- uses install-info + +* Thu Jul 17 1997 Erik Troan +- built with glibc diff --git a/factory/packages/autoconf/config.site b/factory/packages/autoconf/config.site new file mode 100644 index 00000000..5bea225f --- /dev/null +++ b/factory/packages/autoconf/config.site @@ -0,0 +1,29 @@ +# This is the config.site file to satisfy FHS defaults when installing below +# /usr. +# +# You may override this file by your config.site using the CONFIG_SITE env +# variable. +# +# Note: This file includes also RHEL/Fedora fix for installing libraries into +# "/lib/lib64" on 64bit systems. + +if test -n "$host"; then + # skip when cross-compiling + return 0 +fi + +if test "$prefix" = /usr \ + || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; } +then + test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc + test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var + test "$localstatedir" = '${prefix}/var' && localstatedir=/var + + ARCH=`uname -m` + for i in x86_64 ppc64 s390x aarch64; do + if test $ARCH = $i; then + test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64' + break + fi + done +fi diff --git a/factory/packages/avahi/.factory-upstream.json b/factory/packages/avahi/.factory-upstream.json new file mode 100644 index 00000000..b321e63a --- /dev/null +++ b/factory/packages/avahi/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:12+00:00", + "package": "avahi", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "1f5db3b6c18e7418a23711b48717ccf835cb628f6151a23156d0fb50764d5393", + "srpm_checksum_type": "sha256", + "tree": "262554ba0bc63ba5997b2fcd2c7ac60f7fbe5c44" + } +} diff --git a/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch b/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch new file mode 100644 index 00000000..692b3b32 --- /dev/null +++ b/factory/packages/avahi/avahi-0.6.30-mono-libdir.patch @@ -0,0 +1,50 @@ +diff -uNr avahi-0.6.30.old/avahi-sharp/Makefile.am avahi-0.6.30/avahi-sharp/Makefile.am +--- avahi-0.6.30.old/avahi-sharp/Makefile.am 2010-06-29 05:30:35.000000000 +0200 ++++ avahi-0.6.30/avahi-sharp/Makefile.am 2011-11-27 17:03:04.933192204 +0100 +@@ -73,10 +73,10 @@ + endif + + install-data-hook: $(ASSEMBLY) +- $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + uninstall-hook: $(ASSEMBLY) +- $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + endif + endif +diff -uNr avahi-0.6.30.old/avahi-sharp.pc.in avahi-0.6.30/avahi-sharp.pc.in +--- avahi-0.6.30.old/avahi-sharp.pc.in 2010-06-25 02:54:22.000000000 +0200 ++++ avahi-0.6.30/avahi-sharp.pc.in 2011-11-27 17:00:05.482192846 +0100 +@@ -5,4 +5,4 @@ + Name: avahi-sharp + Description: Mono bindings for the Avahi mDNS/DNS-SD stack + Version: @PACKAGE_VERSION@ +-Libs: -r:${libdir}/mono/avahi-sharp/avahi-sharp.dll ++Libs: -r:${prefix}/lib/mono/avahi-sharp/avahi-sharp.dll +diff -uNr avahi-0.6.30.old/avahi-ui-sharp/Makefile.am avahi-0.6.30/avahi-ui-sharp/Makefile.am +--- avahi-0.6.30.old/avahi-ui-sharp/Makefile.am 2010-06-29 05:30:35.000000000 +0200 ++++ avahi-0.6.30/avahi-ui-sharp/Makefile.am 2011-11-27 17:04:59.812193067 +0100 +@@ -60,10 +60,10 @@ + endif + + install-data-hook: $(ASSEMBLY) +- $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + uninstall-hook: $(ASSEMBLY) +- $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) ++ $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(prefix)/lib /root $(DESTDIR)$(prefix)/lib + + endif + endif +diff -uNr avahi-0.6.30.old/avahi-ui-sharp.pc.in avahi-0.6.30/avahi-ui-sharp.pc.in +--- avahi-0.6.30.old/avahi-ui-sharp.pc.in 2010-06-25 02:54:22.000000000 +0200 ++++ avahi-0.6.30/avahi-ui-sharp.pc.in 2011-11-27 17:04:05.077192737 +0100 +@@ -6,4 +6,4 @@ + Description: Mono bindings for the Avahi mDNS/DNS-SD stack + Version: @PACKAGE_VERSION@ + Requires: gtk-sharp-2.0 +-Libs: -r:${libdir}/mono/avahi-ui-sharp/avahi-ui-sharp.dll ++Libs: -r:${prefix}/lib/mono/avahi-ui-sharp/avahi-ui-sharp.dll diff --git a/factory/packages/avahi/avahi-0.8-no_undefined.patch b/factory/packages/avahi/avahi-0.8-no_undefined.patch new file mode 100644 index 00000000..1d6f786e --- /dev/null +++ b/factory/packages/avahi/avahi-0.8-no_undefined.patch @@ -0,0 +1,31 @@ +diff --git a/avahi-qt/Makefile.am b/avahi-qt/Makefile.am +index b404810..6911db8 100644 +--- a/avahi-qt/Makefile.am ++++ b/avahi-qt/Makefile.am +@@ -40,7 +40,7 @@ qt-watch.moc3: qt-watch.cpp + + libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) -DQT3 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT3_LIBS) +-libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) ++libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) + endif + + if HAVE_QT4 +@@ -62,7 +62,7 @@ qt-watch.moc4: qt-watch.cpp + + libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS) +-libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO) ++libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -version-info $(LIBAVAHI_QT4_VERSION_INFO) + endif + + if HAVE_QT5 +@@ -84,7 +84,7 @@ qt-watch.moc5: qt-watch.cpp + + libavahi_qt5_la_CPPFLAGS = $(AM_CFLAGS) --std=gnu++11 $(QT5_CFLAGS) -DQT5 $(VISIBILITY_HIDDEN_CFLAGS) + libavahi_qt5_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT5_LIBS) +-libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT5_VERSION_INFO) ++libavahi_qt5_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -no-undefined -version-info $(LIBAVAHI_QT5_VERSION_INFO) + endif + + CLEANFILES = $(BUILT_SOURCES) diff --git a/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch b/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch new file mode 100644 index 00000000..3a36c57b --- /dev/null +++ b/factory/packages/avahi/avahi-0.9-CVE-2024-52615.patch @@ -0,0 +1,224 @@ +From 4e2e1ea0908d7e6ad7f38ae04fdcdf2411f8b942 Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +Date: Wed, 27 Nov 2024 18:07:32 +0100 +Subject: [PATCH] core/wide-area: fix for CVE-2024-52615 + +--- + avahi-core/wide-area.c | 128 ++++++++++++++++++++++------------------- + 1 file changed, 69 insertions(+), 59 deletions(-) + +diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c +index 00a15056e..06df7afc6 100644 +--- a/avahi-core/wide-area.c ++++ b/avahi-core/wide-area.c +@@ -81,6 +81,10 @@ struct AvahiWideAreaLookup { + + AvahiAddress dns_server_used; + ++ int fd; ++ AvahiWatch *watch; ++ AvahiProtocol proto; ++ + AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, lookups); + AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, by_key); + }; +@@ -88,9 +92,6 @@ struct AvahiWideAreaLookup { + struct AvahiWideAreaLookupEngine { + AvahiServer *server; + +- int fd_ipv4, fd_ipv6; +- AvahiWatch *watch_ipv4, *watch_ipv6; +- + /* Cache */ + AVAHI_LLIST_HEAD(AvahiWideAreaCacheEntry, cache); + AvahiHashmap *cache_by_key; +@@ -125,35 +126,67 @@ static AvahiWideAreaLookup* find_lookup(AvahiWideAreaLookupEngine *e, uint16_t i + return l; + } + ++static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent events, void *userdata); ++ + static int send_to_dns_server(AvahiWideAreaLookup *l, AvahiDnsPacket *p) { ++ AvahiWideAreaLookupEngine *e; + AvahiAddress *a; ++ AvahiServer *s; ++ AvahiWatch *w; ++ int r; + + assert(l); + assert(p); + +- if (l->engine->n_dns_servers <= 0) ++ e = l->engine; ++ assert(e); ++ ++ s = e->server; ++ assert(s); ++ ++ if (e->n_dns_servers <= 0) + return -1; + +- assert(l->engine->current_dns_server < l->engine->n_dns_servers); ++ assert(e->current_dns_server < e->n_dns_servers); + +- a = &l->engine->dns_servers[l->engine->current_dns_server]; ++ a = &e->dns_servers[e->current_dns_server]; + l->dns_server_used = *a; + +- if (a->proto == AVAHI_PROTO_INET) { ++ if (l->fd >= 0) { ++ /* We are reusing lookup object and sending packet to another server so let's cleanup before we establish connection to new server. */ ++ s->poll_api->watch_free(l->watch); ++ l->watch = NULL; + +- if (l->engine->fd_ipv4 < 0) +- return -1; ++ close(l->fd); ++ l->fd = -EBADF; ++ } + +- return avahi_send_dns_packet_ipv4(l->engine->fd_ipv4, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT); ++ assert(a->proto == AVAHI_PROTO_INET || a->proto == AVAHI_PROTO_INET6); + +- } else { +- assert(a->proto == AVAHI_PROTO_INET6); ++ if (a->proto == AVAHI_PROTO_INET) ++ r = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1; ++ else ++ r = s->config.use_ipv6 ? avahi_open_unicast_socket_ipv6() : -1; + +- if (l->engine->fd_ipv6 < 0) +- return -1; ++ if (r < 0) { ++ avahi_log_error(__FILE__ ": Failed to create socket for wide area lookup"); ++ return -1; ++ } + +- return avahi_send_dns_packet_ipv6(l->engine->fd_ipv6, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv6, AVAHI_DNS_PORT); ++ w = s->poll_api->watch_new(s->poll_api, r, AVAHI_WATCH_IN, socket_event, l); ++ if (!w) { ++ close(r); ++ avahi_log_error(__FILE__ ": Failed to create socket watch for wide area lookup"); ++ return -1; + } ++ ++ l->fd = r; ++ l->watch = w; ++ l->proto = a->proto; ++ ++ return a->proto == AVAHI_PROTO_INET ? ++ avahi_send_dns_packet_ipv4(l->fd, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT): ++ avahi_send_dns_packet_ipv6(l->fd, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv6, AVAHI_DNS_PORT); + } + + static void next_dns_server(AvahiWideAreaLookupEngine *e) { +@@ -246,6 +279,9 @@ AvahiWideAreaLookup *avahi_wide_area_lookup_new( + l->dead = 0; + l->key = avahi_key_ref(key); + l->cname_key = avahi_key_new_cname(l->key); ++ l->fd = -EBADF; ++ l->watch = NULL; ++ l->proto = AVAHI_PROTO_UNSPEC; + l->callback = callback; + l->userdata = userdata; + +@@ -314,6 +350,12 @@ static void lookup_destroy(AvahiWideAreaLookup *l) { + if (l->cname_key) + avahi_key_unref(l->cname_key); + ++ if (l->watch) ++ l->engine->server->poll_api->watch_free(l->watch); ++ ++ if (l->fd >= 0) ++ close(l->fd); ++ + avahi_free(l); + } + +@@ -572,14 +614,20 @@ static void handle_packet(AvahiWideAreaLookupEngine *e, AvahiDnsPacket *p) { + } + + static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent events, void *userdata) { +- AvahiWideAreaLookupEngine *e = userdata; ++ AvahiWideAreaLookup *l = userdata; ++ AvahiWideAreaLookupEngine *e = l->engine; + AvahiDnsPacket *p = NULL; + +- if (fd == e->fd_ipv4) +- p = avahi_recv_dns_packet_ipv4(e->fd_ipv4, NULL, NULL, NULL, NULL, NULL); ++ assert(l); ++ assert(e); ++ assert(l->fd == fd); ++ ++ if (l->proto == AVAHI_PROTO_INET) ++ p = avahi_recv_dns_packet_ipv4(l->fd, NULL, NULL, NULL, NULL, NULL); + else { +- assert(fd == e->fd_ipv6); +- p = avahi_recv_dns_packet_ipv6(e->fd_ipv6, NULL, NULL, NULL, NULL, NULL); ++ assert(l->proto == AVAHI_PROTO_INET6); ++ ++ p = avahi_recv_dns_packet_ipv6(l->fd, NULL, NULL, NULL, NULL, NULL); + } + + if (p) { +@@ -598,32 +646,6 @@ AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s) { + e->server = s; + e->cleanup_dead = 0; + +- /* Create sockets */ +- e->fd_ipv4 = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1; +- e->fd_ipv6 = s->config.use_ipv6 ? avahi_open_unicast_socket_ipv6() : -1; +- +- if (e->fd_ipv4 < 0 && e->fd_ipv6 < 0) { +- avahi_log_error(__FILE__": Failed to create wide area sockets: %s", strerror(errno)); +- +- if (e->fd_ipv6 >= 0) +- close(e->fd_ipv6); +- +- if (e->fd_ipv4 >= 0) +- close(e->fd_ipv4); +- +- avahi_free(e); +- return NULL; +- } +- +- /* Create watches */ +- +- e->watch_ipv4 = e->watch_ipv6 = NULL; +- +- if (e->fd_ipv4 >= 0) +- e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_event, e); +- if (e->fd_ipv6 >= 0) +- e->watch_ipv6 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv6, AVAHI_WATCH_IN, socket_event, e); +- + e->n_dns_servers = e->current_dns_server = 0; + + /* Initialize cache */ +@@ -651,18 +673,6 @@ void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e) { + avahi_hashmap_free(e->lookups_by_id); + avahi_hashmap_free(e->lookups_by_key); + +- if (e->watch_ipv4) +- e->server->poll_api->watch_free(e->watch_ipv4); +- +- if (e->watch_ipv6) +- e->server->poll_api->watch_free(e->watch_ipv6); +- +- if (e->fd_ipv6 >= 0) +- close(e->fd_ipv6); +- +- if (e->fd_ipv4 >= 0) +- close(e->fd_ipv4); +- + avahi_free(e); + } + +@@ -680,7 +690,7 @@ void avahi_wide_area_set_servers(AvahiWideAreaLookupEngine *e, const AvahiAddres + + if (a) { + for (e->n_dns_servers = 0; n > 0 && e->n_dns_servers < AVAHI_WIDE_AREA_SERVERS_MAX; a++, n--) +- if ((a->proto == AVAHI_PROTO_INET && e->fd_ipv4 >= 0) || (a->proto == AVAHI_PROTO_INET6 && e->fd_ipv6 >= 0)) ++ if (a->proto == AVAHI_PROTO_INET || a->proto == AVAHI_PROTO_INET6) + e->dns_servers[e->n_dns_servers++] = *a; + } else { + assert(n == 0); diff --git a/factory/packages/avahi/avahi-0.9-address-data-size.patch b/factory/packages/avahi/avahi-0.9-address-data-size.patch new file mode 100644 index 00000000..70a64d59 --- /dev/null +++ b/factory/packages/avahi/avahi-0.9-address-data-size.patch @@ -0,0 +1,30 @@ +From 358e5a3b0122b418614e2ac0fc71f6aad1de06f8 Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +Date: Mon, 23 Jun 2025 16:27:40 +0200 +Subject: [PATCH] Make data member as big as IPv6 address + +Unfortunately, recent FORTIFY_SOURCE hardening for inet_pton() can't +deal with our type independent "data[1]" union member trick. + +Fixes #699 +--- + avahi-common/address.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/avahi-common/address.h b/avahi-common/address.h +index a14104fad..013fa975e 100644 +--- a/avahi-common/address.h ++++ b/avahi-common/address.h +@@ -71,9 +71,9 @@ typedef struct AvahiAddress { + AvahiProtocol proto; /**< Address family */ + + union { +- AvahiIPv6Address ipv6; /**< Address when IPv6 */ +- AvahiIPv4Address ipv4; /**< Address when IPv4 */ +- uint8_t data[1]; /**< Type-independent data field */ ++ AvahiIPv6Address ipv6; /**< Address when IPv6 */ ++ AvahiIPv4Address ipv4; /**< Address when IPv4 */ ++ uint8_t data[sizeof(AvahiIPv6Address)]; /**< Type-independent data field */ + } data; + } AvahiAddress; + diff --git a/factory/packages/avahi/avahi.spec b/factory/packages/avahi/avahi.spec new file mode 100644 index 00000000..ea9ec90f --- /dev/null +++ b/factory/packages/avahi/avahi.spec @@ -0,0 +1,1643 @@ +%bcond_with bootstrap +%bcond_without check + +%if %{without bootstrap} +%{?!WITH_MONO: %global WITH_MONO 1} +%else +%{?!WITH_MONO: %global WITH_MONO 0} +%endif + +%{?!WITH_COMPAT_DNSSD: %global WITH_COMPAT_DNSSD 1} +%{?!WITH_COMPAT_HOWL: %global WITH_COMPAT_HOWL 1} +%{?!WITH_QT3: %global WITH_QT3 0} +%{?!WITH_QT4: %global WITH_QT4 0} + +%if %{without bootstrap} +%{?!WITH_GTK2: %global WITH_GTK2 1} +%{?!WITH_GTK3: %global WITH_GTK3 1} +%{?!WITH_QT5: %global WITH_QT5 1} +%else +%{?!WITH_GTK2: %global WITH_GTK2 0} +%{?!WITH_GTK3: %global WITH_GTK3 0} +%{?!WITH_QT5: %global WITH_QT5 0} +%endif + +# https://bugzilla.redhat.com/show_bug.cgi?id=1751484 +%{?!WITH_PYTHON: %global WITH_PYTHON 0} + +%ifnarch %{mono_arches} +%define WITH_MONO 0 +%endif + +%if 0%{?fedora} +%global WITH_QT3 1 +%global WITH_QT4 1 +%endif + +%if 0%{?rhel} +%if 0%{?rhel} > 9 +%global WITH_GTK2 0 +%endif +%global WITH_MONO 0 +%global WITH_QT5 0 +%if 0%{?rhel} < 8 +%global WITH_PYTHON 1 +%endif +%endif + +%if 0%{?fedora} == 34 || 0%{?rhel} >= 9 +# https://bugzilla.redhat.com/show_bug.cgi?id=1907727 +%global _lto_cflags %{nil} +%endif + +# http://bugzilla.redhat.com/1008395 - no hardened build +%global _hardened_build 1 + +# trim changelog included in binary rpms +%global _changelog_trimtime %(date +%s -d "1 year ago") + +%define rc rc2 + +%global version_no_tilde %%(echo %{version} | tr '~' '-') + +Name: avahi +Version: 0.9%{?rc:~%{rc}} +Release: 8%{?dist} +Summary: Local network service discovery +License: LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause-Views AND MIT +URL: http://avahi.org +Requires: dbus +Requires: expat +Requires: libdaemon >= 0.11 +# For /usr/bin/dbus-send +Requires(post): dbus +Requires(pre): coreutils +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +BuildRequires: automake +BuildRequires: libtool +BuildRequires: dbus-devel >= 0.90 +BuildRequires: desktop-file-utils +%if %{WITH_GTK2} +BuildRequires: gtk2-devel +%endif +%if %{WITH_GTK3} +BuildRequires: gtk3-devel >= 2.99.0 +%endif +#BuildRequires: gobject-introspection-devel +%if %{WITH_QT3} +BuildRequires: qt3-devel +%endif +%if %{WITH_QT4} +BuildRequires: qt4-devel +%endif +%if %{WITH_QT5} +BuildRequires: qt5-qtbase-devel +%endif +BuildRequires: libdaemon-devel >= 0.11 +BuildRequires: glib2-devel +BuildRequires: libcap-devel +BuildRequires: expat-devel +%if %{WITH_PYTHON} +%if %{without bootstrap} +BuildRequires: pygtk2 +%endif +%if 0%{?fedora} > 27 +%global python2_dbus python2-dbus +%global python2_libxml2 python2-libxml2 +%else +%global python2_dbus dbus-python +%global python2_libxml2 libxml2-python +%endif +BuildRequires: %{python2_dbus} +BuildRequires: %{python2_libxml2} +# really only need interpreter + rpm-macros -- rex +BuildRequires: python2-devel +BuildRequires: python3-devel +%else +Obsoletes: python2-avahi < %{version}-%{release} +Obsoletes: python3-avahi < %{version}-%{release} +%endif +BuildRequires: gdbm-devel +BuildRequires: pkgconfig(pygobject-3.0) +BuildRequires: pkgconfig(libevent) >= 2.0.21 +BuildRequires: intltool +BuildRequires: perl-XML-Parser +BuildRequires: xmltoman +%if %{WITH_MONO} +BuildRequires: mono-devel +BuildRequires: monodoc-devel +%endif +BuildRequires: systemd +BuildRequires: systemd-devel +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gettext-devel + +%if 0%{?rc:1} +Source0: https://github.com/avahi/avahi/archive/refs/tags/v%{version_no_tilde}.tar.gz +%else +Source0: https://github.com/avahi/avahi/releases/download/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz +%endif + +## upstream patches +# https://github.com/avahi/avahi/pull/662 +Patch1: avahi-0.9-CVE-2024-52615.patch +# https://github.com/avahi/avahi/pull/707 +Patch2: avahi-0.9-address-data-size.patch + +## downstream patches +Patch100: avahi-0.6.30-mono-libdir.patch +Patch102: avahi-0.8-no_undefined.patch + +%description +Avahi is a system which facilitates service discovery on +a local network -- this means that you can plug your laptop or +computer into a network and instantly be able to view other people who +you can chat with, find printers to print to or find files being +shared. This kind of technology is already found in MacOS X (branded +'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very +convenient. + +%package tools +Summary: Command line tools for mDNS browsing and publishing +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description tools +Command line tools that use avahi to browse and publish mDNS services. + +%package ui-tools +Summary: UI tools for mDNS browsing +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: %{name}-ui-gtk3%{?_isa} = %{version}-%{release} +Requires: tigervnc +Requires: openssh-clients +%if %{WITH_PYTHON} +Requires: gdbm +Requires: pygtk2 +Requires: pygtk2-libglade +Requires: python2-avahi = %{version}-%{release} +Requires: %{python2_dbus} +Requires: python2-gobject-base +%endif + +%description ui-tools +Graphical user interface tools that use Avahi to browse for mDNS services. + +%package glib +Summary: Glib libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description glib +Libraries for easy use of avahi from glib applications. + +%package glib-devel +Summary: Libraries and header files for avahi glib development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: glib2-devel + +%description glib-devel +The avahi-devel package contains the header files and libraries +necessary for developing programs using avahi with glib. + +%package gobject +Summary: GObject wrapper library for Avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} + +%description gobject +This library contains a GObject wrapper for the Avahi API + +%package gobject-devel +Summary: Libraries and header files for Avahi GObject development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-gobject%{?_isa} = %{version}-%{release} + +%description gobject-devel +The avahi-gobject-devel package contains the header files and libraries +necessary for developing programs using avahi-gobject. + +%if %{WITH_GTK2} +%package ui +Summary: Gtk user interface library for Avahi (Gtk+ 2 version) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: gtk2 + +%description ui +This library contains a Gtk 2.x widget for browsing services. +%endif + +%if %{WITH_GTK3} +%package ui-gtk3 +Summary: Gtk user interface library for Avahi (Gtk+ 3 version) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-glib%{?_isa} = %{version}-%{release} +Requires: gtk3 + +%description ui-gtk3 +This library contains a Gtk 3.x widget for browsing services. +%endif + +%if %{WITH_GTK2} || %{WITH_GTK3} +%package ui-devel +Summary: Libraries and header files for Avahi UI development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +%if %{WITH_GTK2} +Requires: %{name}-ui%{?_isa} = %{version}-%{release} +%endif +%if %{WITH_GTK3} +Requires: %{name}-ui-gtk3%{?_isa} = %{version}-%{release} +%endif + +%description ui-devel +The avahi-ui-devel package contains the header files and libraries +necessary for developing programs using avahi-ui. +%endif + +%if %{WITH_QT3} +%package qt3 +Summary: Qt3 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt3 +Libraries for easy use of avahi from Qt3 applications. + +%package qt3-devel +Summary: Libraries and header files for avahi Qt3 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt3%{?_isa} = %{version}-%{release} + +%description qt3-devel +The avahi-qt3-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt3. +%endif + +%if %{WITH_QT4} +%package qt4 +Summary: Qt4 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt4 +Libraries for easy use of avahi from Qt4 applications. + +%package qt4-devel +Summary: Libraries and header files for avahi Qt4 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt4%{?_isa} = %{version}-%{release} + +%description qt4-devel +Th avahi-qt4-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt4. +%endif + +%if %{WITH_QT5} +%package qt5 +Summary: Qt5 libraries for avahi +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description qt5 +Libraries for easy use of avahi from Qt5 applications. + +%package qt5-devel +Summary: Libraries and header files for avahi Qt5 development +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-qt5%{?_isa} = %{version}-%{release} + +%description qt5-devel +Th avahi-qt5-devel package contains the header files and libraries +necessary for developing programs using avahi with Qt5. +%endif + +%if %{WITH_MONO} +%package sharp +Summary: Mono language bindings for avahi mono development +Requires: mono-core >= 1.1.13 +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description sharp +The avahi-sharp package contains the files needed to develop +mono programs that use avahi. + +%package ui-sharp +Summary: Mono language bindings for avahi-ui +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-ui%{?_isa} = %{version}-%{release} +Requires: %{name}-sharp%{?_isa} = %{version}-%{release} +Requires: mono-core >= 1.1.13 +Requires: gtk-sharp2 +BuildRequires: gtk-sharp2-devel +BuildRequires: make + +%description ui-sharp +The avahi-sharp package contains the files needed to run +Mono programs that use avahi-ui. + +%package ui-sharp-devel +Summary: Mono language bindings for developing with avahi-ui +Requires: %{name}-ui-sharp%{?_isa} = %{version}-%{release} + +%description ui-sharp-devel +The avahi-sharp-ui-devel package contains the files needed to develop +Mono programs that use avahi-ui. +%endif + +%package libs +Summary: Libraries for avahi run-time use + +%description libs +The avahi-libs package contains the libraries needed +to run programs that use avahi. + +%package devel +Summary: Libraries and header files for avahi development +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +# for libavahi-core +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The avahi-devel package contains the header files and libraries +necessary for developing programs using avahi. + +%if %{WITH_COMPAT_HOWL} +%package compat-howl +Summary: Libraries for howl compatibility +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Obsoletes: howl-libs < 0.6-16 +Provides: howl-libs = %{version}-%{release} + +%description compat-howl +Libraries that are compatible with those provided by the howl package. + +%package compat-howl-devel +Summary: Header files for development with the howl compatibility libraries +Requires: %{name}-compat-howl%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Obsoletes: howl-devel < 0.6-16 +Provides: howl-devel = %{version}-%{release} + +%description compat-howl-devel +Header files for development with the howl compatibility libraries. +%endif + +%if %{WITH_COMPAT_DNSSD} +%package compat-libdns_sd +Summary: Libraries for Apple Bonjour mDNSResponder compatibility +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description compat-libdns_sd +Libraries for Apple Bonjour mDNSResponder compatibility. + +%package compat-libdns_sd-devel +Summary: Header files for the Apple Bonjour mDNSResponder compatibility libraries +Requires: %{name}-compat-libdns_sd%{?_isa} = %{version}-%{release} +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description compat-libdns_sd-devel +Header files for development with the Apple Bonjour mDNSResponder compatibility +libraries. +%endif + +%package autoipd +Summary: Link-local IPv4 address automatic configuration daemon (IPv4LL) +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description autoipd +avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 +Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address +configuration from the link-local 169.254.0.0/16 range without the need for a +central server. It is primarily intended to be used in ad-hoc networks which +lack a DHCP server. + +%package dnsconfd +Summary: Configure local unicast DNS settings based on information published in mDNS +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description dnsconfd +avahi-dnsconfd connects to a running avahi-daemon and runs the script +/etc/avahi/dnsconfd.action for each unicast DNS server that is announced on the +local LAN. This is useful for configuring unicast DNS servers in a DHCP-like +fashion with mDNS. + +%if %{WITH_PYTHON} +%package -n python2-avahi +Summary: Python2 Avahi bindings +Obsoletes: python-avahi < 0.7 +Provides: python-avahi = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description -n python2-avahi +%{summary}. + +%package -n python3-avahi +Summary: Python3 Avahi bindings +Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description -n python3-avahi +%{summary}. +%endif + + +%prep +%autosetup -n %{name}-%{version_no_tilde} -p1 + +rm -fv docs/INSTALL + +# Create two sysusers.d config files +cat >avahi.sysusers.conf <avahi-autoipd.sysusers.conf </dev/null 2>&1 || : +if [ "$1" -eq 1 -a -s /etc/localtime ]; then + /usr/bin/cp -cfp /etc/localtime %{_sysconfdir}/avahi/etc/localtime >/dev/null 2>&1 || : +fi +%systemd_post avahi-daemon.socket avahi-daemon.service + +%preun +%systemd_preun avahi-daemon.socket avahi-daemon.service + +%postun +%{?ldconfig} +%systemd_postun_with_restart avahi-daemon.socket avahi-daemon.service + +%post dnsconfd +%systemd_post avahi-dnsconfd.service + +%preun dnsconfd +%systemd_preun avahi-dnsconfd.service + +%postun dnsconfd +%systemd_postun_with_restart avahi-dnsconfd.service + +%ldconfig_scriptlets glib + +%ldconfig_scriptlets compat-howl + +%ldconfig_scriptlets compat-libdns_sd + +%ldconfig_scriptlets libs + +%ldconfig_scriptlets ui + +%ldconfig_scriptlets ui-gtk3 + +%ldconfig_scriptlets gobject + +%files -f %{name}.lang +%doc docs/* avahi-daemon/example.service avahi-daemon/sftp-ssh.service avahi-daemon/ssh.service +%dir %{_sysconfdir}/avahi +%dir %{_sysconfdir}/avahi/etc +%ghost %{_sysconfdir}/avahi/etc/localtime +%config(noreplace) %{_sysconfdir}/avahi/hosts +%dir %{_sysconfdir}/avahi/services +%ghost %attr(0755, avahi, avahi) %dir %{_localstatedir}/run/avahi-daemon +%config(noreplace) %{_sysconfdir}/avahi/avahi-daemon.conf +%config(noreplace) %{_datadir}/dbus-1/system.d/avahi-dbus.conf +%{_sbindir}/avahi-daemon +%dir %{_datadir}/avahi +%{_datadir}/avahi/*.dtd +%dir %{_libdir}/avahi +%if %{WITH_PYTHON} +%{_libdir}/avahi/service-types.db +%endif +%{_mandir}/man5/* +%{_mandir}/man8/avahi-daemon.* +%{_unitdir}/avahi-daemon.service +%{_unitdir}/avahi-daemon.socket +%{_datadir}/dbus-1/interfaces/*.xml +%{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service +%{_libdir}/libavahi-core.so.* +%{_sysusersdir}/avahi.conf + +%files autoipd +%{_sbindir}/avahi-autoipd +%config(noreplace) %{_sysconfdir}/avahi/avahi-autoipd.action +%attr(1770,avahi-autoipd,avahi-autoipd) %dir %{_localstatedir}/lib/avahi-autoipd/ +%{_mandir}/man8/avahi-autoipd.* +%{_sysusersdir}/avahi-autoipd.conf + +%files dnsconfd +%config(noreplace) %{_sysconfdir}/avahi/avahi-dnsconfd.action +%{_sbindir}/avahi-dnsconfd +%{_mandir}/man8/avahi-dnsconfd.* +%{_unitdir}/avahi-dnsconfd.service + +%files tools +%{_bindir}/avahi-browse +%{_bindir}/avahi-browse-domains +%{_bindir}/avahi-publish +%{_bindir}/avahi-publish-address +%{_bindir}/avahi-publish-service +%{_bindir}/avahi-resolve +%{_bindir}/avahi-resolve-address +%{_bindir}/avahi-resolve-host-name +%{_bindir}/avahi-set-host-name + +%{_mandir}/man1/avahi-browse.1* +%{_mandir}/man1/avahi-browse-domains.1* +%{_mandir}/man1/avahi-publish.1* +%{_mandir}/man1/avahi-publish-address.1* +%{_mandir}/man1/avahi-publish-service.1* +%{_mandir}/man1/avahi-resolve.1* +%{_mandir}/man1/avahi-resolve-address.1* +%{_mandir}/man1/avahi-resolve-host-name.1* +%{_mandir}/man1/avahi-set-host-name.1* + +%if %{without bootstrap} +%files ui-tools +%{_bindir}/bshell +%{_bindir}/bssh +%{_bindir}/bvnc +%{_bindir}/avahi-discover-standalone +%{_mandir}/man1/bshell.1* +%{_mandir}/man1/bssh.1* +%{_mandir}/man1/bvnc.1* +%{_datadir}/applications/b*.desktop +%{_datadir}/avahi/interfaces/ +%if %{WITH_PYTHON} +# avahi-bookmarks is not really a UI tool, but I won't create a seperate package for it... +%{_bindir}/avahi-bookmarks +%{_mandir}/man1/avahi-discover* +%{_mandir}/man1/avahi-bookmarks* +%{_datadir}/applications/avahi-discover.desktop +%{python2_sitelib}/avahi_discover/ +%endif +%endif + +%files devel +%{_libdir}/libavahi-common.so +%{_libdir}/libavahi-core.so +%{_libdir}/libavahi-client.so +%{_libdir}/libavahi-libevent.so +%{_includedir}/avahi-client +%{_includedir}/avahi-common +%{_includedir}/avahi-core +%{_includedir}/avahi-libevent +%{_libdir}/pkgconfig/avahi-core.pc +%{_libdir}/pkgconfig/avahi-client.pc +%{_libdir}/pkgconfig/avahi-libevent.pc + +%files libs +%doc README +%license LICENSE +%{_libdir}/libavahi-common.so.* +%{_libdir}/libavahi-client.so.* +%{_libdir}/libavahi-libevent.so.* + +%files glib +%{_libdir}/libavahi-glib.so.* + +%files glib-devel +%{_libdir}/libavahi-glib.so +%{_includedir}/avahi-glib +%{_libdir}/pkgconfig/avahi-glib.pc + +%files gobject +%{_libdir}/libavahi-gobject.so.* +#%%{_libdir}/girepository-1.0/Avahi-0.6.typelib +#%%{_libdir}/girepository-1.0/AvahiCore-0.6.typelib + +%files gobject-devel +%{_libdir}/libavahi-gobject.so +%{_includedir}/avahi-gobject +%{_libdir}/pkgconfig/avahi-gobject.pc +#%%{_datadir}/gir-1.0/Avahi-0.6.gir +#%%{_datadir}/gir-1.0/AvahiCore-0.6.gir + +%if %{WITH_GTK2} +%files ui +%{_libdir}/libavahi-ui.so.* +%endif + +%if %{WITH_GTK3} +%files ui-gtk3 +%{_libdir}/libavahi-ui-gtk3.so.* +%endif + +%if %{WITH_GTK2} || %{WITH_GTK3} +%files ui-devel +%{_includedir}/avahi-ui +%if %{WITH_GTK2} +%{_libdir}/libavahi-ui.so +%{_libdir}/pkgconfig/avahi-ui.pc +%endif +%if %{WITH_GTK3} +%{_libdir}/libavahi-ui-gtk3.so +%{_libdir}/pkgconfig/avahi-ui-gtk3.pc +%endif +%endif + +%if %{WITH_QT3} +%ldconfig_scriptlets qt3 + +%files qt3 +%{_libdir}/libavahi-qt3.so.* + +%files qt3-devel +%{_libdir}/libavahi-qt3.so +%{_includedir}/avahi-qt3/ +%{_libdir}/pkgconfig/avahi-qt3.pc +%endif + +%if %{WITH_QT4} +%ldconfig_scriptlets qt4 + +%files qt4 +%{_libdir}/libavahi-qt4.so.* + +%files qt4-devel +%{_libdir}/libavahi-qt4.so +%{_includedir}/avahi-qt4/ +%{_libdir}/pkgconfig/avahi-qt4.pc +%endif + +%if %{WITH_QT5} +%ldconfig_scriptlets qt5 + +%files qt5 +%{_libdir}/libavahi-qt5.so.* + +%files qt5-devel +%{_libdir}/libavahi-qt5.so +%{_includedir}/avahi-qt5/ +%{_libdir}/pkgconfig/avahi-qt5.pc +%endif + +%if %{WITH_MONO} +%files sharp +%{_prefix}/lib/mono/avahi-sharp +%{_prefix}/lib/mono/gac/avahi-sharp +%{_libdir}/pkgconfig/avahi-sharp.pc + +%files ui-sharp +%{_prefix}/lib/mono/avahi-ui-sharp +%{_prefix}/lib/mono/gac/avahi-ui-sharp + +%files ui-sharp-devel +%{_libdir}/pkgconfig/avahi-ui-sharp.pc +%endif + +%if %{WITH_COMPAT_HOWL} +%files compat-howl +%{_libdir}/libhowl.so.* + +%files compat-howl-devel +%{_libdir}/libhowl.so +%{_includedir}/avahi-compat-howl +%{_libdir}/pkgconfig/avahi-compat-howl.pc +%{_libdir}/pkgconfig/howl.pc +%endif + +%if %{WITH_COMPAT_DNSSD} +%files compat-libdns_sd +%{_libdir}/libdns_sd.so.* + +%files compat-libdns_sd-devel +%{_libdir}/libdns_sd.so +%{_includedir}/avahi-compat-libdns_sd +%{_includedir}/dns_sd.h +%{_libdir}/pkgconfig/avahi-compat-libdns_sd.pc +%{_libdir}/pkgconfig/libdns_sd.pc +%endif + +%if %{WITH_PYTHON} +%files -n python2-avahi +%{python2_sitelib}/avahi/ + +%files -n python3-avahi +%{python3_sitelib}/avahi/ +%endif + + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.9~rc2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.9~rc2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Tue Aug 05 2025 Petr Menšík - 0.9~rc2-6 +- Fix port randomization for wide area queries (CVE-2024-52615) +- Add systemd-devel dependency +- Fix test crashing because FORTIFY_SOURCE protection + +* Wed Jul 23 2025 Fedora Release Engineering - 0.9~rc2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Mon Apr 14 2025 Zbigniew Jędrzejewski-Szmek - 0.9~rc2-4 +- Also create sysusers.d config file for the avahi-autoipd user + +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.9~rc2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + +* Thu Jan 16 2025 Michal Sekletar - 0.9~rc2-2 +- Fix previous changelog entry + +* Thu Jan 16 2025 Michal Sekletar - 0.9~rc2-1 +- Rebase to 0.9-rc2 + +* Thu Jan 16 2025 Fedora Release Engineering - 0.8-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Aug 21 2024 Michal Sekletar - 0.8-30 +- fix file attributes of /run/avahi-daemon (rhbz#1608918) + +* Wed Jul 17 2024 Fedora Release Engineering - 0.8-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 04 2024 Michal Sekletar - 0.8-28 +- Add gettext-devel to build dependencies + +* Mon Jan 22 2024 Fedora Release Engineering - 0.8-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.8-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 26 2023 Lukáš Zaoral - 0.8-25 +- migrate to SPDX license format + +* Wed Jul 19 2023 Fedora Release Engineering - 0.8-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 10 2023 Tomas Popela - 0.8-23 +- Drop BR on dbus-glib as the project is not using it at all + +* Sun Mar 19 2023 Petr Menšík - 0.8-22 +- Enable unit tests during check +- Prevent crashes on some invalid DBus calls +- Provide versioned howl compatibility package +- Correct bootstrap option + +* Sun Mar 19 2023 Yaakov Selkowitz - 0.8-21 +- Disable GTK2 in ELN/RHEL10 builds + +* Wed Jan 18 2023 Fedora Release Engineering - 0.8-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 11 2022 Petr Menšík - 0.8-19 +- Add upstream PR links to patches + +* Tue Nov 01 2022 Christian Krause - 0.8-18 +- Install glade file for avahi-discover-standalone unconditionally + (fixes #2036073 and #2126721) +- Install desktop files for bssh and bvnc unconditionally + +* Fri Aug 05 2022 Kalev Lember - 0.8-17 +- Avoid systemd_requires as per updated packaging guidelines + +* Wed Jul 20 2022 Fedora Release Engineering - 0.8-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.8-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 03 2021 Rex Dieter - 0.8-14 +- pull in upstream fix for CVE-2021-36217 (#1989381,#1989382) +- revert "Re-enable LTO" on f34 (still needed) + +* Wed Jul 21 2021 Fedora Release Engineering - 0.8-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 10 2021 Jeff Law - 0.8-12 +- Re-enable LTO + +* Thu Apr 29 2021 Rex Dieter - 0.8-11 +- avahi libraries missing -fstack-protector-strong (#1817737) + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.8-10 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Tue Feb 16 2021 Rex Dieter - 0.8-9 +- cleanup/fix conditionals (#1751484) +- disable lto, workaround FTBFS (#1907727) + +* Tue Jan 26 2021 Fedora Release Engineering - 0.8-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Nov 17 2020 Rex Dieter - 0.8-7 +- fix undefined symbols in libavahi-qt3 (#1897925) + +* Thu Oct 15 2020 Rex Dieter - 0.8-6 +- resurrect ui-tools, not just for python (#1885513) + +* Mon Sep 21 2020 Michal Sekletar - 0.8-5 +- Disable bootstrap + +* Mon Sep 07 2020 Ondřej Lysoněk - 0.8-4 +- Rebuilt due to libevent rebase + +* Mon Jul 27 2020 Fedora Release Engineering - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Mar 22 2020 Rex Dieter - 0.8-2 +- pull in some upstream fixes + +* Sun Mar 22 2020 Lubomir Rintel - 0.8-1 +- Update to version 0.8 + +* Thu Feb 20 2020 Petr Viktorin - 0.7-24 +- Don't BuildRequire pygtk2 if building without Python + +* Tue Jan 28 2020 Fedora Release Engineering - 0.7-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Sep 19 2019 Rex Dieter - 0.7-22 +- drop python bindings/support (includes -ui-tools that use the bindings) on f31+ (#1751484) + +* Mon Aug 19 2019 Miro Hrončok - 0.7-21 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.7-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 22 2019 Michal Sekletár - 0.7-19 +- add support for advertising services on the local machine only (i.e. on loopback) + +* Mon Feb 04 2019 Kalev Lember - 0.7-18 +- Update requires for pygobject3 -> python2-gobject rename + +* Thu Jan 31 2019 Fedora Release Engineering - 0.7-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jul 30 2018 Adam Williamson - 0.7-16 +- Update python3 sed hack to avoid '/usr/bin/python32' dep + +* Tue Jul 24 2018 Jan Grulich - 0.7-15 +- Requires: tigervnc + Tigervnc removed old obsoleted provides + +* Thu Jul 12 2018 Fedora Release Engineering - 0.7-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.7-13 +- Rebuilt for Python 3.7 + +* Thu Apr 05 2018 Rex Dieter - 0.7-12 +- use %%make_build %%ldconfig_scriptlets %%license +- %%build: --enable-shared=yes --enable-static=no --disable-silent-rules + +* Thu Apr 05 2018 Rex Dieter - 0.7-11 +- avahi-discover is missing "gi" module (#1564059) + +* Mon Mar 19 2018 Michal Sekletar - 0.7-10 +- add gcc to build reqs +- disable mono and qt support on RHEL + +* Wed Feb 07 2018 Fedora Release Engineering - 0.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Dec 15 2017 Iryna Shcherbina - 0.7-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Mon Dec 11 2017 Rex Dieter - 0.7-7 +- %%check: validate .desktop files (#1524175) + +* Tue Oct 24 2017 Merlin Mathesius - 0.7-6 +- Add option to disable qt4 support + +* Sat Oct 07 2017 Rex Dieter - 0.7-5 +- consistently use %%{_unitdir} macro + +* Mon Oct 02 2017 Troy Dawson - 0.7-4 +- Cleanup spec file conditionals + +* Wed Aug 02 2017 Fedora Release Engineering - 0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 10 2017 Rex Dieter - 0.7-1 +- avahi-0.7 (#1469100) +- rename python-avahi => python2-avahi + +* Fri Feb 10 2017 Fedora Release Engineering - 0.6.32-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Dec 22 2016 Miro Hrončok - 0.6.32-6 +- Rebuild for Python 3.6 + +* Thu Oct 13 2016 Peter Robinson 0.6.32-5 +- rebuild - mono on aarch64 + +* Fri Aug 05 2016 Rex Dieter - 0.6.32-4 +- -devel: fix typo in Requires: (#1364505) + +* Thu Aug 04 2016 Rex Dieter - 0.6.32-3 +- include dbus xml interfaces in main pkg, apparently used there for runtime introspection + +* Tue Jul 19 2016 Fedora Release Engineering - 0.6.32-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Apr 13 2016 Rex Dieter - 0.6.32-1 +- 0.6.32 (final) + +* Fri Mar 18 2016 Rex Dieter - 0.6.32-0.7.rc +- clean/simplify scriptlet deps (#1319207) + +* Wed Feb 03 2016 Fedora Release Engineering - 0.6.32-0.6.rc +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Nov 21 2015 Rex Dieter 0.6.32-0.5.rc +- enable use-ipv6=yes only for f24+ + +* Thu Nov 19 2015 Rex Dieter 0.6.32-0.4.rc +- pull in upstream fixes, translations mostly (#1270332) + +* Tue Nov 10 2015 Fedora Release Engineering - 0.6.32-0.3.rc +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Nov 5 2015 Toshio Kuratomi - 0.6.32-0.2.rc +- Modify a shebang in the python3 module so it doesn't drag in /usr/bin/python2. + +* Sat Oct 10 2015 Rex Dieter - 0.6.32-0.1.rc +- avahi-0.6.32-rc +- -devel: move dbus-1/interfaces here +- Avahi's IPv6 support is disabled by default (#821127) +- avahi: script and/or trigger should not directly enable systemd units (#1094899) + +* Tue Sep 22 2015 Rafael Fonseca - 0.6.31-43 +- use %%{mono_arches} instead of hardcoded list + +* Tue Sep 22 2015 Rex Dieter 0.6.31-42 +- treat "Invalid response packet from host" as avahi_log_debug (#1240711) + +* Fri Sep 18 2015 Richard Hughes - 0.6.31-41 +- Remove no longer required AppData file + +* Thu Sep 17 2015 Rex Dieter 0.6.31-40 +- non-existing homedir /var/lib/avahi-autoipd (#1173822) + +* Thu Sep 17 2015 Rex Dieter 0.6.31-39 +- Syslog Filled With "Invalid response packet from host" Message (#1240711) +- avahi-daemon manpage references file locations under /home/lennart/tmp (#991094) +- fix python-avahi dep botched in build -38 + +* Thu Sep 17 2015 Rex Dieter 0.6.31-38 +- pull in post 0.6.31 upstream fixes (#1246849), python related packaging polish + +* Tue Jul 14 2015 Jason L Tibbitts III - 0.6.31-37 +- Add old patch from SuSE to fix 100%% CPU bug (RHBZ 952193). +- Don't install py2.7 .py{o,c} files in py3.4 package. + +* Sun Jun 21 2015 Bastien Nocera 0.6.31-36 +- Split off Python bindings, add Python3 support + +* Wed Jun 17 2015 Michal Sekletar - 0.6.31-35 +- check that rtnetlink messages has pid == 0, i.e. they sender is kernel (#1227052) + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.31-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon May 18 2015 Peter Robinson 0.6.31-33 +- Rebuild (mono4) + +* Sat May 02 2015 Kalev Lember - 0.6.31-32 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Mar 26 2015 Richard Hughes - 0.6.31-31 +- Add an AppData file for the software center + +* Thu Nov 27 2014 Peter Lemenkov - 0.6.31-30 +- Drop post-stage dependency on initscripts (rhbz #1168566). See also rhbz #182462. + +* Fri Aug 15 2014 Fedora Release Engineering - 0.6.31-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jun 26 2014 Bastien Nocera 0.6.31-28 +- Disable publish-workstation= and publish-hinfo= by default (#1105647) + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.31-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Jun 3 2014 Peter Robinson 0.6.31-26 +- Re-enable qt3 on aarch64 + +* Sat Mar 22 2014 Rex Dieter 0.6.31-25 +- support ppc64le (#1079392) + +* Thu Jan 16 2014 Ville Skyttä - 0.6.31-24 +- Drop INSTALL from docs, fix some trivial rpmlint warnings. + +* Wed Jan 8 2014 Peter Robinson 0.6.31-23 +- Fix minor issue in exclude logic + +* Tue Jan 7 2014 Peter Robinson 0.6.31-22 +- Add option to disable qt3 support (and disable on aarch64) + +* Tue Oct 08 2013 Rex Dieter 0.6.31-21 +- avahi-libs should not require avahi, f20+ (#913168) + +* Thu Sep 26 2013 Rex Dieter 0.6.31-20 +- conform to http://fedoraproject.org/wiki/Packaging/UsersAndGroups#Soft_static_allocation + +* Wed Sep 25 2013 Kalev Lember - 0.6.31-19 +- Make sure the split up -devel package require avahi-devel + +* Sat Sep 21 2013 Kalev Lember - 0.6.31-18 +- Allow building with deprecated GTK+ symbols (#1001676) + +* Fri Sep 20 2013 Rex Dieter - 0.6.31-17 +- -libs: %%doc README LICENSE +- drop some explicit -devel deps, rely on automatic pkgconfig deps +- drop -Werror compiler flag +- cleanup/tighten subpkg deps +- trim changelog +- avahi-libs should not require avahi, f21+ (#913168) + +* Thu Sep 19 2013 Rex Dieter 0.6.31-16 +- no hardened build (#1008395) + +* Thu Sep 19 2013 Rex Dieter 0.6.31-15 +- Fix/workaround gtkstock.h deprecation (#1001676) + +* Mon Aug 26 2013 Jon Ciesla - 0.6.31-14 +- libmng rebuild. + +* Wed Aug 14 2013 Peter Robinson - 0.6.31-13 +- Disable mono on aarch64 as it's not yet been ported + +* Sat Aug 03 2013 Fedora Release Engineering - 0.6.31-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Feb 02 2013 Kalev Lember - 0.6.31-11 +- Correct a typo in inter-subpackage deps + +* Fri Feb 1 2013 Matthias Clasen - 0.6.31-10 +- Tighten inter-subpackage deps + +* Fri Jan 18 2013 Adam Tkac - 0.6.31-9 +- rebuild due to "jpeg8-ABI" feature drop + +* Fri Dec 21 2012 Adam Tkac - 0.6.31-8 +- fix path to ldconfig + +* Fri Dec 21 2012 Adam Tkac - 0.6.31-7 +- rebuild against new libjpeg + +* Tue Aug 7 2012 Lennart Poettering - 0.6.31-6 +- Use new systemd macros +- Other modernizations + +* Mon Aug 6 2012 Stef Walter - 0.6.31-5 +- Don't ship ssh service by default file since openssh-server isn't + running by default, and shouldn't be advertised without user + confirmation. + +* Wed Jul 18 2012 Fedora Release Engineering - 0.6.31-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon May 21 2012 Peter Robinson - 0.6.31-3 +- Merge F-17 into master +- ARM has mono + +* Tue Feb 14 2012 Lennart Poettering - 0.6.31-2 +- Fix tarball + +* Tue Feb 14 2012 Lennart Poettering - 0.6.31-1 +- New upstream release + +* Thu Jan 12 2012 Fedora Release Engineering - 0.6.30-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Nov 29 2011 Christian Krause - 0.6.30-6 +- Change paths for mono assemblies according to updated packaging + guidelines (http://fedoraproject.org/wiki/Packaging:Mono) + +* Mon Nov 14 2011 Adam Jackson 0.6.30-5 +- Rebuild to break bogus libpng dep + +* Mon Aug 22 2011 Lennart Poettering - 0.6.30-4 +- Remove sysv init script (#714649) + +* Thu May 5 2011 Bill Nottingham - 0.6.30-3 +- fix versioning on triggers + +* Tue May 3 2011 Lennart Poettering - 0.6.30-2 +- Enable Avahi by default +- https://bugzilla.redhat.com/show_bug.cgi?id=647831 + +* Mon Apr 4 2011 Lennart Poettering - 0.6.30-1 +- New upstream release + +* Wed Mar 9 2011 Lennart Poettering - 0.6.29-1 +- New upstream release +- Fixes CVE-2011-1002 among other things + +* Thu Feb 10 2011 Matthias Clasen - 0.6.28-9 +- Rebuild against new gtk + +* Mon Feb 07 2011 Fedora Release Engineering - 0.6.28-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Feb 2 2011 Matthias Clasen - 0.6.28-7 +- Rebuild against new gtk + +* Fri Jan 7 2011 Matthias Clasen - 0.6.28-6 +- Rebuild against new gtk + +* Fri Dec 3 2010 Matthias Clasen - 0.6.28-5 +- Rebuild against new gtk + +* Wed Nov 24 2010 Dan Horák - 0.6.28-4 +- Updated the archs without mono + +* Tue Nov 2 2010 Matthias Clasen - 0.6.28-3 +- Rebuild against newer gtk3 + +* Wed Oct 27 2010 paul - 0.6.28-2 +- rebuilt + +* Tue Oct 5 2010 Lennart Poettering - 0.6.28-1 +- New upstream release + +* Wed Aug 4 2010 Lennart Poettering - 0.6.27-3 +- convert from systemd-install to systemctl enable + +* Wed Jul 21 2010 David Malcolm - 0.6.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Jul 13 2010 Lennart Poettering 0.6.27-1 +- New upstream release + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-4 +- On request of Colin Walters, disable introspection again for now. + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-3 +- Fix systemd unit installation + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-2 +- Add missing dependencies + +* Tue Jun 29 2010 Lennart Poettering 0.6.26-1 +- New upstream release + +* Mon Apr 19 2010 Bastien Nocera 0.6.25-7 +- Split avahi libraries in -libs + +* Mon Jan 25 2010 Lennart Poettering - 0.6.25-6 +- Move avahi-discover from avahi-tools to avahi-ui-tools +- https://bugzilla.redhat.com/show_bug.cgi?id=513768 + +* Fri Jul 24 2009 Fedora Release Engineering - 0.6.25-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jun 17 2009 Karsten Hopp 0.6.25-4 +- Build *-sharp & *-ui-sharp for s390x + +* Thu Jun 11 2009 Matthias Clasen - 0.6.25-4 +- Use %%find_lang + +* Tue May 26 2009 Michael Schwendt - 0.6.25-3 +- Create avahi-ui-sharp-devel package for pkgconfig dep-chain (#477308). + +* Mon May 25 2009 Xavier Lamien - 0.6.25-2 +- Build arch ppc64 for *-sharp & *-ui-sharp. + +* Mon Apr 13 2009 Lennart Poettering - 0.6.25-1 +- New upstream release + +* Mon Feb 23 2009 Fedora Release Engineering - 0.6.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 12 2008 Lennart Poettering - 0.6.24-1 +- New upstream release + +* Wed Dec 3 2008 Ignacio Vazquez-Abrams - 0.6.22-13 +- Fix libtool errors + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.6.22-12 +- Rebuild for Python 2.6 + +* Wed Jun 04 2008 Rex Dieter - 0.6.22-11 +- qt4 bindings (#446904) +- devel: BR: pkgconfig +- nuke rpaths + +* Thu Mar 27 2008 Lennart Poettering - 0.6.22-10 +- Add release part to package dependencies (Closed #311601) + +* Mon Mar 10 2008 Christopher Aillon - 0.6.22-9 +- The qt3 subpackage should (Build)Require: qt3 + +* Mon Mar 03 2008 Kevin Kofler - 0.6.22-8 +- updated (completed) German translation by Fabian Affolter (#427090) + +* Thu Feb 21 2008 Adam Tkac - 0.6.22-7 +- really rebuild against new libcap + +* Sun Feb 17 2008 Adam Tkac - 0.6.22-6 +- rebuild against new libcap + +* Sat Feb 09 2008 Dennis Gilmore - 0.6.22-5 +- sparc64 does not have mono + +* Tue Dec 18 2007 Lubomir Kundrak - 0.6.22-4 +- Make bvnc call vncviewer instead of xvncviewer +- Let ui-tools depend on necessary packages + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-3 +- Add missing intltool dependency + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-2 +- Fix mistag + +* Mon Dec 17 2007 Lennart Poettering - 0.6.22-1 +- resolves #274731, #425491: New upstream version + +* Tue Sep 25 2007 Lennart Poettering - 0.6.21-6 +- resolves #279301: fix segfault when no domains are configured in resolv.conf (pulled from upstream SVN r1525) + +* Thu Sep 6 2007 Lennart Poettering - 0.6.21-5 +- resolves #249044: Update init script to use runlevel 96 +- resolves #251700: Fix assertion in libdns_sd-compat + +* Thu Sep 6 2007 Lennart Poettering - 0.6.21-4 +- Ship ssh static service file by default, don't ship ssh-sftp by default +- resolves: #269741: split off avahi-ui-tools package +- resolves: #253734: add missing dependency on avahi-glib-devel to avahi-ui-devel + +* Tue Aug 28 2007 Martin Bacovsky - 0.6.21-3 +- resolves: #246875: Initscript Review + +* Sun Aug 12 2007 Lennart Poettering - 0.6.21-2 +- Fix avahi-browse --help output + +* Sun Aug 12 2007 Lennart Poettering - 0.6.21-1 +- New upstream release + +* Thu Aug 9 2007 Lennart Poettering - 0.6.20-7 +- Fix tagging borkage + +* Thu Aug 9 2007 Lennart Poettering - 0.6.20-6 +- fix avahi-autoipd corrupt packet bug +- drop dependency on python for the main package + +* Wed Jul 11 2007 Lennart Poettering - 0.6.20-5 +- add two patches which are important to get RR updating work properly. + Will be part of upstream 0.6.21 + +* Thu Jul 5 2007 Dan Williams - 0.6.20-4 +- Add Requires(pre): shadow-utils for avahi-autoipd package + +* Mon Jun 25 2007 Bill Nottingham - 0.6.20-3 +- fix %%endif typo + +* Mon Jun 25 2007 Lennart Poettering - 0.6.20-2 +- add gtk-sharp2-devel to build deps + +* Fri Jun 22 2007 Lennart Poettering - 0.6.20-1 +- upgrade to new upstream 0.6.20 +- fix a few rpmlint warnings +- create avahi-autoipd user +- no longer create avahi user with a static uid, move to dynamic uids +- drop a couple of patches merged upstream +- Provide "howl" and "howl-devel" +- Split off avahi-autoipd and avahi-dnsconfd +- Introduce avahi-ui packages for the first time +- Reload D-Bus config after installation using dbus-send +- add a couple of missing ldconfig invocations + +* Mon Mar 12 2007 Martin Bacovsky - 0.6.17-1 +- upgrade to new upstream 0.6.17 +- redundant patches removal +- removed auto* stuff from specfile since that was no longer needed +- Resolves: #232205: 'service {avahi-dnsconfd,avahi-daemon} status' + returns 0 when the service is stopped + +* Fri Feb 2 2007 Christopher Aillon - 0.6.16-3 +- Remove bogus mono-libdir patches + +* Tue Jan 23 2007 Jeremy Katz - 0.6.16-2 +- nuke bogus avahi-sharp -> avahi-devel dep + +* Mon Jan 22 2007 Martin Bacovsky - 0.6.16-1.fc7 +- Resolves: #221763: CVE-2006-6870 Maliciously crafted packed can DoS avahi daemon +- upgrade to new upstream +- patch revision +- Resolves: #218140: avahi configuration file wants a non-existent group + +* Wed Dec 6 2006 Jeremy Katz - 0.6.15-4 +- rebuild against python 2.5 + +* Mon Nov 27 2006 Martin Bacovsky - 0.6.15-3 +- automake-1.10 required for building + +* Mon Nov 27 2006 Martin Bacovsky - 0.6.15-2 +- automake-1.9 required for building + +* Thu Nov 24 2006 Martin Bacovsky - 0.6.15-1 +- Upgrade to 0.6.15 +- patches revision + +* Mon Sep 18 2006 Martin Stransky - 0.6.11-6 +- added patch from #206445 - ia64: unaligned access errors seen + during startup of avahi-daemon +- removed unused patches + +* Thu Sep 7 2006 Dan Walsh - 0.6.11-5 +- Maintain the security context on the localtime file + +* Wed Aug 23 2006 Martin Stransky - 0.6.11-4 +- fix for #204710 - /etc/init.d/avahi-dnsconfd missing line + continuation slash (\) in description + +* Wed Aug 23 2006 Martin Stransky - 0.6.11-3 +- added fix for #200767 - avahi-dnsconfd Segmentation fault + with invalid command line argument +- added dist tag + +* Tue Jul 18 2006 John (J5) Palmieri - 0.6.11-2.fc6 +- add BR for dbus-glib-devel +- fix deprecated functions + +* Mon Jul 17 2006 Jason Vas Dias - 0.6.11-1.fc6 +- Upgrade to upstream version 0.6.11 +- fix bug 195674: set 'use-ipv6=yes' in avahi-daemon.conf +- fix bug 197414: avahi-compat-howl and avahi-compat-dns-sd symlinks +- fix bug 198282: avahi-compat-{howl-devel,dns-sd-devel} Requires: + +* Wed Jul 12 2006 Jesse Keating +- rebuild + +* Tue Jun 13 2006 Jason Vas Dias - 0.6.10-3.FC6 +- rebuild for broken mono deps + +* Tue Jun 06 2006 Jason Vas Dias - 0.6.10-2.FC6 +- fix bug 194203: fix permissions on /var/run/avahi-daemon + +* Tue May 30 2006 Jason Vas Dias - 0.6.10-1.FC6 +- Upgrade to upstream version 0.6.10 +- fix bug 192080: split avahi-compat-libdns_sd into separate package + (same goes for avahi-compat-howl) + +* Tue May 02 2006 Jason Vas Dias - 0.6.9-9.FC6 +- fix avahi-sharp issues for banshee - patches from caillon@redhat.com + +* Thu Apr 20 2006 Jason Vas Dias - 0.6.9-9.FC6 +- fix bug 189427: correct avahi-resolve --help typo + +* Mon Mar 20 2006 Jason Vas Dias - 0.6.9-8.FC6 +- fix bug 185972: remove ellipses in initscript +- fix bug 185965: make chkconfigs unconditional + +* Thu Mar 16 2006 Jason Vas Dias - 0.6.9-6 +- Fix bug 185692: install avahi-sharp into %%{_prefix}/lib, not %%{_libdir} + +* Thu Mar 09 2006 Jason Vas Dias - 0.6.9-4 +- fix scriptlet error introduced by last fix: + if user has disabled avahi-daemon, do not enable it during post + +* Wed Mar 08 2006 Bill Nottingham - 0.6.9-2 +- fix scriplet error during installer +- move service-types* to the tools package (avoids multilib conflicts) + +* Tue Mar 07 2006 Jason Vas Dias - 0.6.9-1 +- Upgrade to upstream version 0.6.9 + +* Thu Feb 23 2006 Jason Vas Dias - 0.6.8-1 +- Upgrade to upstream version 0.6.8 +- fix bug 182462: +Requires(post): initscripts, chkconfig, ldconfig + +* Fri Feb 17 2006 Jason Vas Dias - 0.6.7-1 +- Upgrade to upstream version 0.6.7 + +* Fri Feb 17 2006 Karsten Hopp - 0.6.6-4 +- BuildRequires pygtk2 + +* Fri Feb 10 2006 Jesse Keating - 0.6.6-3.1 +- bump again for double-long bug on ppc(64) + +* Fri Feb 10 2006 Jason Vas Dias - 0.6.6-3 +- rebuild for new gcc (again) +- further fix for bug 178746: fix avahi-dnsconfd initscript + +* Tue Feb 07 2006 Jason Vas Dias - 0.6.6-2 +- rebuild for new gcc, glibc, glibc-kernheaders + +* Wed Feb 01 2006 Jason Vas Dias - 0.6.6-1 +- fix bug 179448: mis-alignment of input cmsghdr msg->msg_control buffer on ia64 +- Upgrade to 0.6.6 + +* Thu Jan 26 2006 Jason Vas Dias - 0.6.5-1 +- Upgrade to upstream version 0.6.5 +- Make /etc/avahi/etc and /etc/avahi/etc/localtime owned by avahi + package; copy system localtime into chroot in post + +* Mon Jan 23 2006 Jason Vas Dias - 0.6.4-4 +- fix bug 178689: copy localtime to chroot +- fix bug 178784: fix avahi-dnsconfd initscript + +* Fri Jan 20 2006 Peter Jones - 0.6.4-3 +- fix subsystem locking in the initscript + +* Thu Jan 19 2006 Jason Vas Dias - 0.6.4-2 +- fix bug 178127: fully localize the initscript + +* Mon Jan 16 2006 Jason Vas Dias - 0.6.4-1 +- Upgrade to upstream version 0.6.4 + +* Thu Jan 12 2006 Jason Vas Dias - 0.6.3-2 +- fix bug 177610: Enable mono support with new avahi-sharp package +- fix bug 177609: add gdbm / gdbm-devel Requires for avahi-browse + +* Mon Jan 09 2006 Jason Vas Dias - 0.6.3-1 +- Upgrade to upstream version 0.6.3 +- fix bug 177148: initscript start should not fail if avahi-daemon running + +* Thu Dec 22 2005 Jason Vas Dias - 0.6.1-3 +- move initscripts from /etc/init.d to /etc/rc.d/init.d + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Dec 09 2005 Jason Vas Dias - 0.6.1-2 +- fix bug 175352: Do not chkconfig --add avahi-daemon + if user has already configured it + +* Wed Dec 07 2005 Jason Vas Dias - 0.6.1-1 +- Upgrade to 0.6.1 + +* Mon Dec 05 2005 Jason Vas Dias - 0.6-6 +- fix bug 174799 - fix .spec file files permissions + +* Fri Dec 02 2005 Jason Vas Dias - 0.6-5 +- python-twisted has been removed from the FC-5 distribution - disable its use + +* Thu Dec 01 2005 Jason Vas Dias - 0.6-4 +- Rebuild for dbus-0.6 - remove use of DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT + +* Wed Nov 30 2005 Jason Vas Dias - 0.6-3 +- fix bug 172047 - tools should require python-twisted +- fix bug 173985 - docs directory permissions + +* Mon Nov 21 2005 Jason Vas Dias - 0.6-1 +- Upgrade to upstream version 0.6 - now provides 'avahi-howl-compat' + libraries / includes. + +* Mon Nov 14 2005 Jason Vas Dias - 0.5.2-7 +- fix bug 172034: fix ownership of /var/run/avahi-daemon/ +- fix bug 172772: .spec file improvements from matthias@rpmforge.net + +* Mon Oct 31 2005 Jason Vas Dias - 0.5.2-6 +- put back avahi-devel Obsoletes: howl-devel + +* Mon Oct 31 2005 Alexander Larsson - 0.5.2-5 +- Obsoletes howl, howl-libs, as we want to get rid of them on updates +- No provides yet, as the howl compat library is in Avahi 0.6.0. + +* Sun Oct 30 2005 Florian La Roche +- disable the Obsoletes: howl until the transition is complete + +* Fri Oct 28 2005 Jason Vas Dias - 0.5.2-3 +- change initscript to start avahi-daemon AFTER messagebus + +* Wed Oct 26 2005 Karsten Hopp 0.5.2-2 +- add buildrequires dbus-python + +* Fri Oct 21 2005 Alexander Larsson - 0.5.2-1 +- Initial package diff --git a/factory/packages/blueprint-compiler/.factory-upstream.json b/factory/packages/blueprint-compiler/.factory-upstream.json new file mode 100644 index 00000000..0a09a6e1 --- /dev/null +++ b/factory/packages/blueprint-compiler/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:14+00:00", + "package": "blueprint-compiler", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "0436bc64968e593ca67937dfeea17f11c9e800812bfe8919ec64720bbc9f5fa7", + "srpm_checksum_type": "sha256", + "tree": "6789280a1febd56082dceec1a14907fd65e33e39" + } +} diff --git a/factory/packages/blueprint-compiler/blueprint-compiler.spec b/factory/packages/blueprint-compiler/blueprint-compiler.spec new file mode 100644 index 00000000..6b3984fa --- /dev/null +++ b/factory/packages/blueprint-compiler/blueprint-compiler.spec @@ -0,0 +1,149 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.8.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: blueprint-compiler +Version: 0.20.0 +Release: %autorelease +Summary: A markup language for GTK user interfaces + +%global tarball_version %%(echo %{version} | tr '~' '.') + +License: LGPL-3.0-or-later +URL: https://gitlab.gnome.org/GNOME/blueprint-compiler +Source0: https://download.gnome.org/sources/%{name}/0.20/%{name}-%{tarball_version}.tar.xz + +BuildArch: noarch + +BuildRequires: meson +BuildRequires: gtk4-devel +BuildRequires: libadwaita-devel +BuildRequires: python3-devel +BuildRequires: python3-gobject-devel + +Requires: python3-gobject-devel + +%description +GtkBuilder XML format is quite verbose, and many app developers don't like +using WYSIWYG editors for creating UIs. Blueprint files are intended to be a +concise, easy-to-read format that makes it easier to create and edit GTK UIs. +Internally, it compiles to GtkBuilder XML as part of an app's build system. It +adds no new features, just makes the features that exist more accessible. +Another goal is to have excellent developer tooling--including a language +server--so that less knowledge of the format is required. Hopefully this will +increase adoption of cool advanced features like GtkExpression. + + +%prep +%autosetup -p1 -n %{name}-%{tarball_version} + + +%build +%meson +%meson_build + + +%install +%meson_install + + +# Tests fail in mock, but pass otherwise. For some reason, no log is available +# to debug the issue when it fails. +#check +#meson_test + + +%files +%license COPYING +%doc README.md docs/*.rst +%{_bindir}/%{name} +%{python3_sitelib}/blueprintcompiler +%{_datadir}/pkgconfig/%{name}.pc + + +%changelog +## START: Generated by rpmautospec +* Mon Mar 02 2026 Jan Grulich - 0.20.0-2 +- Packit: drop upstream_project_url and rely on release-monitoring only + +* Fri Feb 27 2026 Jan Grulich - 0.20.0-1 +- Update to 0.20.0 + +* Wed Feb 25 2026 Jan Grulich - 0.19.0-3 +- Packit: drop fast_forward_merge_into as current stable branches diverge + +* Tue Feb 24 2026 Jan Grulich - 0.19.0-2 +- Onboard to Packit for stable Fedora branches + +* Mon Jan 19 2026 Jan Horak - 0.19.0-1 +- Update to 0.19.0 + +* Fri Jan 16 2026 Fedora Release Engineering - 0.18.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.18.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Sep 19 2025 Python Maint - 0.18.0-4 +- Rebuilt for Python 3.14.0rc3 bytecode + +* Fri Aug 15 2025 Python Maint - 0.18.0-3 +- Rebuilt for Python 3.14.0rc2 bytecode + +* Wed Jul 23 2025 Fedora Release Engineering - 0.18.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Jul 08 2025 Barry Dunn - 0.18.0-1 +- Update to 0.18.0 + +* Tue Jun 03 2025 Python Maint - 0.16.0-2 +- Rebuilt for Python 3.14 + +* Wed Mar 12 2025 Lyes Saadi - 0.16.0-1 +- Updating to 0.16.0 + +* Thu Jan 16 2025 Fedora Release Engineering - 0.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jul 16 2024 Lyes Saadi - 0.12.0-1 +- Upgrading to 0.12.0 and s390x builds ! (fixes #2270844) + +* Fri Jun 07 2024 Python Maint - 0.10.0-4 +- Rebuilt for Python 3.13 + +* Tue Jan 23 2024 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Sep 14 2023 Lyes Saadi - 0.10.0-1 +- Updating to 0.10.0 (rhbz#2148671, rhbz#2169892) + +* Wed Jul 19 2023 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 0.6.0-3 +- Rebuilt for Python 3.12 + +* Wed Jan 18 2023 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Nov 27 2022 Lyes Saadi - 0.6.0-1 +- Updating to 0.6.0 + +* Tue Sep 13 2022 Lyes Saadi - 0.4.0-1 +- Updating to 0.4.0 + +* Mon Aug 22 2022 Lyes Saadi - 0.2.0-1 +- Initial import +## END: Generated by rpmautospec diff --git a/factory/packages/cairo/.factory-upstream.json b/factory/packages/cairo/.factory-upstream.json new file mode 100644 index 00000000..34339941 --- /dev/null +++ b/factory/packages/cairo/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:54+00:00", + "package": "cairo", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "6c67a0fdbdc32e90009ea399e54e1322428515451e2c19868ee544211d85f470", + "srpm_checksum_type": "sha256", + "tree": "bd492e19d0b8b15edbf0503540672c0ddc8dcd3c" + } +} diff --git a/factory/packages/cairo/cairo-multilib.patch b/factory/packages/cairo/cairo-multilib.patch new file mode 100644 index 00000000..16fd96bb --- /dev/null +++ b/factory/packages/cairo/cairo-multilib.patch @@ -0,0 +1,34 @@ +diff -up cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib cairo-1.12.14/util/cairo-trace/cairo-trace.in +--- cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib 2013-07-18 16:03:38.044832193 -0400 ++++ cairo-1.12.14/util/cairo-trace/cairo-trace.in 2013-07-18 16:03:43.981882777 -0400 +@@ -2,6 +2,12 @@ + + prefix=@prefix@ + exec_prefix=@exec_prefix@ ++case `uname -m` in ++ x86_64|s390x|ppc64) libdir=@prefix@/lib64 ++ ;; ++ *) libdir=@prefix@/lib ++ ;; ++esac + + nofile= + flush= +@@ -90,7 +96,7 @@ export CAIRO_TRACE_PROG_NAME + + if test "x$CAIRO_TRACE_SO" = "x"; then + CAIRO_TRACE_SO="" +- for lib in @libdir@/cairo/libcairo-trace.@SHLIB_EXT@ @libdir@/cairo/libcairo-trace.@SHLIB_EXT@* @libdir@/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do ++ for lib in $libdir/cairo/libcairo-trace.@SHLIB_EXT@ $libdir/cairo/libcairo-trace.@SHLIB_EXT@* $libdir/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do + if test -h "$lib" -o -f "$lib"; then + CAIRO_TRACE_SO="$lib" + break +@@ -98,7 +104,7 @@ if test "x$CAIRO_TRACE_SO" = "x"; then + done + fi + if test "x$CAIRO_TRACE_SO" = "x"; then +- echo "Could not find the cairo-trace shared library in @libdir@/cairo/." >&2 ++ echo "Could not find the cairo-trace shared library in $libdir/cairo/." >&2 + echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2 + exit 15 + fi diff --git a/factory/packages/cairo/cairo.spec b/factory/packages/cairo/cairo.spec new file mode 100644 index 00000000..f80ae31d --- /dev/null +++ b/factory/packages/cairo/cairo.spec @@ -0,0 +1,159 @@ +%define pixman_version 0.36.0 +%define freetype_version 9.7.3 +%define fontconfig_version 2.2.95 + +Name: cairo +Version: 1.18.4 +Release: %autorelease +Summary: A 2D graphics library + +License: LGPL-2.1-only OR MPL-1.1 +URL: https://cairographics.org +Source: https://cairographics.org/releases/%{name}-%{version}.tar.xz + +Patch: cairo-multilib.patch + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(pixman-1) >= %{pixman_version} +BuildRequires: pkgconfig(freetype2) >= %{freetype_version} +BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version} +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(lzo2) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xcb-render) +BuildRequires: pkgconfig(xrender) + +%description +Cairo is a 2D graphics library designed to provide high-quality display +and print output. Currently supported output targets include the X Window +System, in-memory image buffers, and image files (PDF, PostScript, and SVG). + +Cairo is designed to produce consistent output on all output media while +taking advantage of display hardware acceleration when available. + +%package devel +Summary: Development files for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains libraries, header files and developer documentation +needed for developing software which uses the cairo graphics library. + +%package gobject +Summary: GObject bindings for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description gobject +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains functionality to make cairo graphics library +integrate well with the GObject object system used by GNOME. + +%package gobject-devel +Summary: Development files for cairo-gobject +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-gobject%{?_isa} = %{version}-%{release} + +%description gobject-devel +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains libraries, header files and developer documentation +needed for developing software which uses the cairo Gobject library. + +%package tools +Summary: Development tools for cairo +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +Cairo is a 2D graphics library designed to provide high-quality display +and print output. + +This package contains tools for working with the cairo graphics library. + * cairo-trace: Record cairo library calls for later playback + +%prep +%autosetup -p1 + +%build +meson setup --prefix=/usr --libdir=/usr/lib64 --buildtype=plain build \ + -Dfreetype=enabled \ + -Dfontconfig=enabled \ + -Dglib=enabled \ + -Dgtk_doc=true \ + -Dspectre=disabled \ + -Dsymbol-lookup=disabled \ + -Dtee=enabled \ + -Dtests=disabled \ + -Dxcb=enabled \ + -Dxlib=enabled \ + %{nil} +meson compile -C build + +%install +DESTDIR=%{buildroot} meson install -C build + +%files +%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 +%doc AUTHORS BUGS NEWS README.md +%{_libdir}/libcairo.so.2* +%{_libdir}/libcairo-script-interpreter.so.2* + +%files devel +%dir %{_includedir}/cairo/ +%{_includedir}/cairo/cairo-deprecated.h +%{_includedir}/cairo/cairo-features.h +%{_includedir}/cairo/cairo-ft.h +%{_includedir}/cairo/cairo.h +%{_includedir}/cairo/cairo-pdf.h +%{_includedir}/cairo/cairo-ps.h +%{_includedir}/cairo/cairo-script-interpreter.h +%{_includedir}/cairo/cairo-svg.h +%{_includedir}/cairo/cairo-tee.h +%{_includedir}/cairo/cairo-version.h +%{_includedir}/cairo/cairo-xlib-xrender.h +%{_includedir}/cairo/cairo-xlib.h +%{_includedir}/cairo/cairo-script.h +%{_includedir}/cairo/cairo-xcb.h +%{_libdir}/libcairo.so +%{_libdir}/libcairo-script-interpreter.so +%{_libdir}/pkgconfig/cairo-fc.pc +%{_libdir}/pkgconfig/cairo-ft.pc +%{_libdir}/pkgconfig/cairo.pc +%{_libdir}/pkgconfig/cairo-pdf.pc +%{_libdir}/pkgconfig/cairo-png.pc +%{_libdir}/pkgconfig/cairo-ps.pc +%{_libdir}/pkgconfig/cairo-script-interpreter.pc +%{_libdir}/pkgconfig/cairo-svg.pc +%{_libdir}/pkgconfig/cairo-tee.pc +%{_libdir}/pkgconfig/cairo-xlib.pc +%{_libdir}/pkgconfig/cairo-xlib-xrender.pc +%{_libdir}/pkgconfig/cairo-script.pc +%{_libdir}/pkgconfig/cairo-xcb-shm.pc +%{_libdir}/pkgconfig/cairo-xcb.pc +%{_datadir}/gtk-doc/html/cairo + +%files gobject +%{_libdir}/libcairo-gobject.so.2* + +%files gobject-devel +%{_includedir}/cairo/cairo-gobject.h +%{_libdir}/libcairo-gobject.so +%{_libdir}/pkgconfig/cairo-gobject.pc + +%files tools +%{_bindir}/cairo-trace +%{_libdir}/cairo/ + +%changelog +%autochangelog diff --git a/factory/packages/colord-gtk/.factory-upstream.json b/factory/packages/colord-gtk/.factory-upstream.json new file mode 100644 index 00000000..67bcd738 --- /dev/null +++ b/factory/packages/colord-gtk/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:25+00:00", + "package": "colord-gtk", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "08066c86eed681547429cff6f4df6dc802f52ac46fed2c4419dff6f9529570dc", + "srpm_checksum_type": "sha256", + "tree": "404f100267ac936ffe43a447ea235cdcd6fc27f1" + } +} diff --git a/factory/packages/colord-gtk/colord-gtk.spec b/factory/packages/colord-gtk/colord-gtk.spec new file mode 100644 index 00000000..0d38b7cb --- /dev/null +++ b/factory/packages/colord-gtk/colord-gtk.spec @@ -0,0 +1,72 @@ +Name: colord-gtk +Version: 0.3.1 +Release: 100%{?dist} +Summary: GTK4 support library for colord + +License: LGPL-2.1-or-later +URL: https://github.com/hughsie/colord-gtk +Source0: https://github.com/hughsie/colord-gtk/archive/refs/tags/%{version}.tar.gz#/colord-gtk-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: meson +BuildRequires: gettext-devel +BuildRequires: pkgconfig(colord) >= 1.3.3 +BuildRequires: pkgconfig(gtk4) + +%description +colord-gtk4 provides GTK4 support library for colord, a system service +for managing color devices and ICC profiles. + +This package is built without GTK2/GTK3 modules for EL10 compatibility +(EL10 colord-gtk4-devel incorrectly requires colord-gtk-devel which needs gtk3). + +%package -n colord-gtk4 +Summary: GTK4 support library for colord + +%description -n colord-gtk4 +GTK4 widgets for color device management via colord. + +%package -n colord-gtk4-devel +Summary: Development files for colord-gtk4 +Requires: colord-gtk4%{?_isa} = %{version}-%{release} +# Explicitly NOT requiring colord-gtk-devel (gtk3-based package) + +%description -n colord-gtk4-devel +Development files for building against colord-gtk4. +This package does not require colord-gtk (GTK3) or gtk3-devel. + +%prep +%autosetup -n colord-gtk-%{version} -p1 + +%build +%meson \ + -Dgtk2=false \ + -Dgtk3=false \ + -Dgtk4=true \ + -Dintrospection=false \ + -Dvapi=false \ + -Ddocs=false \ + -Dtests=false \ + -Dman=false +%meson_build + +%install +%meson_install +%find_lang colord-gtk + +%ldconfig_scriptlets -n colord-gtk4 + +%files -n colord-gtk4 -f colord-gtk.lang +%license COPYING +%doc README +%{_libdir}/libcolord-gtk4.so.1{,.*} + +%files -n colord-gtk4-devel +%{_includedir}/colord-1/colord-gtk.h +%{_includedir}/colord-1/colord-gtk/ +%{_libdir}/libcolord-gtk4.so +%{_libdir}/pkgconfig/colord-gtk4.pc + +%changelog +* Sat Mar 14 2026 James Reilly - 0.3.1-1 +- Build gtk4-only, without gtk2/gtk3 for EL10 compatibility diff --git a/factory/packages/docbook-style-xsl/.factory-upstream.json b/factory/packages/docbook-style-xsl/.factory-upstream.json new file mode 100644 index 00000000..caceb7f4 --- /dev/null +++ b/factory/packages/docbook-style-xsl/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:45:58+00:00", + "package": "docbook-style-xsl", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "ae652b41a0d287a152fd7dcf489be6818ee3cdaf114eb977cafe4e996f8d7895", + "srpm_checksum_type": "sha256", + "tree": "42e7bbafe2763c9b92f5e456a517f1727b18bc28" + } +} diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch b/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch new file mode 100644 index 00000000..46d54e2b --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch @@ -0,0 +1,74 @@ +diff -urN docbook-xsl-nons-1.79.2/fo/autoidx.xsl docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl +--- docbook-xsl-nons-1.79.2/fo/autoidx.xsl 2016-12-09 22:47:31.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl 2021-01-15 13:20:25.144862117 +0000 +@@ -295,7 +295,8 @@ + + + +- ++ ientry- ++ + + + +@@ -790,7 +791,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +@@ -852,7 +856,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +diff -urN docbook-xsl-nons-1.79.2/html/autoidx.xsl docbook-xsl-nons-1.79.2.new/html/autoidx.xsl +--- docbook-xsl-nons-1.79.2/html/autoidx.xsl 2016-12-09 22:47:30.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/html/autoidx.xsl 2021-01-15 13:20:25.145862128 +0000 +@@ -306,7 +306,8 @@ + + + +- ++ ientry- ++ + + + +@@ -729,7 +730,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + +@@ -788,7 +792,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch b/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch new file mode 100644 index 00000000..ed302a9d --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl-non-recursive-string-subst.patch @@ -0,0 +1,30 @@ +Description: use EXSLT "replace" function when available + A recursive implementation of string.subst is problematic, + long strings with many matches will cause stack overflows. +Author: Peter De Wachter +Bug-Debian: https://bugs.debian.org/750593 + +--- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl ++++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl +@@ -10,7 +10,10 @@ + + This module implements DTD-independent functions + +- ******************************************************************** --> ++ ******************************************************************** --> + + + +@@ -56,6 +59,9 @@ + + + ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile b/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile new file mode 100644 index 00000000..281656de --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl.Makefile @@ -0,0 +1,52 @@ +BINDIR = /usr/bin +DESTDIR = ..overridden in spec file.. + +all: install + +install: install-xsl install-img install-extensions install-misc install-epub + +install-xsl: + mkdir -p $(DESTDIR)/{common,eclipse,fo,html,htmlhelp/doc,javahelp,lib,template,xhtml,xhtml-1_1,manpages,profiling,highlighting,roundtrip,website} + cp common/*.dtd $(DESTDIR)/common + cp common/*.ent $(DESTDIR)/common + cp common/*.xml $(DESTDIR)/common + cp common/*.xsl $(DESTDIR)/common + cp eclipse/*.xsl $(DESTDIR)/eclipse + cp fo/*.xml $(DESTDIR)/fo + cp fo/*.xsl $(DESTDIR)/fo + cp html/*.xml $(DESTDIR)/html + cp html/*.xsl $(DESTDIR)/html + cp htmlhelp/*.xsl $(DESTDIR)/htmlhelp + cp javahelp/*.xsl $(DESTDIR)/javahelp + cp lib/*.xsl $(DESTDIR)/lib + cp template/*.xsl $(DESTDIR)/template + cp xhtml/*.xsl $(DESTDIR)/xhtml + cp xhtml-1_1/*.xsl $(DESTDIR)/xhtml-1_1 + cp manpages/*.xsl $(DESTDIR)/manpages + cp profiling/*.xsl $(DESTDIR)/profiling + cp highlighting/*.xml $(DESTDIR)/highlighting + cp highlighting/*.xsl $(DESTDIR)/highlighting + cp roundtrip/*.xml $(DESTDIR)/roundtrip + cp roundtrip/*.xsl $(DESTDIR)/roundtrip + cp roundtrip/*.dtd $(DESTDIR)/roundtrip + cp website/*.xsl $(DESTDIR)/website + +install-img: + mkdir -p $(DESTDIR)/images/callouts + cp images/*.gif $(DESTDIR)/images + cp images/*.png $(DESTDIR)/images + cp images/*.svg $(DESTDIR)/images + cp images/callouts/*.png $(DESTDIR)/images/callouts + cp images/callouts/*.gif $(DESTDIR)/images/callouts + cp images/callouts/*.svg $(DESTDIR)/images/callouts + +install-extensions: + mkdir -p $(DESTDIR)/extensions + cp -r extensions/* $(DESTDIR)/extensions + +install-epub: + mkdir -p $(DESTDIR)/epub + cp -r epub/* ${DESTDIR}/epub + +install-misc: + cp VERSION $(DESTDIR) diff --git a/factory/packages/docbook-style-xsl/docbook-style-xsl.spec b/factory/packages/docbook-style-xsl/docbook-style-xsl.spec new file mode 100644 index 00000000..0b2a40e4 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-style-xsl.spec @@ -0,0 +1,605 @@ +Name: docbook-style-xsl +Version: 1.79.2 +Release: 27%{?dist} + +Summary: Norman Walsh's XSL stylesheets for DocBook XML + +License: LicenseRef-DMIT +URL: https://github.com/docbook/xslt10-stylesheets + +Provides: docbook-xsl = %{version} +Requires: docbook-dtd-xml +# xml-common was using /usr/share/xml until 0.6.3-8. +Requires: xml-common >= 0.6.3-8 +# libxml2 required because of usage of /usr/bin/xmlcatalog +Requires(post): libxml2 >= 2.4.8 +Requires(postun): libxml2 >= 2.4.8 +# PassiveTeX before 1.21 can't handle the newer stylesheets. +Conflicts: passivetex < 1.21 +BuildRequires: make + + +BuildArch: noarch +# The imported spec wrote `%2F{%version}`, which is malformed: the braces do +# not open a macro, so rpm expands `%version` and leaves a literal `{` and `}` +# in the URL. The result 404s, and because the factory verifies every source +# against a recorded digest, it fails loudly at the lock rather than silently +# building from something else. Corrected to `%2F%{version}`. +Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-nons-%{version}.tar.bz2 +Source1: %{name}.Makefile +Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F%{version}/docbook-xsl-doc-%{version}.tar.bz2 + + +#Avoid proportional-column-width for passivetex (bug #176766). +Patch1: docbook-xsl-pagesetup.patch +#Hard-code the margin-left work around to expect passivetex (bug #113456). +Patch2: docbook-xsl-marginleft.patch +#fix of #161619 - adjustColumnWidths now available +Patch3: docbook-xsl-newmethods.patch +#change a few non-constant expressions to constant - needed for passivetex(#366441) +Patch4: docbook-xsl-non-constant-expressions.patch +#added fixes for passivetex extension and list-item-body(#161371) +Patch5: docbook-xsl-list-item-body.patch +#workaround missing mandir section problem (#727251) +Patch6: docbook-xsl-mandir.patch +#Non-recursive string.subst that doesn't kill smb.conf.5 generation +Patch7: docbook-style-xsl-non-recursive-string-subst.patch +#Fix multilib problems with gtk-doc documentation +#https://github.com/docbook/xslt10-stylesheets/issues/54 +Patch8: docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch + +%description +These XSL stylesheets allow you to transform any DocBook XML document to +other formats, such as HTML, FO, and XHMTL. They are highly customizable. + + +%prep +%setup -c -T -n docbook-xsl-%{version} +tar jxf %{SOURCE0} +mv docbook-xsl-nons-%{version}/* . +pushd .. +tar jxf %{SOURCE2} +popd +%patch -P1 -p1 -b .pagesetup +%patch -P2 -p1 -b .marginleft +%patch -P3 -p1 -b .newmethods +%patch -P4 -p1 -b .nonconstant +%patch -P5 -p1 -b .listitembody +%patch -P6 -p1 -b .mandir +%patch -P7 -p2 -b .non-recursive-subst +%patch -P8 -p1 -b .gtk-doc-multilib + +cp -p %{SOURCE1} Makefile + +# fix of non UTF-8 files rpmlint warnings +for fhtml in $(find ./doc -name '*.html' -type f) +do + iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp + mv -f "$fhtml".tmp "$fhtml" + sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml" +done + +for f in $(find -name "*'*") +do + mv -v "$f" $(echo "$f" | tr -d "'") +done + + +%build + + +%install +DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT +make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +cp -a VERSION.xsl $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl +ln -s xsl-stylesheets-%{version} \ + $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets + +# Don't ship the extensions (bug #177256). +rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/* + + +%files +%doc BUGS +%doc README +%doc TODO +%doc doc +%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +%{_datadir}/sgml/docbook/xsl-stylesheets + + +%post +CATALOG=%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +#keep the old one sourceforge URIs at least temporarily +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG + + + +%postun +# remove entries only on removal of package +if [ "$1" = 0 ]; then + CATALOG=%{_sysconfdir}/xml/catalog + %{_bindir}/xmlcatalog --noout --del \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +fi + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 1.79.2-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 1.79.2-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 1.79.2-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 1.79.2-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 1.79.2-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 1.79.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.79.2-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 23 2023 Ondrej Sloup - 1.79.2-20 +- Update license tag to the SPDX format + +* Wed Jul 19 2023 Fedora Release Engineering - 1.79.2-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.79.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.79.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.79.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.79.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.79.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 David King - 1.79.2-13 +- Fix gtk-doc multilib failures + +* Mon Jul 27 2020 Fedora Release Engineering - 1.79.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.79.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.79.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.79.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.79.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.79.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Sep 13 2017 Alexander Bokovoy - 1.79.2-6 +- Use non-recursive string.subst to allow building large documents like smb.conf.5 + +* Wed Jul 26 2017 Fedora Release Engineering - 1.79.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.79.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 03 2017 Ondrej Vasik - 1.79.2-3 +- keep old sourceforge entries at least temporarily (#1409587) + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-2 +- update xmlcatalog entries to docbook.org cdn + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-1 +- new upstream release 1.79.2 +- upstream moved to github + +* Fri Jul 08 2016 Ondrej Vasik - 1.79.1-1 +- new upstream release 1.79.1 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.78.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.78.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.78.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jul 29 2013 Ondrej Vasik 1.78.1-2 +- use DMIT (modified MIT) as a license for the + stylesheets (#988715) + +* Mon Mar 18 2013 Ondrej Vasik 1.78.1-1 +- new upstream release 1.78.1 + +* Wed Feb 13 2013 Fedora Release Engineering - 1.78.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Dec 20 2012 Ondrej Vasik 1.78.0-1 +- new upstream release 1.78.0 + +* Wed Jul 18 2012 Fedora Release Engineering - 1.77.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-2 +- ship VERSION.xsl file (#829014) + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-1 +- new stable upstream release 1.77.1 +- defuzz patches + +* Fri Jan 13 2012 Fedora Release Engineering - 1.76.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Sep 6 2011 Ondrej Vasik 1.76.1-4 +- revert previous change, workaround the mandir links issue + in buildroot (#727251) + +* Mon Aug 29 2011 Ondrej Vasik 1.76.1-3 +- make man.output.in.separate.dir "on" by default (#727251) + +* Tue Feb 08 2011 Fedora Release Engineering - 1.76.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Nov 02 2010 Ondrej Vasik 1.76.1-1 +- new upstream release 1.76.1 + +* Mon Sep 06 2010 Ondrej Vasik 1.76.0-1 +- new upstream release 1.76.0 + +* Tue May 04 2010 Ondrej Vasik 1.75.2-6 +- ship eclipse help stylesheets(#588613) + +* Fri Dec 18 2009 Ondrej Vasik 1.75.2-5 +- comment patches purpose +- License Copyright only + +* Fri Jul 24 2009 Fedora Release Engineering - 1.75.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jul 23 2009 Ondrej Vasik 1.75.2-3 +- upstream changed changed doc tarball after release + (empty reference pdf file in old tarball) + +* Wed Jul 22 2009 Ondrej Vasik 1.75.2-2 +- upstream changed tarballs after release + +* Tue Jul 21 2009 Ondrej Vasik 1.75.2-1 +- New upstream release 1.75.2 + +* Thu May 28 2009 Ondrej Vasik 1.75.1-1 +- New upstream release 1.75.1 + +* Mon May 11 2009 Ondrej Vasik 1.75.0-1 +- New upstream release 1.75.0 +- update marginleft patch + +* Wed Mar 11 2009 Ondrej Vasik 1.74.3-1 +- New upstream release 1.74.3 + +* Tue Feb 24 2009 Fedora Release Engineering - 1.74.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 23 2009 Ondrej Vasik 1.74.2-2 +- updated Makefile: do ship .svg images(#486849), xsl + stylesheets for website, xhtml-1_1, docbook -> epub + convertor + +* Fri Feb 20 2009 Ondrej Vasik 1.74.2-1 +- New upstream release 1.74.2 + +* Wed Feb 18 2009 Ondrej Vasik 1.74.1-1 +- New upstream release, removed included patches + +* Wed Feb 11 2009 Ondrej Vasik 1.74.0-7 +- fix broken varlistentry (#479683) + +* Mon Feb 02 2009 Ondrej Vasik 1.74.0-6 +- fix improper localization for rtl languages, thanks + Muayyad Alsadi(#475077) + +* Wed Jan 28 2009 Ondrej Vasik 1.74.0-5 +- fix xsl stylesheets for rtl languages(#475077) + +* Fri Dec 12 2008 Ondrej Vasik 1.74.0-4 +- Author_Group "" merged between "" + and "" (#473019) + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-3 +- Rediffed all patches to work with patch --fuzz=0 + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-2 +- Tiny changes in docbook-xsl-newmethods.patch to work with xalan + (#452867) + +* Tue Jun 03 2008 Ondrej Vasik 1.74.0-1 +- New upstream release 1.74.0, adapted patches + +* Fri Dec 14 2007 Ondrej Vasik 1.73.2-9 +- added fixes for passivetex extension and list-item-body + (#161371) + +* Tue Dec 11 2007 Ondrej Vasik 1.73.2-8 +- remove entries from xmlcatalog only on removal of package + (required because of the change with droping release + -caused drop of catalog entries during update) + +* Tue Dec 04 2007 Ondrej Vasik 1.73.2-7 +- change a few non-constant expressions to constant that + could now be handled by passivetex(#366441) + +* Mon Dec 03 2007 Ondrej Vasik 1.73.2-6 +- fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's + documentation for nonpassivetex processing(#307001) + +* Tue Nov 27 2007 Ondrej Vasik 1.73.2-5 +- convert all html files in doc to UTF-8 in prep + (latest rpmlint gives warnings) +- no longer using release in style-xsl dir(#389231) + +* Tue Nov 06 2007 Ondrej Vasik 1.73.2-4 +- Merge review(#225704) +- spec file modified to follow guidelines + +* Wed Oct 24 2007 Ondrej Vasik 1.73.2-3 +- rpmlint check +- fixed License Tag, Requires and some cosmetic issues + +* Fri Sep 7 2007 Ondrej Vasik 1.73.2-2 +- Added PreReq of libxml2(#253962) + +* Wed Sep 5 2007 Ondrej Vasik 1.73.2-1 +- new upstream version + +* Thu Aug 30 2007 Ondrej Vasik 1.73.1-2 +- removed patch for #249294(included in new version other way) + +* Wed Aug 29 2007 Ondrej Vasik 1.73.1-1 +- new upstream version(fixing some bugs) +- small new-methods patch change + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-2 +- fixed manpages/docbook.xsl failure(Tim Waugh,#249294) + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-1 +- update to latest upstream version +- patch changes because of rejects + +* Mon Jun 18 2007 Ondrej Vasik 1.72.0-3 +- patch fixing #161619 taken from upstream + +* Wed Jan 24 2007 Tomas Mraz 1.72.0-2 +- Install missing *.ent from common. + +* Tue Jan 23 2007 Tim Waugh 1.72.0-1 +- 1.72.0. + +* Fri Jan 19 2007 Tomas Mraz 1.71.1-2 +- Add new wordml and especially highlighting (which is referenced + from html) subdirs to Makefile. + +* Fri Jan 19 2007 Tim Waugh 1.71.1-1 +- 1.71.1. No longer seem to need lists patch. Removed out of date sp + patch. + +* Wed Jul 12 2006 Jesse Keating - 1.69.1-5.1 +- rebuild + +* Tue Jan 24 2006 Tim Waugh 1.69.1-5 +- Don't ship docsrc/* (bug #177256). +- Don't ship the extensions (bug #177256). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-4 +- Better 'lists' patch (bug #161371). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-3 +- Apply patch to fix simpara manpage output, which asciidoc tends to use + (bug #175592). + +* Tue Jan 3 2006 Tim Waugh 1.69.1-2 +- Patches from W. Michael Petullo: + - Fix lists blocking (bug #161371). + - Avoid proportional-column-width for passivetex (bug #176766). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Aug 12 2005 Tim Waugh 1.69.1-1 +- 1.69.1. + +* Mon Jul 18 2005 Tim Waugh 1.69.0-1 +- 1.69.0. + +* Mon Feb 14 2005 Tim Waugh 1.68.1-1 +- 1.68.1. + +* Wed Feb 9 2005 Tim Waugh 1.68.0-1 +- 1.68.0. + +* Wed Dec 8 2004 Tim Waugh 1.67.2-2 +- Prevent expressions in passivetex output from index.xsl (bug #142229). + +* Thu Dec 2 2004 Tim Waugh 1.67.2-1 +- 1.67.2. +- No longer need nbsp or listblock patches. + +* Mon Nov 22 2004 Tim Waugh 1.67.0-3 +- Avoid non-ASCII in generated man pages. + +* Wed Nov 10 2004 Tim Waugh 1.67.0-1 +- 1.67.0. + +* Tue Nov 2 2004 Tim Waugh 1.66.1-1 +- 1.66.1 (bug #133586). + +* Fri Jun 4 2004 Tim Waugh 1.65.1-2 +- Fix strange filenames (bug #125311). + +* Tue Mar 9 2004 Tim Waugh 1.65.1-1 +- 1.65.1. + +* Mon Mar 1 2004 Tim Waugh 1.65.0-1 +- 1.65.0. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jan 20 2004 Tim Waugh 1.64.1-6 +- Fix last margin-left fix (bug #113456). +- Reduce instances of itemized/ordered lists having misalignments. + +* Sun Jan 18 2004 Tim Waugh 1.64.1-5 +- And another (bug #113456). + +* Thu Jan 15 2004 Tim Waugh 1.64.1-4 +- Fixed another instance of bug #113456 in lists layout. + +* Wed Jan 14 2004 Tim Waugh 1.64.1-3 +- Hard-code the margin-left work around to expect passivetex (bug #113456). + +* Wed Dec 24 2003 Tim Waugh 1.64.1-2 +- Another manpage fix. + +* Fri Dec 19 2003 Tim Waugh 1.64.1-1 +- 1.64.1. + +* Thu Dec 18 2003 Tim Waugh 1.64.0-2 +- Another manpage fix. + +* Tue Dec 16 2003 Tim Waugh 1.64.0-1 +- 1.64.0. + +* Fri Dec 12 2003 Tim Waugh 1.62.4-3 +- Use the fr.xml from 1.62.1 (bug #111989). + +* Thu Dec 11 2003 Tim Waugh 1.62.4-2 +- Manpages fixes. + +* Thu Dec 11 2003 Tim Waugh 1.62.4-1 +- 1.62.4. +- No longer need hyphens patch. +- Avoid expressions in margin-left attributes, since passivetex does not + understand them. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2.1 +- Rebuilt. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2 +- Rebuilt. + +* Fri May 23 2003 Tim Waugh 1.61.2-1 +- 1.61.2. + +* Sun May 18 2003 Tim Waugh 1.61.1-1 +- 1.61.1. + +* Fri May 9 2003 Tim Waugh 1.61.0-1 +- Prevent hyphenation-character confusing passivetex. +- 1.61.0. + +* Thu Mar 6 2003 Tim Waugh 1.60.1-1 +- 1.60.1. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Mon Dec 2 2002 Tim Waugh 1.58.1-1 +- 1.58.1. +- No longer need marker patch. + +* Mon Nov 4 2002 Tim Waugh 1.57.0-2 +- Ship profiling directory (bug #77191). + +* Tue Oct 22 2002 Tim Waugh 1.57.0-1 +- 1.57.0. + +* Wed Oct 16 2002 Tim Waugh 1.56.1-1 +- 1.56.1. +- Use value-of not copy-of for fo:marker content. +- Conflict with passivetex < 1.21. + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed May 1 2002 Tim Waugh 1.50.0-1 +- 1.50.0. + +* Thu Feb 21 2002 Tim Waugh 1.49-1 +- 1.49. +- Rebuild in new environment. + +* Fri Feb 1 2002 Tim Waugh 1.48-4 +- Put URIs instead of pathnames in the XML catalog. + +* Thu Jan 17 2002 Tim Waugh 1.48-3 +- Back to /usr/share/sgml. + +* Wed Jan 09 2002 Tim Powers 1.48-2 +- automated rebuild + +* Mon Jan 7 2002 Tim Waugh 1.48-1 +- 1.48. + +* Sat Dec 8 2001 Tim Waugh 1.47-2 +- Conflict with PassiveTeX before 1.11. + +* Tue Oct 16 2001 Tim Waugh 1.47-1 +- 1.47-experimental. + +* Tue Oct 9 2001 Tim Waugh 1.45-2 +- Fix unversioned symlink. + +* Mon Oct 8 2001 Tim Waugh 1.45-1 +- XML Catalog entries. +- Move files to /usr/share/xml. + +* Mon Oct 1 2001 Tim Waugh 1.45-0.1 +- 1.45. +- Built for Red Hat Linux. + +* Tue Jun 26 2001 Chris Runge +- 1.40 + +* Sat Jun 09 2001 Chris Runge +- added extensions and additional doc +- bin added to doc; the Perl files are for Win32 Perl and so need some + conversion first + +* Fri Jun 08 2001 Chris Runge +- Initial RPM (based on docbook-style-dsssl RPM) +- note: no catalog right now (I don't know how to do it; and not sure why + it is necessary) diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch b/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch new file mode 100644 index 00000000..a3d3819f --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-list-item-body.patch @@ -0,0 +1,110 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl +--- docbook-xsl-1.74.0.orig/fo/lists.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/lists.xsl 2008-08-06 13:41:27.000000000 +0200 +@@ -248,9 +248,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -446,10 +454,18 @@ + + + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -925,9 +941,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -951,9 +975,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1141,9 +1173,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch b/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch new file mode 100644 index 00000000..2e06b222 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-mandir.patch @@ -0,0 +1,19 @@ +diff -urNp docbook-xsl-1.76.1-orig/manpages/other.xsl docbook-xsl-1.76.1/manpages/other.xsl +--- docbook-xsl-1.76.1-orig/manpages/other.xsl 2010-08-27 05:14:52.000000000 +0200 ++++ docbook-xsl-1.76.1/manpages/other.xsl 2011-09-06 17:17:07.973737258 +0200 +@@ -595,7 +595,14 @@ manvolnum + Note: + (soelim stub) + +- ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch b/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch new file mode 100644 index 00000000..cb8d121b --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-marginleft.patch @@ -0,0 +1,53 @@ +diff -urNp docbook-xsl-1.78.0-orig/fo/lists.xsl docbook-xsl-1.78.0/fo/lists.xsl +--- docbook-xsl-1.78.0-orig/fo/lists.xsl 2012-12-20 11:45:07.870679175 +0100 ++++ docbook-xsl-1.78.0/fo/lists.xsl 2012-12-20 11:55:31.440307881 +0100 +@@ -376,7 +376,7 @@ + + + +- ++ + + + +@@ -385,7 +385,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -394,7 +394,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -409,8 +409,6 @@ + 1em + + +- + +- + + + +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-06-02 01:06:18.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 +@@ -133,8 +133,8 @@ + + always + +- +- ++ ++ + false + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch b/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch new file mode 100644 index 00000000..d5d4d842 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-newmethods.patch @@ -0,0 +1,394 @@ +diff -ruNp docbook-xsl-1.74.0.orig/html/docbook.xsl docbook-xsl-1.74.0/html/docbook.xsl +--- docbook-xsl-1.74.0.orig/html/docbook.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/docbook.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -26,6 +26,7 @@ + + + ++ + + + +@@ -44,6 +45,7 @@ + + + ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/html/dtbl.xsl docbook-xsl-1.74.0/html/dtbl.xsl +--- docbook-xsl-1.74.0.orig/html/dtbl.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/html/dtbl.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,293 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ " ++ ++ " is not a known unit. Applying scaling factor of 1 instead. ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ entering adjustColumnWidths( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ total relative widths = ( ++ ++ ) ++ ++ ++ total absolute widths = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ all widths are absolute ++ ++ ++ ++ ++ ++ all widths are relative ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ result = ( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ first.bad.column = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 1* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruNp docbook-xsl-1.74.0.orig/html/table.xsl docbook-xsl-1.74.0/html/table.xsl +--- docbook-xsl-1.74.0.orig/html/table.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/table.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -5,7 +5,8 @@ + xmlns:xtbl="xalan://com.nwalsh.xalan.Table" + xmlns:lxslt="http://xml.apache.org/xslt" + xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table" +- exclude-result-prefixes="doc stbl xtbl lxslt ptbl" ++ xmlns:dtbl="http://docbook.sourceforge.net/dtbl" ++ exclude-result-prefixes="doc stbl xtbl lxslt ptbl dtbl" + version='1.0'> + + +@@ -365,6 +366,9 @@ + + ++ ++ ++ + + + +@@ -389,6 +393,9 @@ + + ++ ++ ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl docbook-xsl-1.74.0/lib/dumpfragment.xsl +--- docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/lib/dumpfragment.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,30 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ =" ++ ++ " ++ ++ ++ ++ < ++ ++ > ++ ++ </ ++ > ++ ++ ++ +diff -urNp docbook-xsl-1.76.0-orig/html/param.xsl docbook-xsl-1.76.0/html/param.xsl +--- docbook-xsl-1.76.0-orig/html/param.xsl 2010-08-31 09:27:22.000000000 +0200 ++++ docbook-xsl-1.76.0/html/param.xsl 2010-09-06 11:01:07.916914161 +0200 +@@ -68,6 +68,7 @@ div.annotation-close { position: absolut + http://cdn.docbook.org/release/xsl/images/annot-close.png + http://cdn.docbook.org/release/xsl/images/annot-open.png + ++ + + http://cdn.docbook.org/release/xsl/script/AnchorPosition.js http://cdn.docbook.org/release/xsl/script/PopupWindow.js + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch b/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch new file mode 100644 index 00000000..0c3f6be7 --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-non-constant-expressions.patch @@ -0,0 +1,25 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:38:36.000000000 +0200 +@@ -23,8 +23,8 @@ + always + always + +- +- ++ ++ + false + center + +@@ -334,8 +334,8 @@ set toc,title + bold + always + +- +- ++ ++ + 0pt + + diff --git a/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch b/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch new file mode 100644 index 00000000..2c9c62be --- /dev/null +++ b/factory/packages/docbook-style-xsl/docbook-xsl-pagesetup.patch @@ -0,0 +1,281 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/pagesetup.xsl docbook-xsl-1.74.0/fo/pagesetup.xsl +--- docbook-xsl-1.74.0.orig/fo/pagesetup.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/pagesetup.xsl 2008-08-06 13:31:11.000000000 +0200 +@@ -1697,45 +1697,99 @@ + + + +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + +@@ -2021,45 +2066,99 @@ + + + +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + diff --git a/factory/packages/docbook-utils/.factory-upstream.json b/factory/packages/docbook-utils/.factory-upstream.json new file mode 100644 index 00000000..66bdc2ca --- /dev/null +++ b/factory/packages/docbook-utils/.factory-upstream.json @@ -0,0 +1,13 @@ +{ + "imported_at": "2026-10-10T05:40:38+00:00", + "package": "docbook-utils", + "schema": 1, + "source": { + "chroot": "epel-10-x86_64", + "kind": "srpm", + "repository": "https://download.copr.fedorainfracloud.org/results/jreilly1821/c10s-gnome-50", + "srpm_checksum": "71aea6d776c59f3555d65f1e0ec60c1cdb2cc9c627f33b24ad22f9837975ea1c", + "srpm_checksum_type": "sha256", + "tree": "291e976028bd7e9a6abcdcf4198446c6933d58b5" + } +} diff --git a/factory/packages/docbook-utils/db2html b/factory/packages/docbook-utils/db2html new file mode 100755 index 00000000..ca94b823 --- /dev/null +++ b/factory/packages/docbook-utils/db2html @@ -0,0 +1,59 @@ +#! /bin/sh + +ADMON_GRAPHICS=/usr/share/sgml/docbook/dsssl-stylesheets/images/*.gif + +output=docbook2html-dir +skip=0 +dbdircleanup=1 +outputdone=0 +for arg in "$@" +do + if [ $skip -gt 0 ] + then + skip=$(($skip - 1)) + continue + fi + case $arg in + -h|--help|-v|--version) break + ;; + -n|--nostd|-u|--nochunks) ;; + -o|--output) outputdone=1 + ;; + + -*) skip=1 + ;; + *) dbdircleanup=0 + if [ ${outputdone} -eq 1 ]; + then + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile="$basename "$output"" + outputdone=2 + elif [ ${outputdone} -eq 2 ]; + then + outputfile="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,' | \ + rev | cut -d'/' -f1 | rev)" + else + output="$(echo $arg | sed 's,\.sgml$,,;s,\.sgm$,,;s,\.xml,,')" + outputfile=$(basename "$output") + fi + ;; + esac +done + +if [ ${dbdircleanup} -eq 0 ]; +then + echo "Output is $output/$outputfile.html" +fi +if [ -d ${output} ] +then + rm -rf ${output}.junk + mv ${output} ${output}.junk +fi +mkdir ${output} +mkdir ${output}/stylesheet-images +cp ${ADMON_GRAPHICS} ${output}/stylesheet-images +jw -f docbook -b html -o ${output} "$@" +if [ ${dbdircleanup} -eq 1 ]; +then + rm -rf ${output} +fi diff --git a/factory/packages/docbook-utils/docbook-utils.spec b/factory/packages/docbook-utils/docbook-utils.spec new file mode 100644 index 00000000..966cf91c --- /dev/null +++ b/factory/packages/docbook-utils/docbook-utils.spec @@ -0,0 +1,570 @@ +Name: docbook-utils +Version: 0.6.15 +Release: 6%{?dist} + +Summary: Shell scripts for managing DocBook documents +URL: https://github.com/devexp-db/docbook-utils + +License: GPL-2.0-or-later + +Requires: docbook-style-dsssl >= 1.72 +Requires: docbook-dtds +Requires: perl-SGMLSpm >= 1.03ii +Requires: which grep gawk +Requires: text-www-browser + +# In the absence of an already-installed text-www-browser, prefer lynx +Suggests: lynx + +BuildRequires: perl-generators +BuildRequires: perl-SGMLSpm, openjade, docbook-style-dsssl +BuildRequires: make + +BuildArch: noarch +Source0: https://github.com/devexp-db/docbook-utils/releases/download/v%{version}/%{name}-%{version}.tar.xz +Source1: db2html +Source2: gdp-both.dsl +#We will ship newer version of docbook2man-spec.pl for better handling of docbook2man conversion +#You could check it at http://sourceforge.net/projects/docbook2x/ +Source3: docbook2man-spec.pl + +Obsoletes: stylesheets < %{version}-%{release} +Provides: stylesheets = %{version}-%{release} + +%description +This package contains scripts are for easy conversion from DocBook +files to other formats (for example, HTML, RTF, and PostScript), and +for comparing SGML files. + +%package pdf +Requires: texlive-jadetex >= 7 +Requires: docbook-utils = %{version} +Requires: tex(dvips) +Requires: texlive-collection-fontsrecommended +Requires: texlive-collection-formatsextra +License: GPL-1.0-or-later +Obsoletes: stylesheets-db2pdf <= %{version}-%{release} +Provides: stylesheets-db2pdf = %{version}-%{release} +Summary: A script for converting DocBook documents to PDF format +URL: http://sources.redhat.com/docbook-tools/ + +%description pdf +This package contains a script for converting DocBook documents to +PDF format. + +%prep +%setup -q + +%build +./configure --prefix=%{_prefix} --mandir=%{_mandir} --libdir=%{_libdir} +make %{?_smp_mflags} + +%install +export DESTDIR=$RPM_BUILD_ROOT +make install prefix=%{_prefix} mandir=%{_mandir} docdir=/tmp +for util in dvi html pdf ps rtf +do + ln -s docbook2$util $RPM_BUILD_ROOT%{_bindir}/db2$util + ln -s jw.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/db2$util.1 +done +ln -s jw.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/docbook2txt.1 +# db2html is not just a symlink, as it has to create the output directory +rm -f $RPM_BUILD_ROOT%{_bindir}/db2html +install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html +install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl +install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/helpers/docbook2man-spec.pl + +rm -rf $RPM_BUILD_ROOT/tmp + +%files +%doc README COPYING TODO +%{_bindir}/jw +%{_bindir}/docbook2html +%{_bindir}/docbook2man +%{_bindir}/docbook2rtf +%{_bindir}/docbook2tex +%{_bindir}/docbook2texi +%{_bindir}/docbook2txt +%attr(0755,root,root) %{_bindir}/db2html +%{_bindir}/db2rtf +%{_bindir}/sgmldiff +%{_datadir}/sgml/docbook/utils-%{version} +%{_mandir}/*/db2dvi.* +%{_mandir}/*/db2html.* +%{_mandir}/*/db2ps.* +%{_mandir}/*/db2rtf.* +%{_mandir}/*/docbook2html.* +%{_mandir}/*/docbook2rtf.* +%{_mandir}/*/docbook2man.* +%{_mandir}/*/docbook2tex.* +%{_mandir}/*/docbook2texi.* +%{_mandir}/*/docbook2txt.* +%{_mandir}/*/jw.* +%{_mandir}/*/sgmldiff.* +%{_mandir}/*/*-spec.* + +%files pdf +%{_bindir}/docbook2pdf +%{_bindir}/docbook2dvi +%{_bindir}/docbook2ps +%{_bindir}/db2dvi +%{_bindir}/db2pdf +%{_bindir}/db2ps +%{_mandir}/*/db2pdf.* +%{_mandir}/*/docbook2pdf.* +%{_mandir}/*/docbook2dvi.* +%{_mandir}/*/docbook2ps.* + +%changelog +* Tue Feb 10 2026 Than Ngo - 0.6.15-6 +- Fix rhbz#2437555 - F44FailsToInstall + +* Fri Jan 16 2026 Fedora Release Engineering - 0.6.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jan 16 2026 Fedora Release Engineering - 0.6.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 0.6.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 0.6.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Oct 9 2024 Ales Nezbeda - 0.6.15-1 +- Switch to an active upstream +- Remove patches as they are now upstream + +* Wed Jul 17 2024 Fedora Release Engineering - 0.6.14-62 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 17 2024 Miroslav Suchý - 0.6.14-61 +- convert license to SPDX + +* Wed Jan 24 2024 Fedora Release Engineering - 0.6.14-60 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.6.14-59 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 23 2023 Ondrej Sloup - 0.6.14-58 +- Update license tag to the SPDX format + +* Wed Jul 19 2023 Fedora Release Engineering - 0.6.14-57 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 0.6.14-56 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 0.6.14-55 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 0.6.14-54 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.6.14-53 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0.6.14-52 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 18 2021 Kamil Dudka - 0.6.14-51 +- suggest lynx rather than elinks to satisfy text-www-browser + +* Mon Jul 27 2020 Fedora Release Engineering - 0.6.14-50 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.6.14-49 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.6.14-48 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.6.14-47 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 0.6.14-46 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Mar 12 2018 Ondrej Mosnáček - 0.6.14-45 +- Fix jadetex dependency + +* Wed Feb 07 2018 Fedora Release Engineering - 0.6.14-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.6.14-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.6.14-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jul 01 2016 Stephen Gallagher - 0.6.14-41 +- Add "Suggests: elinks" to satisfy text-www-browser +- Resolves: rhbz#1310897 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.6.14-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.6.14-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.14-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.6.14-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 0.6.14-36 +- Perl 5.18 rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.6.14-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Dec 11 2012 Ondrej Vasik 0.6.14-34 +- fix the sgmlinclude patch (#797120) + +* Mon Nov 12 2012 Ondrej Vasik 0.6.14-33 +- add missing requires in pdf subpackage added due to texlive + update (#875344) + +* Wed Jul 18 2012 Fedora Release Engineering - 0.6.14-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed May 30 2012 Ondrej Vasik 0.6.14-31 +- fix escaping of double-quotes in docbook2man (#826139) +- fix the wrong format of C-style functions in docbook2man (#662869) +- fix stray .fi at the end of funcsynopsis section (#662869) + +* Fri Jan 13 2012 Fedora Release Engineering - 0.6.14-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Nov 25 2011 Ondrej Vasik 0.6.14-29 +- improve handling of jw options in db2html,respect + --output (#756928) + +* Fri Nov 25 2011 Ondrej Vasik 0.6.14-28 +- cleanup output dir for empty db2html input (#756930) + +* Tue Feb 08 2011 Fedora Release Engineering - 0.6.14-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Oct 04 2010 Ondrej Vasik 0.6.14-26 +- fix autogenerated manpage header format(#639347) + +* Tue Sep 28 2010 Ondrej Vasik 0.6.14-25 +- make [[:space:]] class syntax compatible with new grep(#637594) + +* Mon May 31 2010 Ondrej Vasik 0.6.14-24 +- do not produce final echo, it causes some manpage noise + with new perl(#513271, #587012) + +* Tue Oct 27 2009 Ondrej Vasik 0.6.14-23 +- do not obsolete self + +* Mon Oct 12 2009 Ondrej Vasik 0.6.14-22 +- fix url in pdf subpackage + +* Wed Oct 07 2009 Ondrej Vasik 0.6.14-21 +- fix locale-based papersize selection (#527395) + +* Thu Aug 27 2009 Ondrej Vasik 0.6.14-20 +- provide symlink manpage for docbook2txt + +* Thu Aug 13 2009 Ondrej Vasik 0.6.14-19 +- add note about openjade limitation in rtf section of jw + manpage(#516942) + +* Fri Jul 24 2009 Ondrej Vasik 0.6.14-18 +- another quoted variable fixes for spaces in filenames +- use SGML_INCLUDE in man backend(upstream) +- change upstream URL to something useful +- escape dots and single quotes in column 1 in docbook2man-spec.pl + +* Mon Jun 29 2009 Ondrej Vasik 0.6.14-17 +- fix pdf subpackage requires(to match TeXLive2008 provides) + +* Tue Feb 24 2009 Fedora Release Engineering - 0.6.14-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Nov 28 2008 Ondrej Vasik 0.6.14-15 +- require grep,gawk, fix jw script to find SGML_BASE_DIR even + with grep with colors(#473278), finish funcsynopsis patch + drop + +* Mon Sep 08 2008 Ondrej Vasik 0.6-14-14 +- ship new version of docbook2man-spec.pl to avoid issues + with the old one +- dropped funcsynopsis patch - docbook2man-spec.pl from + tarball used no longer + +* Thu Nov 22 2007 Ondrej Vasik 0.6.14-13 +- fix of w3m params while converting to txt + +* Tue Nov 05 2007 Ondrej Vasik 0.6.14-12 +- Merge Review(#225705) +- corrected some other packaging guidelines issues + +* Thu Nov 01 2007 Ondrej Vasik 0.6.14-11 +- rpmlint check +- fixed: dist tag, summary ended with dot, license tag, + versioned provides/obsoletes + some cosmetic changes + +* Fri Oct 12 2007 Ondrej Vasik 0.6.14-10 +- generalized text browser requirement(#174566) + +* Tue Sep 18 2007 Ondrej Vasik 0.6.14-9 +- fixed typo in Source URL + +* Mon May 21 2007 Ondrej Vasik 0.6.14-8 +- Added more fixes for handling spaces in directory name +- SGML_FILE variable is factored out of SGML_ARGUMENTS +- (changes taken from upstream) + +* Tue Apr 24 2007 Petr Mejzlik 0.6.14-7 +- add missing dist tag, bump release + +* Tue Apr 24 2007 Petr Mejzlik 0.6.14-6 +- Fixed a minor bug in processing of (bug #217649) + +* Wed Jul 12 2006 Jesse Keating - 0.6.14-5.1 +- rebuild + +* Thu Mar 09 2006 Florian La Roche +- use 755 instead of 775 for /usr/bin/db2html + +* Thu Jan 5 2006 Tim Waugh 0.6.14-5 +- Move dvi and ps tools into pdf sub-package (bug #174897). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Aug 19 2004 Tim Waugh 0.6.14-4 +- Apply CVS patch to protect spaces in jw (bug #130329). + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Wed Feb 11 2004 Tim Waugh 0.6.14-1 +- 0.6.14. +- All patches integrated. + +* Thu Nov 27 2003 Tim Waugh 0.6.13-9 +- Requires jadetex (bug #110755). + +* Thu Nov 27 2003 Tim Waugh 0.6.13-8 +- Build requires docbook-style-dsssl (bug #110754). + +* Tue Jun 10 2003 Tim Waugh 0.6.13-7 +- Fix manpage output: escape dots in column 1 (bug #97087). + +* Tue May 27 2003 Tim Waugh 0.6.13-6 +- Rebuild. + +* Fri May 23 2003 Tim Waugh 0.6.13-5 +- Build requires openjade. + +* Thu May 22 2003 Tim Waugh 0.6.13-4 +- Require elinks (bug #91472). + +* Thu May 1 2003 Tim Waugh 0.6.13-3 +- Move docbook2pdf man pages to pdf subpackage (bug #90041). + +* Wed Apr 30 2003 Elliot Lee 0.6.13-2 +- Add s/head -1/head -n 1/ patch to make ppc64 happy (among other things) + +* Mon Mar 17 2003 Tim Waugh 0.6.13-1 +- 0.6.13, fixing bug #86152. + +* Fri Feb 14 2003 Elliot Lee 0.6.12-6 +- tetex-dvips requirement should go on main package (not just pdf + subpackage) because docbook2ps requires dvips too. + +* Wed Feb 5 2003 Tim Waugh 0.6.12-5 +- Build requires perl-SGMLSpm (bug #83474). + +* Wed Jan 22 2003 Tim Powers 0.6.12-4 +- rebuilt + +* Mon Jan 13 2003 Tim Waugh 0.6.12-3 +- Fixes from CVS. + +* Tue Oct 22 2002 Tim Waugh 0.6.12-2 +- No longer need separate stylesheet for A4. +- Don't install files not packaged. + +* Wed Oct 16 2002 Tim Waugh 0.6.12-1 +- 0.6.12. + +* Thu Jun 27 2002 Tim Waugh 0.6.11-2 +- 0.6.11. + +* Fri Jun 21 2002 Tim Powers 0.6.10-5 +- automated rebuild + +* Sun May 26 2002 Tim Powers 0.6.10-4 +- automated rebuild + +* Mon May 20 2002 Tim Waugh 0.6.10-3 +- Improvements for man page output. + +* Fri May 3 2002 Tim Waugh 0.6.10-2 +- Don't define graphic-default-extension in the stylesheet---it messes + up PS+PDF output from the same source. + +* Wed May 1 2002 Tim Waugh 0.6.10-1 +- 0.6.10. +- No longer need automake files. +- No longer need '.', jw-custom, '@', pdf, nochunks, txt, '-o', manpage, + sdata, help, ol, '-V', sgml_xml, excl, link, pagesize, or texinputs + patches. + +* Fri Apr 12 2002 Tim Waugh 0.6.9-25 +- Turned off use-id-as-filename in gdp-both.dsl. + +* Fri Mar 22 2002 Tim Waugh 0.6.9-24 +- Pick up images from the right place (bug #61652). + +* Wed Mar 6 2002 Tim Waugh 0.6.9-23 +- Add URL tags, and provide: stylesheets and stylesheets-pdf (bug #60226). + +* Thu Feb 21 2002 Tim Waugh 0.6.9-22 +- Rebuild in new environment. + +* Tue Feb 5 2002 Tim Waugh 0.6.9-21 +- Edited the wrong file when making the patch.. fix breakage introduced + by trying to fix bug #58375. + +* Tue Feb 5 2002 Tim Waugh 0.6.9-20 +- Fix docbook frontend (bug #51478). +- Make the old db2html script understand the .xml filename extension + (bug #59194). +- Determine page size to use automatically from LC_PAPER (bug #58375). + +* Fri Jan 25 2002 Tim Waugh 0.6.9-19 +- Require the DocBook DTDs. + +* Tue Jan 22 2002 Tim Waugh 0.6.9-18 +- Fix bug #46913 again, since the last change broke it. + +* Sun Jan 20 2002 Tim Waugh 0.6.9-16 +- Several more fixes that will be in the next upstream version. + +* Sat Jan 19 2002 Tim Waugh 0.6.9-15 +- Support -V (bug #31518). + +* Wed Jan 09 2002 Tim Powers 0.6.9-14 +- automated rebuild + +* Wed Jan 9 2002 Tim Waugh 0.6.9-13 +- Fix generated man output for orderedlists. + +* Mon Dec 3 2001 Tim Waugh 0.6.9-12 +- Fix generated man output for funcprototypes with more than one + paramdef. + +* Wed Nov 28 2001 Tim Waugh 0.6.9-11 +- Rebuild to fix man pages (bug #56449). + +* Thu Nov 22 2001 Tim Waugh 0.6.9-10 +- Fix jw behaviour when executed with no parameter. +- Fix 'jw --help'. + +* Wed Nov 14 2001 Tim Waugh 0.6.9-9 +- Actually apply the patch that makes man backend understand −. +- Also don't redefine and for HTML output either. + +* Tue Nov 13 2001 Tim Waugh 0.6.9-8 +- Default stylesheet: and as rationale markers + probably isn't really appropriate for general use. +- Default stylesheet: larger top margin to make some RTF readers + happy (bug #56011). +- Make man backend understand −. +- Specfile cleanups (%%{_bindir}, %%{_docdir}). + +* Mon Nov 12 2001 Tim Waugh 0.6.9-7 +- The fix for bug #53546 broke '--dsl none'. Fix it. + +* Fri Nov 2 2001 Tim Waugh 0.6.9-6 +- Explicit synopsis for each docbook2[xxx] command in the jw man page. +- Clean up all temporary files in pdf backend. + +* Mon Oct 1 2001 Tim Waugh 0.6.9-5 +- Fix ADDRESS element output (bug #50605). + +* Fri Sep 28 2001 Tim Waugh 0.6.9-4 +- Adjust stylesheet so that it works with docbook-dsssl 1.72. +- Fix jw so that -o and -d can be used together (bug #53546). + +* Thu Sep 6 2001 Tim Waugh 0.6.9-3 +- Fix txt backend so that it works. +- Fix jw so that it uses the HTML stylesheet for text backends. +- Use links if lynx isn't available, in txt backend. + +* Mon Aug 13 2001 Tim Waugh 0.6.9-2 +- Larger bottom margin in gdp-both.dsl to fix RTF output (bug #49677). + +* Tue Jul 3 2001 Tim Waugh 0.6.9-1 +- 0.6.9. +- With --nochunks, send output to a file instead of stdout (bug #46913). + +* Mon Jun 4 2001 Tim Waugh 0.6.8-2 +- Make sure COPYING isn't installed as a symlink. + +* Mon May 21 2001 Tim Waugh 0.6.8-1 +- 0.6.8. + +* Mon May 21 2001 Tim Waugh 0.6-14 +- db2html: copy admon graphics to output directory (bug #40143). +- Require docbook-style-dsssl 1.64-2 for symbolic link used by db2html. +- db2html: handle arguments with spaces better. + +* Sat Mar 24 2001 Tim Waugh 0.6-13 +- Fix man pages (bug #32820). + +* Mon Mar 12 2001 Tim Waugh +- Fix argument parsing in docbook2xxx (bug #31518). +- Fix argument passing in db2html (bug #31520). +- Fix pdf generation (bug #31524). + +* Fri Feb 23 2001 Tim Waugh +- Allow the use of custom backends and frontends (bug #29067). + +* Fri Feb 16 2001 Tim Waugh +- Use gdp-both.dsl as the default stylesheet. + +* Mon Feb 12 2001 Tim Waugh +- REALLY only create output directory for db2html (duh). +- Handle filenames with dots in properly. + +* Sun Feb 11 2001 Tim Waugh +- Only create output directory for db2html (bug #27092). (docbook2html + does not create an output directory in the upstream version, but + the compatibility script has been made to do so.) + +* Mon Jan 22 2001 Tim Waugh +- Move the jadetex requirement to the -pdf subpackage. + +* Tue Jan 16 2001 Tim Waugh +- Put output files in new directory instead of current directory. + +* Mon Jan 15 2001 Tim Waugh +- Don't play so many macro games. +- Be sure to own utils directory. + +* Fri Jan 12 2001 Tim Waugh +- Split off docbook2pdf into subpackage for dependency reasons. + +* Mon Jan 08 2001 Tim Waugh +- Change group. +- Use %%{_mandir} and %%{_prefix}. +- db2* symlinks. +- Obsolete stylesheets (and -db2pdf). +- Change Copyright: to License:. +- Remove Packager: line. +- Reword description. + +* Mon Jan 08 2001 Tim Waugh +- Based on Eric Bischoff's new-trials packages. diff --git a/factory/packages/docbook-utils/docbook2man-spec.pl b/factory/packages/docbook-utils/docbook2man-spec.pl new file mode 100755 index 00000000..58939cb2 --- /dev/null +++ b/factory/packages/docbook-utils/docbook2man-spec.pl @@ -0,0 +1,1564 @@ +=head1 NAME + +docbook2man-spec.pl - convert DocBook RefEntries to Unix manpages + +=head1 SYNOPSIS + +The sgmlspl script from the SGMLSpm Perl module must be used to run +this script. Use it like this: + +nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl + +See man page or included DocBook documentation for details. + +=head1 DESCRIPTION + +This is a sgmlspl spec file that produces Unix-style +man pages from DocBook RefEntry markup. + +=head1 COPYRIGHT + +Copyright (C) 1998-2001 Steve Cheng + +Copyright (C) 1999 Thomas Lockhart + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +You should have received a copy of the GNU General Public License along with +this program; see the file COPYING. If not, please write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +=cut + +# $Id: docbook2man-spec.pl,v 1.11 2010/10/04 10:23:31 ovasik Exp $ + +use SGMLS; # Use the SGMLS package. +use SGMLS::Output; # Use stack-based output. +use SGMLS::Refs; + + +######################################################################## +# SGMLSPL script produced automatically by the script sgmlspl.pl +# +# Document Type: any, but processes only RefEntries +# Edited by: me :) +######################################################################## + + +$write_manpages = 0; +$blank_xrefs = 0; + +$default_sect = "1"; +$default_date = `date "+%d %B %Y"`; +$cite_numeral_only = 1; + +while (@ARGV) { + my $arg = shift @ARGV; + if ($arg eq "--section") { + $default_sect = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--date") { + $default_date = shift @ARGV || die "$arg requires an argument\n"; + } elsif ($arg eq "--lowercase") { + $lowercase_names = 1; + } elsif ($arg eq "--preserve-case") { + $lowercase_names = 0; + } elsif ($arg eq "--cite-numeral-only") { + $cite_numeral_only = 1; + } elsif ($arg eq "--nocite-numeral-only") { + $cite_numeral_only = 0; + } elsif ($arg eq "--help") { + print "Usage: $0", + " [ --section