blob: d276ee8e0c73021791849c89240cf54767cb9f15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# topdir: ament-package-0.14.0
# ROS 2 ament_package: Python parser for ROS package manifest files
# Build type: ament_python (setuptools with ROS installation prefix)
# Installs Python modules to /opt/ros/humble/lib/python3.11/site-packages
# and data files (package.xml, ament_index markers) to /opt/ros/humble/share/
%global debug_package %{nil}
%global __provides_exclude_from ^/opt/ros/.*
%global __requires_exclude_from ^/opt/ros/.*
%global __os_install_post %{nil}
%global ros_distro humble
%global ros_prefix /opt/ros/%{ros_distro}
%global ros_python_sitelib %{ros_prefix}/lib/python3.11/site-packages
Name: ament-package
Version: 0.14.0
Release: 1%{?dist}
Summary: The parser for the manifest files in the ament buildsystem
License: Apache-2.0
URL: https://github.com/ament/ament_package
Source0: https://github.com/ament/ament_package/archive/refs/tags/0.14.0.tar.gz#/ament-package-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
The parser for the manifest files in the ament buildsystem.
Ament defines metainformation for packages, their dependencies,
and provides tooling to build these federated packages together.
%package -n python3-%{name}
Summary: %{sum}
%description -n python3-%{name}
The parser for the manifest files in the ament buildsystem.
Ament defines metainformation for packages, their dependencies,
and provides tooling to build these federated packages together.
%prep
%autosetup -n %{name}-%{version} -p1
%build
cd %{_builddir}/%{name}-%{version}
python3 setup.py build
%install
cd %{_builddir}/%{name}-%{version}
python3 setup.py install \
--skip-build \
--root %{buildroot} \
--prefix %{ros_prefix} \
--install-lib %{ros_python_sitelib} \
--single-version-externally-managed \
--record installed_files.txt
%files -n python3-%{name}
%license LICENSE
%{ros_python_sitelib}/ament_package/
%{ros_python_sitelib}/ament_package*.egg-info/
%{ros_prefix}/share/ament_package/
%{ros_prefix}/share/ament_index/resource_index/packages/ament_package
%changelog
* Fri Oct 09 2026 Python_Bot <Python_Bot@openeuler.org> - 0.14.0-1
- Initial package
|