Expand %{pypi_name} and %{srcname} for better readability of the specfile
This commit is contained in:
parent
c976a8e063
commit
ee4119faab
@ -1,13 +1,10 @@
|
|||||||
%global pypi_name alabaster
|
Name: python-sphinx-theme-alabaster
|
||||||
%global srcname sphinx-theme-%{pypi_name}
|
|
||||||
|
|
||||||
Name: python-%{srcname}
|
|
||||||
Version: 0.7.13
|
Version: 0.7.13
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Configurable sidebar-enabled Sphinx theme
|
Summary: Configurable sidebar-enabled Sphinx theme
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://pypi.python.org/pypi/%{pypi_name}
|
URL: https://pypi.python.org/pypi/alabaster
|
||||||
Source: %{pypi_source alabaster}
|
Source: %{pypi_source alabaster}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -18,14 +15,14 @@ used in his Requests project), which was itself originally based on @mitsuhiko's
|
|||||||
theme used for Flask & related projects.
|
theme used for Flask & related projects.
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{srcname}
|
%package -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||||
Summary: Configurable sidebar-enabled Sphinx theme
|
Summary: Configurable sidebar-enabled Sphinx theme
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-sphinx-theme-alabaster}
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{srcname}
|
%description -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||||
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
|
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
|
||||||
used in his Requests project), which was itself originally based on @mitsuhiko's
|
used in his Requests project), which was itself originally based on @mitsuhiko's
|
||||||
theme used for Flask & related projects.
|
theme used for Flask & related projects.
|
||||||
@ -33,10 +30,10 @@ theme used for Flask & related projects.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
ls -alh
|
ls -alh
|
||||||
%setup -qn %{pypi_name}-%{version}
|
%setup -qn alabaster-%{version}
|
||||||
|
|
||||||
# Remove bundled eggs
|
# Remove bundled eggs
|
||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf alabaster.egg-info
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -47,11 +44,11 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{srcname}
|
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
%{python3_sitelib}/alabaster-%{version}-py%{python3_version}.egg-info/
|
||||||
%{python3_sitelib}/%{pypi_name}/
|
%{python3_sitelib}/alabaster/
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user