From 1fe6b7ce9a3abf1ba614fd3c6bad3b97689e18e1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 31 Dec 2020 13:35:45 -0800 Subject: [PATCH] Remove shipped dlls. --- .gitignore | 1 + PyQt-builder.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 PyQt-builder.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89409b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/PyQt-builder-1.6.0.tar.gz diff --git a/PyQt-builder.spec b/PyQt-builder.spec new file mode 100644 index 0000000..aee8375 --- /dev/null +++ b/PyQt-builder.spec @@ -0,0 +1,52 @@ +%global pypi_name PyQt-builder +%global srcname PyQt-builder + +Name: %{srcname} +Version: 1.6.0 +Release: 2%{?dist} +Summary: The PEP 517 compliant PyQt build system + +License: BSD +URL: https://www.riverbankcomputing.com/software/pyqt/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: sip5 + +Requires: sip5 + +%description +PyQt-builder is the PEP 517 compliant build system for PyQt and projects that +extend PyQt. It extends the sip build system and uses Qt's qmake to perform the +actual compilation and installation of extension modules.Projects that use +PyQt- builder provide an appropriate pyproject.toml file and an optional +project.py. + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install +# These dll files are from openssl and microsoft visiual studio +# While we can redistribute them, we don't have source and it's +# unlikely anyone will want to bundle a windows executable from linux. +rm -rf %{buildroot}/%{python3_sitelib}/pyqtbuild/bundle/dlls + +%files +%{_bindir}/pyqt-bundle +%{python3_sitelib}/pyqtbuild +%{python3_sitelib}/PyQt_builder-%{version}-py%{python3_version}.egg-info + +%changelog +* Tue Dec 29 2020 Kevin Fenzi - 1.6.0-2 +- Remove shipped dlls. + +* Tue Dec 15 2020 Kevin Fenzi - 1.6.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..0e4140e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (PyQt-builder-1.6.0.tar.gz) = de216c33ced5aaf2d03fc796ce880d8031319d1d2169b1aa1dcd9b8fe1043da1010ab7a1e67cdd3efdd3d017625b70f4458fd6228290e0f42ec83bd346b808bf