Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:PowerPC
rpm
python-rpm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-rpm.spec of Package rpm
# # spec file for package python-rpm # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2017 Neal Gompa <ngompa13@gmail.com>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # Enable Python build sourced from rpm spec %global with_python 1 Name: python-rpm Version: 4.19.1.1 Release: 0 Summary: Python Bindings for Manipulating RPM Packages License: GPL-2.0-or-later Group: Development/Libraries/Python URL: https://rpm.org/ #Git-Clone: https://github.com/rpm-software-management/rpm BuildRequires: %{python_module devel} BuildRequires: cmake BuildRequires: fdupes BuildRequires: file-devel BuildRequires: libacl-devel BuildRequires: libbz2-devel BuildRequires: libcap-devel BuildRequires: libdw-devel BuildRequires: libelf-devel BuildRequires: libgcrypt-devel BuildRequires: libselinux-devel BuildRequires: libsemanage-devel BuildRequires: libtool BuildRequires: lua-devel BuildRequires: ncurses-devel BuildRequires: popt-devel BuildRequires: python-rpm-macros BuildRequires: xz-devel BuildRequires: zlib-devel BuildRequires: pkgconfig(libzstd) Requires: rpm = %{version} %{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%{_sourcedir}/rpm.spec)} Source99: rpm.spec %if "%{python_flavor}" == "python2" Obsoletes: rpm-python < %{version}-%{release} Provides: rpm-python = %{version}-%{release} %endif %python_subpackages %description This package contains a module that permits applications written in the Python programming language to use the interface supplied by RPM Package Manager libraries. This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases. %prep %{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%{_sourcedir}/rpm.spec | sed -e '1d' -e '$d')} %install cd _build %{python_expand # cmake .. -U\*Python3\* -DWITH_PYTHON_VERSION=%{$python_version} make DESTDIR=%{buildroot} -C python clean make DESTDIR=%{buildroot} -C python install } %python_compileall rm -rf %{buildroot}/%{_defaultdocdir}/%{NAME} %files %{python_files} %{python_sitearch}/rpm %{python_sitearch}/rpm-%{version}*-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor