Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix packaging
  • Loading branch information
filippor committed Aug 29, 2025
commit c8c380ebba3335c4dcbb991144bdbe804ac2181d
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ edition = "2024"
libdrm_amdgpu_sys = "0.8.8"
toml = "0.9.5"
watch = "0.2.3"
ta = "0.5.0"
79 changes: 79 additions & 0 deletions deps/rust-ta.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Generated by rust2rpm 27
%bcond check 1
%global debug_package %{nil}

%global crate ta

Name: rust-ta
Version: 0.5.0
Release: %autorelease
Summary: Technical analysis library

License: MIT
URL: https://crates.io/crates/ta
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
Patch: ta-fix-metadata.diff

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Technical analysis library. Implements number of indicators: EMA, SMA,
RSI, MACD, Stochastic, etc.}

%description %{_description}

%package devel
Summary: %{summary}
BuildArch: noarch

%description devel %{_description}

This package contains library source intended for building other packages which
use the "%{crate}" crate.

%files devel
# FIXME: no license files detected
%doc %{crate_instdir}/README.md
%{crate_instdir}/

%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 the "default" feature of the "%{crate}" crate.

%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+serde-devel %{_description}

This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.

%files -n %{name}+serde-devel
%ghost %{crate_instdir}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install


%changelog
%autochangelog
23 changes: 23 additions & 0 deletions deps/ta-fix-metadata.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- ta-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00
+++ ta-0.5.0/Cargo.toml 2025-08-29T12:58:51.807835+00:00
@@ -38,20 +38,3 @@
version = "1.0"
features = ["derive"]
optional = true
-[dev-dependencies.assert_approx_eq]
-version = "1.0.0"
-
-[dev-dependencies.bencher]
-version = "0.1.5"
-
-[dev-dependencies.bincode]
-version = "1.3.1"
-
-[dev-dependencies.csv]
-version = "1.1.0"
-
-[dev-dependencies.rand]
-version = "0.6.5"
-[badges.travis-ci]
-branch = "master"
-repository = "greyblake/ta-rs"