## START: Set by rpmautospec ## (rpmautospec version 0.7.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 %global tarball_version %%(echo %{version} | tr '~' '.') Name: papers Version: 47.0 Release: %autorelease Summary: View multipage documents # papers itself is: SourceLicense: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND libtiff # ... and its crate dependencies are: # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # GPL-2.0-or-later # MIT # MIT AND (MIT OR Apache-2.0) # MIT OR Apache-2.0 # Unlicense OR MIT License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND libtiff AND (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND (Unlicense OR MIT) URL: https://gitlab.gnome.org/GNOME/Incubator/papers Source: https://download.gnome.org/sources/papers/47/papers-%{tarball_version}.tar.xz # Fix the build with glib-macros 0.20.3 # https://gitlab.gnome.org/GNOME/Incubator/papers/-/merge_requests/366 Patch: 0001-shell-rs-Use-RefCell-replace-rather-than-glib-Proper.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cargo-rpm-macros BuildRequires: gcc BuildRequires: itstool BuildRequires: meson BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-pdf) BuildRequires: pkgconfig(cairo-ps) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(ddjvuapi) BuildRequires: pkgconfig(exempi-2.0) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(gtk4-unix-print) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(libgxps) BuildRequires: pkgconfig(libnautilus-extension-4) BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(libspectre) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(poppler-glib) BuildRequires: pkgconfig(sysprof-capture-4) BuildRequires: /usr/bin/appstream-util BuildRequires: /usr/bin/desktop-file-validate Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-previewer%{?_isa} = %{version}-%{release} Requires: %{name}-thumbnailer%{?_isa} = %{version}-%{release} # For hicolor icon theme directories Requires: hicolor-icon-theme # Filter out soname provides for plugins %global __provides_exclude_from ^%{_libdir}/papers/.*\\.so$ %description Papers is a document viewer for multiple document formats for GNOME. %package libs Summary: Libraries for the Papers document viewer %description libs This package contains shared libraries needed for Papers. %package devel Summary: Support for developing backends for the Papers document viewer Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel This package contains libraries and header files needed for Papers backend development. %package nautilus Summary: Papers extension for nautilus Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: nautilus%{?_isa} Supplements: (nautilus and %{name}) %description nautilus This package contains the Papers extension for the Nautilus file manager. It adds an additional tab called "Document" to the file properties dialog. %package previewer Summary: Papers previewer Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description previewer This package brings the Papers previewer independently from Papers. It provides the printing preview for the GTK printing dialog. %package thumbnailer Summary: Papers thumbnailer Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description thumbnailer This package brings the Papers thumbnailer independently from Papers. %prep %autosetup -p1 -n papers-%{tarball_version} rm shell-rs/Cargo.lock %cargo_prep %generate_buildrequires cd shell-rs %cargo_generate_buildrequires -a -t cd ~- %build %meson \ -Dintrospection=disabled \ -Dtests=false \ %{nil} %meson_build cd shell-rs %cargo_license_summary -a %{cargo_license -a} > LICENSE.dependencies cd ~- %install %meson_install # Remove unused symbolic link rm $RPM_BUILD_ROOT%{_libdir}/libppsshell-4.0.so %find_lang papers --with-gnome %check %meson_test appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.metainfo.xml desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop %files -f papers.lang %doc README.md %license COPYING %license shell-rs/LICENSE.dependencies %{_bindir}/papers %{_libdir}/libppsshell-4.0.so.4{,.*} %{_datadir}/applications/org.gnome.Papers.desktop %{_datadir}/glib-2.0/schemas/org.gnome.Papers.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/org.gnome.Papers.svg %{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Papers-symbolic.svg %{_mandir}/man1/papers.1* %{_metainfodir}/org.gnome.Papers.metainfo.xml %files libs %license COPYING %{_libdir}/libppsdocument-4.0.so.5{,.*} %{_libdir}/libppsview-4.0.so.4{,.*} %{_libdir}/papers/ %{_metainfodir}/papers-comicsdocument.metainfo.xml %{_metainfodir}/papers-djvudocument.metainfo.xml %{_metainfodir}/papers-pdfdocument.metainfo.xml %{_metainfodir}/papers-tiffdocument.metainfo.xml %{_metainfodir}/papers-xpsdocument.metainfo.xml %files devel %{_includedir}/papers/ %{_libdir}/libppsdocument-4.0.so %{_libdir}/libppsview-4.0.so %{_libdir}/pkgconfig/papers-document-4.0.pc %{_libdir}/pkgconfig/papers-view-4.0.pc %files nautilus %{_libdir}/nautilus/extensions-4/libpapers-document-properties.so %files previewer %{_bindir}/papers-previewer %{_datadir}/applications/org.gnome.Papers-previewer.desktop %{_mandir}/man1/papers-previewer.1* %files thumbnailer %{_bindir}/papers-thumbnailer %{_datadir}/thumbnailers/papers.thumbnailer %{_mandir}/man1/papers-thumbnailer.1* %changelog ## START: Generated by rpmautospec * Tue Nov 05 2024 Kalev Lember - 47.0-3 - Simplify license tag * Tue Nov 05 2024 Kalev Lember - 47.0-2 - Remove the %%check bcond and use %%cargo_generate_buildrequires -t explicitly * Tue Nov 05 2024 Kalev Lember - 47.0-1 - Update to 47.0 - Fix the build with glib-macros 0.20.3 * Thu Sep 12 2024 Kalev Lember - 47~beta-5 - Use globs to ensure all desktop and metainfo files get validated * Thu Sep 12 2024 Kalev Lember - 47~beta-4 - Tighten soname globs * Thu Sep 12 2024 Kalev Lember - 47~beta-3 - Remove duplicate '(MIT OR Apache-2.0)' from license tag * Fri Aug 30 2024 Kalev Lember - 47~beta-2 - Package review fixes (rhbz#2305882) - Explicitly BR gcc - Filter out soname provides for plugins - Drop all references to gi-docgen as we don't currently install documentation * Mon Aug 19 2024 Kalev Lember - 47~beta-1 - Initial Fedora packaging (rhbz#2305882) ## END: Generated by rpmautospec