From d1507148acbee8b89727f28973ce9bfb2eaff395 Mon Sep 17 00:00:00 2001 From: returntrip Date: Jun 30 2020 14:04:45 +0000 Subject: Initial import (#1849325). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c02a6f1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/servo-fontconfig-sys-5.0.2.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..28c4dc0 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +buildrequires = + pkgconfig(fontconfig) >= 2.11.1 +lib.requires = + pkgconfig(fontconfig) >= 2.11.1 diff --git a/rust-servo-fontconfig-sys.spec b/rust-servo-fontconfig-sys.spec new file mode 100644 index 0000000..3a922b7 --- /dev/null +++ b/rust-servo-fontconfig-sys.spec @@ -0,0 +1,84 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate servo-fontconfig-sys + +Name: rust-%{crate} +Version: 5.0.2 +Release: 1%{?dist} +Summary: Font configuration and customization library + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/servo-fontconfig-sys +Source: %{crates_source} +# Initial patched metadata to bump fontconfig to version 0.13.0 +# https://github.com/servo/libfontconfig/pull/59 +Patch0: servo-fontconfig-sys-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Font configuration and customization library.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(fontconfig) >= 2.11.1 + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license COPYING +%doc AUTHORS README +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +# remove the bundled copy to make sure we're linking against the system lib +rm -vr fontconfig +rm -vr NEWS +rm -vr INSTALL +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +echo 'pkgconfig(fontconfig) >= 2.11.1' + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Jun 21 22:38:55 CEST 2020 returntrip - 5.0.2-1 +- Initial package diff --git a/servo-fontconfig-sys-fix-metadata.diff b/servo-fontconfig-sys-fix-metadata.diff new file mode 100644 index 0000000..4c32f92 --- /dev/null +++ b/servo-fontconfig-sys-fix-metadata.diff @@ -0,0 +1,10 @@ +--- servo-fontconfig-sys-5.0.2/Cargo.toml 2020-05-13T14:54:22+00:00 ++++ servo-fontconfig-sys-5.0.2/Cargo.toml 2020-06-21T21:25:07.389751+00:00 +@@ -28,6 +28,6 @@ + version = "2.1.0" + + [dependencies.freetype-sys] +-version = "0.12.0" ++version = "0.13.0" + [build-dependencies.pkg-config] + version = "0.3" diff --git a/sources b/sources new file mode 100644 index 0000000..81661b9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (servo-fontconfig-sys-5.0.2.crate) = 918826b6f31ea75272d080879946ef1e1fce9ee5753c59fa193017a6184e8396fe497b08dc8633afded7a95a7c50ac1e5c734a08e99613d088793d53ae5cb202