|
|
fb818f |
%{?scl:%scl_package devassistant}
|
|
|
fb818f |
%{!?scl:%global pkg_name %{name}}
|
|
|
fb818f |
|
|
|
fb818f |
%global shortname da
|
|
|
fb818f |
|
|
|
fb818f |
#%%global prerel b1
|
|
|
fb818f |
|
|
|
fb818f |
Name: %{?scl_prefix}devassistant
|
|
|
899b3e |
Version: 0.9.3
|
|
|
899b3e |
Release: %{?prerel:0.}3%{?prerel:.%{prerel}}%{?dist}
|
|
|
fb818f |
Summary: DevAssistant - Making life easier for developers
|
|
|
fb818f |
|
|
|
fb818f |
License: GPLv2+ and CC-BY-SA
|
|
|
fb818f |
URL: https://github.com/bkabrda/devassistant
|
|
|
fb818f |
Source0: https://pypi.python.org/packages/source/d/%{pkg_name}/%{pkg_name}-%{version}%{?prerel}.tar.gz
|
|
|
fb818f |
Patch0: %{pkg_name}-0.9.0-alter-paths-downstream.patch
|
|
|
fb818f |
Patch2: %{pkg_name}-0.9.0-dont-require-pygithub.patch
|
|
|
899b3e |
Patch3: %{pkg_name}-0.9.0-fix-old-six.patch
|
|
|
899b3e |
Patch4: %{pkg_name}-0.9.0-fix-directory-not-writable.patch
|
|
|
fb818f |
BuildArch: noarch
|
|
|
fb818f |
|
|
|
fb818f |
BuildRequires: python-devel
|
|
|
fb818f |
BuildRequires: python-setuptools
|
|
|
fb818f |
BuildRequires: python-sphinx
|
|
|
fb818f |
|
|
|
fb818f |
Requires: git
|
|
|
fb818f |
Requires: gtk3
|
|
|
fb818f |
Requires: polkit
|
|
|
fb818f |
Requires: pygobject3
|
|
|
fb818f |
Requires: python-argparse
|
|
|
fb818f |
Requires: python-setuptools
|
|
|
fb818f |
Requires: python-jinja2
|
|
|
fb818f |
Requires: %{?scl_prefix}python-progress
|
|
|
fb818f |
Requires: python-six
|
|
|
fb818f |
Requires: PyYAML
|
|
|
fb818f |
Requires: yum
|
|
|
fb818f |
%{?scl:Requires: %{scl}-runtime}
|
|
|
fb818f |
%{?scl:BuildRequires: %{scl}-runtime}
|
|
|
fb818f |
|
|
|
fb818f |
%description
|
|
|
fb818f |
DevAssistant can help you with creating and setting up basic projects
|
|
|
fb818f |
in various languages, installing dependencies, setting up environments,
|
|
|
fb818f |
working with source control, etc.
|
|
|
fb818f |
|
|
|
fb818f |
%package doc
|
|
|
fb818f |
Summary: Documentation for %{pkg_name}
|
|
|
fb818f |
Group: Documentation
|
|
|
fb818f |
Requires: %{name} = %{version}-%{release}
|
|
|
fb818f |
|
|
|
fb818f |
%description doc
|
|
|
fb818f |
Package with user and developer documentation of %{pkg_name}.
|
|
|
fb818f |
|
|
|
fb818f |
%prep
|
|
|
fb818f |
%setup -q -n %{pkg_name}-%{version}%{?prerel}
|
|
|
fb818f |
# Remove bundled egg-info
|
|
|
fb818f |
rm -rf %{pkg_name}.egg-info
|
|
|
fb818f |
# remove Fedora assistant set
|
|
|
fb818f |
rm -rf %{pkg_name}/data
|
|
|
fb818f |
|
|
|
fb818f |
# don't require PyGithub in DTS version
|
|
|
fb818f |
%patch2 -p0
|
|
|
fb818f |
|
|
|
899b3e |
# fix usage of six.PY2 for old six versions
|
|
|
899b3e |
%patch3 -p1
|
|
|
899b3e |
|
|
|
899b3e |
# fix raising an exception when directory is not writable
|
|
|
899b3e |
%patch4 -p1
|
|
|
fb818f |
|
|
|
fb818f |
%build
|
|
|
fb818f |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
fb818f |
%{__python} setup.py build
|
|
|
fb818f |
%{?scl:EOF}
|
|
|
fb818f |
|
|
|
fb818f |
pushd docs
|
|
|
fb818f |
make html
|
|
|
fb818f |
rm _build/html/.buildinfo
|
|
|
fb818f |
popd
|
|
|
fb818f |
|
|
|
fb818f |
%install
|
|
|
fb818f |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
fb818f |
%{__python} setup.py install --skip-build --root %{buildroot} \
|
|
|
fb818f |
--install-purelib %{python_sitelib} \
|
|
|
fb818f |
--install-scripts %{_bindir}
|
|
|
fb818f |
%{?scl:EOF}
|
|
|
fb818f |
|
|
|
fb818f |
# install manpages for both short and long forms of the binaries
|
|
|
fb818f |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
fb818f |
install -p manpages/%{shortname}.1 %{buildroot}%{_mandir}/man1
|
|
|
fb818f |
install -p manpages/%{shortname}-gui.1 %{buildroot}%{_mandir}/man1
|
|
|
fb818f |
install -p manpages/%{pkg_name}.1 %{buildroot}%{_mandir}/man1
|
|
|
fb818f |
install -p manpages/%{pkg_name}-gui.1 %{buildroot}%{_mandir}/man1/%{pkg_name}-gui.1
|
|
|
fb818f |
|
|
|
fb818f |
# create the %%{_datadir} hierarchy
|
|
|
fb818f |
pushd %{buildroot}%{_datadir}
|
|
|
fb818f |
mkdir -p %{pkg_name}/{assistants,files,icons,snippets}
|
|
|
fb818f |
mkdir -p %{pkg_name}/assistants/{crt,mod,prep,task}
|
|
|
fb818f |
# files are also for snippets
|
|
|
fb818f |
mkdir -p %{pkg_name}/files/{crt,mod,prep,task,snippets}
|
|
|
fb818f |
mkdir -p %{pkg_name}/icons/{crt,mod,prep,task}
|
|
|
fb818f |
|
|
|
fb818f |
# first, do the alterations to paths in devassistant
|
|
|
fb818f |
pushd %{buildroot}%{python_sitelib}
|
|
|
fb818f |
patch -p0 < %{PATCH0}
|
|
|
fb818f |
sed -i 's|_DATADIR_DEVASSISTANT|%{_datadir}/%{pkg_name}|' devassistant/settings.py
|
|
|
fb818f |
sed -i 's|_DATADIR_LOCAL_DEVASSISTANT|%{_prefix}/local/share/%{pkg_name}|' devassistant/settings.py
|
|
|
fb818f |
popd
|
|
|
fb818f |
|
|
|
fb818f |
%files
|
|
|
fb818f |
%doc README.rst LICENSE
|
|
|
fb818f |
%{_bindir}/%{shortname}
|
|
|
fb818f |
%{_bindir}/%{shortname}-gui
|
|
|
fb818f |
%{_bindir}/%{pkg_name}
|
|
|
fb818f |
%{_bindir}/%{pkg_name}-gui
|
|
|
fb818f |
%{_datadir}/%{pkg_name}
|
|
|
fb818f |
%{_mandir}/man1/%{shortname}.1.gz
|
|
|
fb818f |
%{_mandir}/man1/%{shortname}-gui.1.gz
|
|
|
fb818f |
%{_mandir}/man1/%{pkg_name}.1.gz
|
|
|
fb818f |
%{_mandir}/man1/%{pkg_name}-gui.1.gz
|
|
|
fb818f |
%{python_sitelib}/%{pkg_name}
|
|
|
fb818f |
%{python_sitelib}/%{pkg_name}-%{version}%{?prerel}-py?.?.egg-info
|
|
|
fb818f |
|
|
|
fb818f |
%files doc
|
|
|
fb818f |
%doc docs/_build/html
|
|
|
fb818f |
|
|
|
fb818f |
%changelog
|
|
|
899b3e |
* Wed Feb 18 2015 Tomas Radej <tradej@redhat.com> - 0.9.3-3
|
|
|
899b3e |
- Fix usage of six.PY2 for older six versions
|
|
|
899b3e |
Resolves: rhbz#1193936
|
|
|
899b3e |
|
|
|
899b3e |
* Tue Jan 20 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.9.3-2
|
|
|
899b3e |
- Make patch 0 (alter paths downstream) apply cleanly.
|
|
|
899b3e |
|
|
|
899b3e |
* Thu Jan 08 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.9.3-1
|
|
|
899b3e |
- Update to 0.9.3 final
|
|
|
899b3e |
Resolves: rhbz#1167913
|
|
|
899b3e |
|
|
|
fb818f |
* Mon Jun 23 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.1-1
|
|
|
fb818f |
- Update to 0.9.1 final
|
|
|
fb818f |
|
|
|
fb818f |
* Thu May 29 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-3
|
|
|
fb818f |
- Make paths alteration patch apply cleanly.
|
|
|
fb818f |
|
|
|
fb818f |
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-2
|
|
|
fb818f |
- Remove the unsupported code from GUI.
|
|
|
fb818f |
|
|
|
fb818f |
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-1
|
|
|
fb818f |
- Update to 0.9.0 final
|
|
|
fb818f |
|
|
|
fb818f |
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-0.3.b1
|
|
|
fb818f |
- Rebuilt for RHEL 7
|
|
|
fb818f |
|
|
|
fb818f |
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-0.2.b1
|
|
|
fb818f |
- Alter /usr/local/share/devassistant path to point to /opt, too.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed May 21 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.0-0.1.b1
|
|
|
fb818f |
- Rebuilt for devassist09
|
|
|
fb818f |
- Updated to DevAssistant 0.9.0b1
|
|
|
fb818f |
|
|
|
fb818f |
* Mon Apr 14 2014 Tomas Radej <tradej@redhat.com> - 0.8.0-3
|
|
|
fb818f |
- Added CC-BY-SA to License field because of appdata.xml
|
|
|
fb818f |
|
|
|
fb818f |
* Fri Feb 28 2014 Miro HronĨok <mhroncok@redhat.com> - 0.8.0-2
|
|
|
fb818f |
- Backport fix of GitHub errors.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Dec 04 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.0-1
|
|
|
fb818f |
- Update to 0.8.0.
|
|
|
fb818f |
- Don't create the /usr/local hierarchy, leave it up to users.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Oct 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.0-1
|
|
|
fb818f |
- Update to 0.7.0.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Aug 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.1-2
|
|
|
fb818f |
- Properly create and own the /usr/local hierarchy.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Aug 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.1-1
|
|
|
fb818f |
- Update to 0.6.1.
|
|
|
fb818f |
- Introduce gui, add its dependencies.
|
|
|
fb818f |
|
|
|
fb818f |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
|
|
|
fb818f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
fb818f |
|
|
|
fb818f |
* Fri Jul 26 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.5.0-1
|
|
|
fb818f |
- Update to 0.5.0.
|
|
|
fb818f |
- Regenerated patch0.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.4.0-3
|
|
|
fb818f |
- Perl 5.18 rebuild
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Jul 03 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4.0-2
|
|
|
fb818f |
- Fix manpage typo, rhbz#980646.
|
|
|
fb818f |
|
|
|
fb818f |
* Mon Jul 01 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4.0-1
|
|
|
fb818f |
- Update to 0.4.0.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed May 15 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.1-1
|
|
|
fb818f |
- Update to 0.3.1.
|
|
|
fb818f |
- Remove no longer needed dependencies (jinja2, plumbum).
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Mar 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.2-1
|
|
|
fb818f |
- Update to 0.2.2 because of minor bug in 0.2.1.
|
|
|
fb818f |
|
|
|
fb818f |
* Wed Mar 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.1-1
|
|
|
fb818f |
- Update to devassistant 0.2.1.
|
|
|
fb818f |
- Introduce bash completion script.
|
|
|
fb818f |
|
|
|
fb818f |
* Mon Mar 18 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2.0-1
|
|
|
fb818f |
- Update to devassistant 0.2.0.
|
|
|
fb818f |
- Move assistants and snippets to %%{datadir}/%%{pkg_name}.
|
|
|
fb818f |
- Introduce manpage.
|
|
|
fb818f |
|
|
|
fb818f |
* Tue Mar 12 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.0-3
|
|
|
fb818f |
- Move templates to %%{_datadir}.
|
|
|
fb818f |
|
|
|
fb818f |
* Tue Mar 12 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.0-2
|
|
|
fb818f |
- Use BR: python2-devel instead of python-devel.
|
|
|
fb818f |
|
|
|
fb818f |
* Fri Mar 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.1.0-1
|
|
|
fb818f |
- Initial package.
|