Skip to content

Commit

Permalink
packaging: Move spec to PyPA build
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Aug 3, 2023
1 parent 0c00f78 commit c01c7f7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packaging/python-dbusmock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ BuildArch: noarch
BuildRequires: git
BuildRequires: python3-dbus
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools-scm)
BuildRequires: python3dist(wheel)
BuildRequires: python3-setuptools
BuildRequires: python3-gobject
BuildRequires: dbus-x11
Expand All @@ -36,18 +38,21 @@ Requires: python3-dbus, python3-gobject, dbus-x11
%autosetup -n %{name}-%{version} -S git
rm -rf python-%{modname}.egg-info

%generate_buildrequires
%pyproject_buildrequires

%build
%py3_build
%pyproject_wheel

%install
%py3_install
%pyproject_install

%check
%{__python3} -m unittest -v

%files -n python3-dbusmock
/usr/lib/python*

%doc README.md COPYING
%{python3_sitelib}/*%{modname}*

%changelog

0 comments on commit c01c7f7

Please sign in to comment.