Blame python-migen.spec

Gabriel Somlo f620067
%global commit0 a5cc037a510b68374d2b7cd8cd13e6f17534cd2a
Gabriel L. Somlo 2899fb8
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Gabriel L. Somlo 2899fb8
Gabriel Somlo f620067
%global snapdate 20201124
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%global srcname migen
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
Name:           python-%{srcname}
Gabriel L. Somlo 8cca438
Version:        0.9.2
9eec6e3
Release:        7.%{snapdate}git%{shortcommit0}%{?dist}
Gabriel L. Somlo 2899fb8
Summary:        A Python toolbox for building complex digital hardware
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
License:        BSD
Gabriel L. Somlo 2899fb8
URL:            https://m-labs.hk/%{srcname}
Gabriel L. Somlo 2899fb8
Source0:        https://github.com/m-labs/%{srcname}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
BuildArch:      noarch
Gabriel L. Somlo 2899fb8
BuildRequires:  python3-devel
Gabriel Somlo 1ff7eca
BuildRequires:  python3-setuptools
Gabriel L. Somlo 2899fb8
BuildRequires:  %{py3_dist sphinx}
Gabriel L. Somlo 580d657
BuildRequires:  %{py3_dist sphinx_rtd_theme}
Gabriel L. Somlo 2899fb8
BuildRequires:  %{py3_dist colorama}
Gabriel Somlo f620067
BuildRequires:  python3-sphinx-latex
Gabriel L. Somlo 2899fb8
BuildRequires:  latexmk
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%description
Gabriel L. Somlo 2899fb8
Migen enables hardware designers to take advantage of the richness of
Gabriel L. Somlo 2899fb8
Python (object oriented programming, function parameters, generators,
Gabriel L. Somlo 2899fb8
operator overloading, libraries, etc.), to build well organized, reusable
Gabriel L. Somlo 2899fb8
and elegant digital hardware designs.
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%package -n python3-%{srcname}
Gabriel L. Somlo 2899fb8
Summary:        %{summary}
Gabriel L. Somlo 2899fb8
%{?python_provide:%python_provide python3-%{srcname}}
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%description -n python3-%{srcname}
Gabriel L. Somlo e310009
Migen enables hardware designers to take advantage of the richness of
Gabriel L. Somlo e310009
Python (object oriented programming, function parameters, generators,
Gabriel L. Somlo e310009
operator overloading, libraries, etc.), to build well organized, reusable
Gabriel L. Somlo e310009
and elegant digital hardware designs.
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%prep
Gabriel L. Somlo 2899fb8
%autosetup -n %{srcname}-%{commit0}
Gabriel L. Somlo 08b82ef
sed -r -i 's/(migen_version = ).*/\1"%{version}-%{release}"/' doc/conf.py
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%build
Gabriel L. Somlo 2899fb8
%py3_build
Gabriel L. Somlo 2899fb8
PYTHONPATH=. sphinx-build-3 -M latexpdf doc _build/pdf
Gabriel L. Somlo 2899fb8
PYTHONPATH=. sphinx-build-3 -b man doc _build/man
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%install
Gabriel L. Somlo 2899fb8
%py3_install
Gabriel L. Somlo 08b82ef
install -Dpm644 -t %{buildroot}%{_mandir}/man1 _build/man/%{srcname}.1
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%check
Gabriel L. Somlo 2899fb8
%{__python3} setup.py test
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
# Note that there is no %%files section for the unversioned python module
Gabriel L. Somlo 2899fb8
%files -n python3-%{srcname}
Gabriel L. Somlo 2899fb8
%license LICENSE
Gabriel L. Somlo 2899fb8
%doc README.md _build/pdf/latex/Migen.pdf
Gabriel L. Somlo 2899fb8
%{python3_sitelib}/%{srcname}/
Gabriel L. Somlo 2899fb8
%{python3_sitelib}/%{srcname}-*.egg-info/
Gabriel L. Somlo 2899fb8
%{_mandir}/man1/%{srcname}.1*
Gabriel L. Somlo 2899fb8
Gabriel L. Somlo 2899fb8
%changelog
9eec6e3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-7.20201124gita5cc037
9eec6e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9eec6e3
Gabriel Somlo f620067
* Tue Nov 24 2020 Gabriel Somlo <gsomlo@gmail.com> - 0.9.2-6.20201124gita5cc037
Gabriel Somlo f620067
- fix "python3-sphinx-latex" build dependency name
Gabriel Somlo f620067
- update to latest snapshot
Gabriel Somlo f620067
0ef2e58
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-5.20200625gitb1b2b29
0ef2e58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0ef2e58
Gabriel Somlo 1ff7eca
* Thu Jun 25 2020 Gabriel Somlo <gsomlo@gmail.com> - 0.9.2-4.20200625gitb1b2b29
Gabriel Somlo 1ff7eca
- added setuptools build dependency
Gabriel Somlo 1ff7eca
- updated to latest snapshot
Gabriel Somlo 1ff7eca
d571528
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-3.20191204git4c00f5b
d571528
- Rebuilt for Python 3.9
d571528
57b5223
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2.20191204git4c00f5b
57b5223
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
57b5223
Gabriel L. Somlo 8cca438
* Wed Dec 04 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.9.2-1.20191204git4c00f5b
Gabriel L. Somlo 8cca438
- Update to 0.9.2
Gabriel L. Somlo 8cca438
df608f4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-4.20190606git562c046
df608f4
- Rebuilt for Python 3.8.0rc1 (#1748018)
df608f4
1822f92
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-3.20190606git562c046
1822f92
- Rebuilt for Python 3.8
1822f92
e98cf08
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2.20190606git562c046
e98cf08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e98cf08
Gabriel L. Somlo 82f79df
* Thu Jun 06 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.9.1-1.20190606git562c046
Gabriel L. Somlo 82f79df
- Update to 0.9.1
Gabriel L. Somlo 8cca438
Gabriel L. Somlo 82f79df
* Mon May 20 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.8-0.4.20190520git9031bfe
Gabriel L. Somlo 82f79df
- Update to newer snapshot.
Gabriel L. Somlo 8cca438
Gabriel L. Somlo 08b82ef
* Mon Apr 15 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.8-0.3.20190415gitedcadbc
Gabriel L. Somlo 82f79df
- Update to newer snapshot.
Gabriel L. Somlo 8cca438
Gabriel L. Somlo e310009
* Wed Feb 27 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.8-0.2.20190227git936732f
Gabriel L. Somlo 82f79df
- Update to newer snapshot.
Gabriel L. Somlo 8cca438
Gabriel L. Somlo 2899fb8
* Mon Feb 18 2019 Gabriel Somlo <gsomlo@gmail.com> - 0.8-0.1.20190218gitafe4405
Gabriel L. Somlo 2899fb8
- Initial version.