Blame python-pcodedmp.spec

c8aaefc
%global srcname pcodedmp
c8aaefc
9e4d25b
# Bootstrap may be needed to break circular dependencies between
9e4d25b
# python-pcodedmp and python-oletools
9e4d25b
%bcond_with     bootstrap
9e4d25b
c8aaefc
# No python-pypandoc packages in EPEL 8 (yet?)
c8aaefc
%if 0%{?fedora} || 0%{?rhel} == 7
c8aaefc
%bcond_without  pypandoc
c8aaefc
%else
c8aaefc
%bcond_with     pypandoc
c8aaefc
%endif
c8aaefc
c8aaefc
Summary:        VBA p-code disassembler
c8aaefc
Name:           python-%{srcname}
c8aaefc
Version:        1.2.6
bf5f203
Release:        17%{?dist}
c8aaefc
License:        GPLv3+
c8aaefc
URL:            https://github.com/bontchev/pcodedmp
c8aaefc
Source0:        %{pypi_source}
c8aaefc
Patch0:         python-pcodedmp-1.2.6-python27.patch
c8aaefc
BuildArch:      noarch
c8aaefc
c8aaefc
%global _description %{expand:
c8aaefc
Macros written in VBA (Visual Basic for Applications; the macro programming
c8aaefc
language used in Microsoft Office) exist in three different executable forms,
c8aaefc
each of which can be what is actually executed at run time, depending on the
c8aaefc
circumstances: Source code, p-code and execodes.
c8aaefc
c8aaefc
Since most of the time it is the p-code that determines what exactly a macro
c8aaefc
would do (even if neither source code, nor execodes are present), pcodedmp is
c8aaefc
a Python library and command line tool to display it.}
c8aaefc
c8aaefc
%description %_description
c8aaefc
c8aaefc
%package -n %{srcname}
c8aaefc
Summary:        %{summary}
c8aaefc
Requires:       python%{python3_pkgversion}-%{srcname} = %{version}-%{release}
c8aaefc
c8aaefc
%description -n %{srcname} %_description
c8aaefc
c8aaefc
%if 0%{?rhel} && 0%{?rhel} < 8
c8aaefc
%package -n python2-%{srcname}
c8aaefc
Summary:        %{summary}
c8aaefc
BuildRequires:  python2-devel
538e7c3
BuildRequires:  python2-setuptools
c8aaefc
%if %{with pypandoc}
c8aaefc
BuildRequires:  python2-pypandoc
c8aaefc
%endif
9e4d25b
%if %{without bootstrap}
c8aaefc
BuildRequires:  python2-oletools >= 0.54
c8aaefc
Requires:       python2-oletools >= 0.54
9e4d25b
%endif
c8aaefc
%{?python_provide:%python_provide python2-%{srcname}}
c8aaefc
c8aaefc
%description -n python2-%{srcname} %_description
c8aaefc
%endif
c8aaefc
c8aaefc
%package -n python%{python3_pkgversion}-%{srcname}
c8aaefc
Summary:        %{summary}
c8aaefc
BuildRequires:  python%{python3_pkgversion}-devel
538e7c3
BuildRequires:  python%{python3_pkgversion}-setuptools
c8aaefc
%if %{with pypandoc}
c8aaefc
BuildRequires:  python%{python3_pkgversion}-pypandoc
c8aaefc
%endif
9e4d25b
%if %{without bootstrap}
6293d78
BuildRequires:  python%{python3_pkgversion}-lxml
c8aaefc
BuildRequires:  python%{python3_pkgversion}-oletools >= 0.54
c8aaefc
Requires:       python%{python3_pkgversion}-oletools >= 0.54
9e4d25b
%endif
c8aaefc
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
c8aaefc
c8aaefc
%description -n python%{python3_pkgversion}-%{srcname} %_description
c8aaefc
c8aaefc
%if 0%{?with_python3_other}
c8aaefc
%package -n python%{python3_other_pkgversion}-%{srcname}
c8aaefc
Summary:        %{summary}
c8aaefc
BuildRequires:  python%{python3_other_pkgversion}-devel
538e7c3
BuildRequires:  python%{python3_other_pkgversion}-setuptools
c8aaefc
%if %{with pypandoc}
c8aaefc
BuildRequires:  python%{python3_other_pkgversion}-pypandoc
c8aaefc
%endif
9e4d25b
%if %{without bootstrap}
6293d78
BuildRequires:  python%{python3_other_pkgversion}-lxml
c8aaefc
BuildRequires:  python%{python3_other_pkgversion}-oletools >= 0.54
c8aaefc
Requires:       python%{python3_other_pkgversion}-oletools >= 0.54
9e4d25b
%endif
c8aaefc
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}}
c8aaefc
c8aaefc
%description -n python%{python3_other_pkgversion}-%{srcname} %_description
c8aaefc
%endif
c8aaefc
c8aaefc
%prep
c8aaefc
%autosetup -n %{srcname}-%{version}
c8aaefc
c8aaefc
%build
c8aaefc
%if 0%{?rhel} && 0%{?rhel} < 8
c8aaefc
%py2_build
c8aaefc
%endif
c8aaefc
%py3_build
c8aaefc
%{?with_python3_other:%py3_other_build}
c8aaefc
c8aaefc
%install
c8aaefc
%if 0%{?rhel} && 0%{?rhel} < 8
c8aaefc
%py2_install
c8aaefc
%endif
c8aaefc
%py3_install
c8aaefc
%{?with_python3_other:%py3_other_install}
c8aaefc
9e4d25b
%if %{without bootstrap}
c8aaefc
%check
c8aaefc
%{__python3} setup.py test
c8aaefc
%{?with_python3_other:%{__python3_other} setup.py test}
9e4d25b
%endif
c8aaefc
c8aaefc
%files -n %{srcname}
c8aaefc
%{_bindir}/%{srcname}
c8aaefc
c8aaefc
%if 0%{?rhel} && 0%{?rhel} < 8
c8aaefc
%files -n python2-%{srcname}
c8aaefc
%license LICENSE
c8aaefc
%doc README.md
c8aaefc
%{python2_sitelib}/%{srcname}/
c8aaefc
%{python2_sitelib}/%{srcname}-*.egg-info
c8aaefc
%endif
c8aaefc
c8aaefc
%files -n python%{python3_pkgversion}-%{srcname}
c8aaefc
%license LICENSE
c8aaefc
%doc README.md
c8aaefc
%{python3_sitelib}/%{srcname}/
c8aaefc
%{python3_sitelib}/%{srcname}-*.egg-info/
c8aaefc
c8aaefc
%if 0%{?with_python3_other}
c8aaefc
%files -n python%{python3_other_pkgversion}-%{srcname}
c8aaefc
%license LICENSE
c8aaefc
%doc README.md
c8aaefc
%{python3_sitelib}/%{srcname}/
c8aaefc
%{python3_sitelib}/%{srcname}-*.egg-info/
c8aaefc
%endif
c8aaefc
c8aaefc
%changelog
bf5f203
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-17
bf5f203
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
bf5f203
e1a8452
* Thu Jul 06 2023 Python Maint <python-maint@redhat.com> - 1.2.6-16
e1a8452
- Rebuilt for Python 3.12
e1a8452
700aff7
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.2.6-15
700aff7
- Bootstrap for Python 3.12
700aff7
3d609b5
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-14
3d609b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3d609b5
b741aff
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-13
b741aff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b741aff
81daa0c
* Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.6-12
81daa0c
- Rebuilt for pyparsing-3.0.9
81daa0c
2b11de5
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 1.2.6-11
2b11de5
- Rebuilt for Python 3.11
2b11de5
4cce9c7
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 1.2.6-10
4cce9c7
- Bootstrap for Python 3.11
4cce9c7
74ab656
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-9
74ab656
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
74ab656
1d50ee6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-8
1d50ee6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1d50ee6
2fd630a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.6-7
2fd630a
- Rebuilt for Python 3.10
2fd630a
21830a7
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.6-6
21830a7
- Bootstrap for Python 3.10
21830a7
324249d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-5
324249d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
324249d
f56f10b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-4
f56f10b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f56f10b
538e7c3
* Mon Jun 29 2020 Robert Scheck <robert@fedoraproject.org> 1.2.6-3
538e7c3
- Require python-setuptools during build-time explicitly
538e7c3
ca31ed6
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-2
ca31ed6
- Rebuilt for Python 3.9
ca31ed6
c8aaefc
* Mon May 04 2020 Robert Scheck <robert@fedoraproject.org> 1.2.6-1
c8aaefc
- Upgrade to 1.2.6 (#1832610)
c8aaefc
- Initial spec file for Fedora and Red Hat Enterprise Linux