From 2cef90ab8b5ec49188e241f904eb150bb1ae1dfa Mon Sep 17 00:00:00 2001 From: Carl George Date: Jun 15 2023 03:16:51 +0000 Subject: Remove unnecessary macros --- diff --git a/python-service-identity.spec b/python-service-identity.spec index d91b5ee..493b20c 100644 --- a/python-service-identity.spec +++ b/python-service-identity.spec @@ -1,6 +1,3 @@ -%global srcname service-identity -%global libname service_identity - %global common_description %{expand: Use this package if you use pyOpenSSL and don’t want to be MITMed, or if you want to verify that a PyCA cryptography certificate is valid for a certain @@ -10,14 +7,14 @@ In the simplest case, this means host name verification. However, service-identity implements RFC 6125 fully and plans to add other relevant RFCs too.} -Name: python-%{srcname} +Name: python-service-identity Version: 21.1.0 Release: %autorelease Summary: Service identity verification for pyOpenSSL License: MIT URL: https://github.com/pyca/service-identity -Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz +Source0: %{url}/archive/%{version}/service-identity-%{version}.tar.gz # Revert theme change as "furo" theme is not packaged Patch0: 0001-Revert-theme-change.patch @@ -28,10 +25,10 @@ BuildRequires: python3dist(sphinx) %description %{common_description} -%package -n python3-%{srcname} +%package -n python3-service-identity Summary: %{summary} -%description -n python3-%{srcname} %{common_description} +%description -n python3-service-identity %{common_description} %package doc Summary: Documentation for %{name} @@ -41,10 +38,10 @@ Summary: Documentation for %{name} This is the documentation package for %{name}. -%pyproject_extras_subpkg -n python3-%{srcname} idna +%pyproject_extras_subpkg -n python3-service-identity idna %prep -%autosetup -p1 -n %{srcname}-%{version} +%autosetup -p1 -n service-identity-%{version} %generate_buildrequires %pyproject_buildrequires -x idna @@ -59,15 +56,15 @@ rm -rf html/.{doctrees,buildinfo} %install %pyproject_install -%pyproject_save_files %{libname} +%pyproject_save_files service_identity %check %pytest -v -%files -n python3-%{srcname} -f %{pyproject_files} +%files -n python3-service-identity -f %{pyproject_files} %doc README.rst -%files -n python-%{srcname}-doc +%files doc %doc html %license LICENSE docs/license.rst