forked from pool/oculante
a628d8ed03
- Update to version 0.8.23: + Bug Fixes - Display image path for loading errors - Prevent panic for scrubber index being out of range and allow opening images without path prefic correctly - update index when image in same folder is loaded - Switching theme removes accent color - Preserve scubber index - Prevent image removal going out of bounds - Clearing and deleting an image removes it from the virtual scrubber and advances to the next according to the scrubber direction - Fix issue where SVG files were detected as XML - Compare menu works without image loaded - ClearImage can be assigned to a shortcut + Features - Allow configuring mipmaps and linear mag/min filters - Allow passing multiple images on the command line - Enhance scrubber experience to provide a virtual file list. - Detect file types by content instead of extension. Warn if mismatch happens. - More love for compare mode ui, option to remove current image - Allow configuring the minimum window size + Chore - deps: bump zerovec from 0.10.2 to 0.10.4 - update resvg - Update Notan and Egui - update deps - add conditional build for leap with force gcc version - add desktop-file-utils BuildRequires: for validate desktop file OBS-URL: https://build.opensuse.org/request/show/1190334 OBS-URL: https://build.opensuse.org/package/show/graphics/oculante?expand=0&rev=29
78 lines
2.3 KiB
RPMSpec
78 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package oculante
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without test
|
|
%define force_gcc_version 13
|
|
Name: oculante
|
|
Version: 0.8.23
|
|
Release: 0
|
|
Summary: A minimalistic crossplatform image viewer written in rust
|
|
License: MIT
|
|
URL: https://github.com/woelper/oculante
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.zst
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: cmake
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gcc%{?force_gcc_version}
|
|
BuildRequires: gcc%{?force_gcc_version}-c++
|
|
BuildRequires: gtk3-devel
|
|
BuildRequires: libheif-devel
|
|
BuildRequires: nasm
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
%description
|
|
Oculante's vision is to be a fast, unobtrusive, portable image viewer with
|
|
wide image format support, offering image analysis and basic editing
|
|
tools.
|
|
|
|
%prep
|
|
%autosetup -a1 -p1
|
|
|
|
%build
|
|
export CC="gcc-%{?force_gcc_version}"
|
|
export CXX="g++-%{?force_gcc_version}"
|
|
%{cargo_build} \
|
|
%if 0%{?suse_version} > 1600
|
|
--features 'heif' \
|
|
%endif
|
|
%{nil}
|
|
|
|
%install
|
|
install -Dpm755 target/release/%{name} -t %{buildroot}%{_bindir}
|
|
install -Dpm644 res/%{name}.png -t %{buildroot}%{_datadir}/pixmaps/
|
|
install -Dpm644 res/%{name}.desktop -t %{buildroot}%{_datadir}/applications
|
|
|
|
%check
|
|
%if %{with test}
|
|
export CC="gcc-%{?force_gcc_version}"
|
|
export CXX="g++-%{?force_gcc_version}"
|
|
%{cargo_test} -- --skip=tests::net --skip=bench
|
|
%endif
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
|
|
|
%files
|
|
%license LICENSE*
|
|
%doc README* CHANGELOG.md
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%changelog
|