Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:rust
resvg
resvg.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File resvg.spec of Package resvg
# # spec file for package resvg # # 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 check Name: resvg Version: @SERVICE@ Release: 0 Summary: SVG rendering library License: MPL-2.0 Group: Productivity/Graphics/Convertors URL: https://github.com/RazrFalcon/resvg Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.zst BuildRequires: cargo-packaging ExclusiveArch: %{rust_arches} %description resvg is an SVG rendering library. It can be used as a Rust library, as a C library, and as a CLI application to render static SVG files. The core idea is to make a fast, small, portable SVG library with the goal to support the whole SVG spec. Features: * Designed for edge-cases * Safety * Zero bloat * Portable * SVG preprocessing * Performance * Reproducibility %package -n usvg Summary: SVG simplification tool Group: Productivity/Graphics/Convertors %description -n usvg usvg is a command-line utility to simplify SVG files based on a static SVG Full 1.1 subset. It converts an input SVG to an extremely simple representation, which is still a valid SVG: * No basic shapes (rect, circle, etc), only paths * Only simple paths * All supported attributes are resolved * Invisible elements are removed * Comments will be removed * DTD will be resolved * CSS will be resolved and so on. %package -n lib%{name} Summary: SVG rendering library (C++/Qt API) Group: Development/Libraries/C and C++ %description -n lib%{name} An SVG rendering library (C++/Qt API). This package contains shared library. %package -n %{name}-c-api-devel Summary: SVG rendering library (C++/Qt API) Group: Development/Libraries/C and C++ Requires: lib%{name} = %{version}-%{release} %description -n %{name}-c-api-devel An SVG rendering library (C++/Qt API). This package contains development files. %prep %autosetup -p1 -a1 %build %{cargo_build} \ --workspace %install #%%{cargo_install} install -Dm 0755 ./target/release/%{name} %{buildroot}%{_bindir}/%{name} install -Dm 0755 ./target/release/usvg %{buildroot}%{_bindir}/usvg install -Dm 0755 ./target/release/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so install -Dm 0644 ./target/release/lib%{name}.a %{buildroot}%{_libdir}/lib%{name}.a install -Dm 0644 ./crates/c-api/*.h -t %{buildroot}%{_includedir}/ %if %{with check} %check %{cargo_test} %endif %ldconfig_scriptlets -n lib%{name} %files %doc CHANGELOG.md NOTICE.txt README.md %{_bindir}/%{name} %license LICENSE.txt %files -n usvg %{_bindir}/usvg %files -n lib%{name} %{_libdir}/lib%{name}.so %files -n %{name}-c-api-devel %{_includedir}/%{name}.h %{_includedir}/ResvgQt.h %{_libdir}/lib%{name}.a %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor