|
|
c9b9f1a |
%global owner tk0miya
|
|
|
c9b9f1a |
%global srcname actdiag
|
|
|
c9b9f1a |
%global tag %{version}
|
|
|
c9b9f1a |
%global commit 1dc63ee6bd29eda4f78a6cc09072aef955bcf8d4
|
|
|
c9b9f1a |
%global shortcommit %(c=%{commit}; echo ${c:0:12})
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
Name: python-%{srcname}
|
|
|
e7ca7ae |
Version: 0.5.4
|
|
|
84f2241 |
Release: 5%{?dist}
|
|
|
c9b9f1a |
Summary: actdiag generates activity-diagram images from text
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
License: ASL 2.0
|
|
|
c9b9f1a |
URL: http://blockdiag.com/
|
|
|
e7ca7ae |
Source0: https://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
c9b9f1a |
Source1: description-%{srcname}.txt
|
|
|
e7ca7ae |
# Drop pep8 test in favor of flake8:
|
|
|
e7ca7ae |
# https://bitbucket.org/blockdiag/actdiag/commits/c1f2ed5947a1e93291f5860e4e30cee098bd635d
|
|
|
e7ca7ae |
Patch0: %{name}-drop-pep8-test.patch
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
BuildArch: noarch
|
|
|
c9b9f1a |
BuildRequires: python2-devel
|
|
|
c9b9f1a |
BuildRequires: python-blockdiag-devel
|
|
|
c9b9f1a |
BuildRequires: python-docutils
|
|
|
c9b9f1a |
BuildRequires: python-nose
|
|
|
c9b9f1a |
BuildRequires: python-pep8
|
|
|
c9b9f1a |
BuildRequires: python-pillow
|
|
|
e7ca7ae |
BuildRequires: python-reportlab
|
|
|
c9b9f1a |
BuildRequires: python-setuptools
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
BuildRequires: python3-blockdiag-devel
|
|
|
c9b9f1a |
BuildRequires: python3-devel
|
|
|
c9b9f1a |
BuildRequires: python3-docutils
|
|
|
c9b9f1a |
BuildRequires: python3-nose
|
|
|
c9b9f1a |
BuildRequires: python3-pep8
|
|
|
c9b9f1a |
BuildRequires: python3-pillow
|
|
|
e7ca7ae |
BuildRequires: python3-reportlab
|
|
|
c9b9f1a |
BuildRequires: python3-setuptools
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
Requires: python-blockdiag
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%description
|
|
|
c9b9f1a |
%(cat %{SOURCE1})
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%package -n python3-%{srcname}
|
|
|
c9b9f1a |
Summary: %{summary}
|
|
|
c9b9f1a |
Requires: python3-blockdiag
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%description -n python3-%{srcname}
|
|
|
c9b9f1a |
%(cat %{SOURCE1})
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
This package installs the %{srcname} module for Python 3.
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%prep
|
|
|
e7ca7ae |
%setup -qn %{srcname}-%{version}
|
|
|
e401a8b |
%patch0 -p1
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
rm -rf %{py3dir}
|
|
|
c9b9f1a |
cp -a . %{py3dir}
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
c9b9f1a |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%build
|
|
|
c9b9f1a |
%{__python2} setup.py build
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
pushd %{py3dir}
|
|
|
c9b9f1a |
%{__python3} setup.py build
|
|
|
c9b9f1a |
popd
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%install
|
|
|
c9b9f1a |
pushd %{py3dir}
|
|
|
c9b9f1a |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
c9b9f1a |
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version}
|
|
|
c9b9f1a |
install -m 0644 -D %{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}-%{python3_version}.1
|
|
|
c9b9f1a |
popd
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
c9b9f1a |
install -m 0644 -D %{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%check
|
|
|
c9b9f1a |
%{__python} setup.py test
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
pushd %{py3dir}
|
|
|
c9b9f1a |
%{__python3} setup.py test
|
|
|
c9b9f1a |
popd
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%files
|
|
|
c9b9f1a |
%doc LICENSE
|
|
|
c9b9f1a |
%{_bindir}/%{srcname}
|
|
|
c9b9f1a |
%{_mandir}/man1/%{srcname}.1*
|
|
|
c9b9f1a |
%{python2_sitelib}/%{srcname}*
|
|
|
c9b9f1a |
%exclude %{python2_sitelib}/%{srcname}/tests
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%files -n python3-%{srcname}
|
|
|
c9b9f1a |
%{_pkgdocdir}
|
|
|
c9b9f1a |
%{_bindir}/%{srcname}-%{python3_version}
|
|
|
c9b9f1a |
%{_mandir}/man1/%{srcname}-%{python3_version}.1*
|
|
|
c9b9f1a |
%{python3_sitelib}/__pycache__/*
|
|
|
c9b9f1a |
%{python3_sitelib}/%{srcname}*
|
|
|
c9b9f1a |
%exclude %{python3_sitelib}/%{srcname}/tests
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
%changelog
|
|
|
84f2241 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-5
|
|
|
84f2241 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
84f2241 |
|
|
|
82cc23a |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
|
|
|
82cc23a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
82cc23a |
|
|
|
b757e1c |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.5.4-3
|
|
|
b757e1c |
- Rebuild for Python 3.6
|
|
|
b757e1c |
|
|
|
7542b8c |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
|
|
|
7542b8c |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
7542b8c |
|
|
|
e7ca7ae |
* Mon Feb 22 2016 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.5.4-1
|
|
|
e7ca7ae |
- Bumped to 0.5.4
|
|
|
e7ca7ae |
|
|
|
46481fe |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-7
|
|
|
46481fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
46481fe |
|
|
|
218eafa |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-6
|
|
|
218eafa |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
218eafa |
|
|
|
3285069 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
3285069 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3285069 |
|
|
|
1409b1f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
1409b1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
1409b1f |
|
|
|
e401a8b |
* Mon May 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.5.1-3
|
|
|
e401a8b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
e401a8b |
|
|
|
c9b9f1a |
* Tue Mar 04 2014 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.5.1-2
|
|
|
c9b9f1a |
- Fixed changelog format.
|
|
|
c9b9f1a |
- Fixed man page permissions.
|
|
|
c9b9f1a |
|
|
|
c9b9f1a |
* Sun Mar 02 2014 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 0.5.1-1
|
|
|
c9b9f1a |
- Initial version.
|