chore: remove ruff maturin libindicator (#3100)

relates to #3050
This commit is contained in:
sadlerm4
2025-01-23 11:36:56 +08:00
committed by GitHub
parent 63b54b3572
commit 5f931e4d9c
8 changed files with 0 additions and 642 deletions
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "python3-ruff.spec"
}
}
-45
View File
@@ -1,45 +0,0 @@
%define debug_package %{nil}
Name: python3-ruff
Version: 0.9.2
Release: 1%?dist
Summary: An extremely fast Python linter, written in Rust
License: MIT
URL: https://beta.ruff.rs/
Source0: https://github.com/astral-sh/ruff/archive/refs/tags/%{version}.tar.gz
BuildRequires: python3-installer python3-pip maturin cargo
Provides: python3.11dist(ruff) = %{version}
%description
Ruff aims to be orders of magnitude faster than alternative tools while
integrating more functionality behind a single, common interface.
%prep
%autosetup -n ruff-%{version}
%build
maturin build --release --strip --all-features # --locked
%install
pip3 install --root=%{buildroot} target/wheels/*.whl
rm -rf %{python3_sitelib}/ruff/__pycache__
%files
%doc README.md
%license LICENSE
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/METADATA
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/RECORD
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/WHEEL
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/INSTALLER
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/REQUESTED
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/direct_url.json
/usr/lib64/python*/site-packages/ruff-%{version}.dist-info/licenses/LICENSE
/usr/lib64/python*/site-packages/ruff/__init__.py
/usr/lib64/python*/site-packages/ruff/__main__.py
/usr/lib64/python*/site-packages/ruff/__pycache__/*.cpython-*.pyc
/usr/bin/ruff
%changelog
* Mon Jan 23 2023 windowsboy111 <wboy111@outlook.com> - 0.0.229
- Initial package.
-1
View File
@@ -1 +0,0 @@
rpm.version(pypi("ruff"));
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "rust-terra-maturin.spec"
}
}
@@ -1,401 +0,0 @@
# Generated by rust2rpm 26
#bcond_without check
%global crate maturin
# Don't mangle shebangs
%global __brp_mangle_shebangs %{nil}
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
Name: rust-terra-maturin
Version: 1.8.1
Release: 1%?dist
Summary: Build and publish Rust crates as Python packages
License: MIT OR Apache-2.0
URL: https://crates.io/crates/maturin
Source: %{crates_source}
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24 mold
%global _description %{expand:
Build and publish crates with pyo3, cffi and uniffi bindings as well as
rust binaries as python packages.}
%description %{_description}
%package -n terra-%{crate}
Summary: %{summary}
License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND 0BSD AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSD-2-Clause) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception) 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 BSL-1.0 AND (CC0-1.0 OR MIT-0 OR Apache-2.0) AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR LGPL-3.0-or-later) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
# LICENSE.dependencies contains a full license breakdown
%description -n terra-%{crate} %{_description}
%files -n terra-%{crate}
%license license-apache
%license license-mit
%license LICENSE.dependencies
%doc Changelog.md
%doc README.md
%{_bindir}/maturin
%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
%license %{crate_instdir}/license-apache
%license %{crate_instdir}/license-mit
%doc %{crate_instdir}/Changelog.md
%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}+bytesize-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bytesize-devel %{_description}
This package contains library source intended for building other packages which
use the "bytesize" feature of the "%{crate}" crate.
%files -n %{name}+bytesize-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cargo-xwin-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cargo-xwin-devel %{_description}
This package contains library source intended for building other packages which
use the "cargo-xwin" feature of the "%{crate}" crate.
%files -n %{name}+cargo-xwin-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cargo-zigbuild-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cargo-zigbuild-devel %{_description}
This package contains library source intended for building other packages which
use the "cargo-zigbuild" feature of the "%{crate}" crate.
%files -n %{name}+cargo-zigbuild-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cli-completion-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cli-completion-devel %{_description}
This package contains library source intended for building other packages which
use the "cli-completion" feature of the "%{crate}" crate.
%files -n %{name}+cli-completion-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+configparser-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+configparser-devel %{_description}
This package contains library source intended for building other packages which
use the "configparser" feature of the "%{crate}" crate.
%files -n %{name}+configparser-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+console-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+console-devel %{_description}
This package contains library source intended for building other packages which
use the "console" feature of the "%{crate}" crate.
%files -n %{name}+console-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+cross-compile-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+cross-compile-devel %{_description}
This package contains library source intended for building other packages which
use the "cross-compile" feature of the "%{crate}" crate.
%files -n %{name}+cross-compile-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dialoguer-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dialoguer-devel %{_description}
This package contains library source intended for building other packages which
use the "dialoguer" feature of the "%{crate}" crate.
%files -n %{name}+dialoguer-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+faster-tests-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+faster-tests-devel %{_description}
This package contains library source intended for building other packages which
use the "faster-tests" feature of the "%{crate}" crate.
%files -n %{name}+faster-tests-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+full-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+full-devel %{_description}
This package contains library source intended for building other packages which
use the "full" feature of the "%{crate}" crate.
%files -n %{name}+full-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+human-panic-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+human-panic-devel %{_description}
This package contains library source intended for building other packages which
use the "human-panic" feature of the "%{crate}" crate.
%files -n %{name}+human-panic-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+keyring-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+keyring-devel %{_description}
This package contains library source intended for building other packages which
use the "keyring" feature of the "%{crate}" crate.
%files -n %{name}+keyring-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+log-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+log-devel %{_description}
This package contains library source intended for building other packages which
use the "log" feature of the "%{crate}" crate.
%files -n %{name}+log-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+minijinja-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+minijinja-devel %{_description}
This package contains library source intended for building other packages which
use the "minijinja" feature of the "%{crate}" crate.
%files -n %{name}+minijinja-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+multipart-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+multipart-devel %{_description}
This package contains library source intended for building other packages which
use the "multipart" feature of the "%{crate}" crate.
%files -n %{name}+multipart-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+native-tls-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+native-tls-devel %{_description}
This package contains library source intended for building other packages which
use the "native-tls" feature of the "%{crate}" crate.
%files -n %{name}+native-tls-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+password-storage-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+password-storage-devel %{_description}
This package contains library source intended for building other packages which
use the "password-storage" feature of the "%{crate}" crate.
%files -n %{name}+password-storage-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rustls-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rustls-devel %{_description}
This package contains library source intended for building other packages which
use the "rustls" feature of the "%{crate}" crate.
%files -n %{name}+rustls-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+scaffolding-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+scaffolding-devel %{_description}
This package contains library source intended for building other packages which
use the "scaffolding" feature of the "%{crate}" crate.
%files -n %{name}+scaffolding-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+schemars-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+schemars-devel %{_description}
This package contains library source intended for building other packages which
use the "schemars" feature of the "%{crate}" crate.
%files -n %{name}+schemars-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unicode-xid-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unicode-xid-devel %{_description}
This package contains library source intended for building other packages which
use the "unicode-xid" feature of the "%{crate}" crate.
%files -n %{name}+unicode-xid-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+upload-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+upload-devel %{_description}
This package contains library source intended for building other packages which
use the "upload" feature of the "%{crate}" crate.
%files -n %{name}+upload-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ureq-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ureq-devel %{_description}
This package contains library source intended for building other packages which
use the "ureq" feature of the "%{crate}" crate.
%files -n %{name}+ureq-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+wild-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+wild-devel %{_description}
This package contains library source intended for building other packages which
use the "wild" feature of the "%{crate}" crate.
%files -n %{name}+wild-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+xwin-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+xwin-devel %{_description}
This package contains library source intended for building other packages which
use the "xwin" feature of the "%{crate}" crate.
%files -n %{name}+xwin-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+zig-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+zig-devel %{_description}
This package contains library source intended for building other packages which
use the "zig" feature of the "%{crate}" crate.
%files -n %{name}+zig-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online
%build
#cargo_build
%{cargo_license_summary_online}
%{cargo_license_online} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog
-1
View File
@@ -1 +0,0 @@
rpm.version(gh("PyO3/maturin"));
-5
View File
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "terra-libindicator.spec"
}
}
@@ -1,179 +0,0 @@
Name: terra-libindicator
Version: 16.10.0
Release: %autorelease
Summary: Shared functions for Ayatana indicators
License: GPL-3.0
URL: https://launchpad.net/libindicator
Source0: http://archive.ubuntu.com/ubuntu/pool/universe/libi/libindicator/libindicator_16.10.0+18.04.20180321.1.orig.tar.gz
Source1: https://raw.githubusercontent.com/ubports/libindicator/097906132ffb479205be15a92cae97e5daf4e154/data/indicators.target
# From GLib 2.62
Patch1: http://archive.ubuntu.com/ubuntu/pool/universe/libi/libindicator/libindicator_16.10.0+18.04.20180321.1-0ubuntu5.diff.gz
BuildRequires: chrpath
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(systemd)
BuildRequires: dbus-glib-devel
BuildRequires: gtk2-devel
BuildRequires: gtk3-devel
BuildRequires: systemd-rpm-macros
BuildRequires: gnome-common
BuildRequires: make
%description
A set of symbols and convenience functions that all Ayatana indicators are
likely to use.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package gtk3
Summary: GTK+3 build of %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description gtk3
A set of symbols and convenience functions that all Ayatana indicators
are likely to use. This is the GTK+ 3 build of %{name}, for use
by GTK+ 3 apps.
%package gtk3-devel
Summary: Development files for %{name}-gtk3
Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description gtk3-devel
The %{name}-gtk3-devel package contains libraries and header files for
developing applications that use %{name}-gtk3.
%prep
%setup -q -c
%patch 1 -p1 -b .orig
# Remove all IDO references
# This is only needed for tools/indicator-loader.c
sed -i '6d' ./Makefile.am
sed -i 's!libindicator \\!libindicator!' Makefile.am
sed -i '59d' configure.ac
sed -ie 58's/$/) &/' configure.ac
sed -i.addvar configure.ac \
-e '\@LIBINDICATOR_LIBS@s|\$LIBM| \$LIBM|'
sed -i 's!tests/Makefile!!' configure.ac
NOCONFIGURE=1 \
sh autogen.sh
%build
%global _configure ../configure --libdir=%{_libdir}
rm -rf build-gtk2 build-gtk3
mkdir build-gtk2 build-gtk3
pushd build-gtk2
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
%configure --with-gtk=2 --disable-tests --disable-static --disable-silent-rules
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
popd
pushd build-gtk3
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
%configure --with-gtk=3 --disable-tests --disable-static --disable-silent-rules
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
popd
%install
pushd build-gtk2
make install DESTDIR=%{buildroot}
popd
(
PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
export PKG_CONFIG_PATH
for var in \
iconsdir \
indicatordir \
%{nil}
do
vardir=$(pkg-config --variable=${var} indicator-0.4)
mkdir -p %{buildroot}${vardir}
done
)
pushd build-gtk3
make install DESTDIR=%{buildroot}
popd
(
PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
export PKG_CONFIG_PATH
for var in \
iconsdir \
indicatordir \
%{nil}
do
vardir=$(pkg-config --variable=${var} indicator3-0.4)
mkdir -p %{buildroot}${vardir}
done
)
# Ubuntu doesn't package the dummy indicator
%dnl rm -f %{buildroot}%{_libdir}/libdummy-indicator*.so
# Remove libtool files
find %{buildroot} -type f -name '*.la' -delete
# Lomiri compatability
install -Dm644 %{SOURCE1} %{buildroot}%{_userunitdir}/
%ldconfig_scriptlets
%ldconfig_scriptlets gtk3
%files
%license COPYING
%doc AUTHORS COPYING NEWS ChangeLog README
%{_libdir}/libindicator.so.*
%{_prefix}/lib/indicators/
%dir %{_datadir}/libindicator/
%dir %{_datadir}/libindicator/icons/
%{_userunitdir}/indicators-pre.target
%{_userunitdir}/indicators.target
%files devel
%dir %{_includedir}/libindicator-0.4/
%dir %{_includedir}/libindicator-0.4/libindicator/
%{_includedir}/libindicator-0.4/libindicator/*.h
%{_libdir}/libindicator.so
%{_libdir}/pkgconfig/indicator-0.4.pc
%files gtk3
%doc AUTHORS COPYING NEWS ChangeLog README
%license COPYING
%{_libdir}/libindicator3.so.*
%{_prefix}/lib/indicators3/
%dir %{_datadir}/libindicator/
%dir %{_datadir}/libindicator/icons/
%files gtk3-devel
%doc README
%license COPYING
%dir %{_includedir}/libindicator3-0.4/
%dir %{_includedir}/libindicator3-0.4/libindicator/
%{_includedir}/libindicator3-0.4/libindicator/*.h
%{_libdir}/libindicator3.so
%{_libdir}/pkgconfig/indicator3-0.4.pc
%changelog
%autochangelog