summaryrefslogtreecommitdiff
path: root/ament-package.spec
diff options
context:
space:
mode:
Diffstat (limited to 'ament-package.spec')
-rw-r--r--ament-package.spec75
1 files changed, 75 insertions, 0 deletions
diff --git a/ament-package.spec b/ament-package.spec
new file mode 100644
index 0000000..d276ee8
--- /dev/null
+++ b/ament-package.spec
@@ -0,0 +1,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