update to 3.9 [release 3.9-1mamba;Thu Mar 25 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:03:09 +01:00
parent 6b18ebe7f4
commit 1d59dcfe38

View File

@ -1,80 +1,65 @@
Name: git-cola Name: git-cola
Version: 1.4.3.5 Version: 3.9
Release: 1mamba Release: 1mamba
Summary: A highly caffeinated git GUI Summary: A powerful Git GUI with a slick and intuitive user interface
Group: Graphical Desktop/Applications/Development Group: Graphical Desktop/Applications/Development
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org> Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://cola.tuxfamily.org/ URL: https://github.com/git-cola/git-cola
Source: http://cola.tuxfamily.org/releases/cola-%{version}.tar.gz Source: https://github.com/git-cola/git-cola.git/v%{version}/git-cola-%{version}.tar.bz2
Patch0: git-cola-1.4.2.5-doc.patch Patch0: git-cola-1.4.2.5-doc.patch
Patch1: git-cola-1.4.2.5-defapps.patch Patch1: git-cola-1.4.2.5-defapps.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel BuildRequires: libpython3-devel
BuildRequires: PyQt4-devel
BuildRequires: python
BuildRequires: python-pyinotify
BuildRequires: python-jsonpickle
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python-setuptools BuildRequires: python-setuptools-py3
BuildRequires: desktop-file-utils #BuildRequires: desktop-file-utils
BuildRequires: asciidoc BuildRequires: asciidoc
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: gettext BuildRequires: gettext
BuildRequires: perl BuildRequires: perl
Requires: git-gui Requires: git-gui
Requires: python >= %python_version Requires: python3 >= %python_version
Requires: python-pyinotify #Requires: python-pyinotify-py3
Requires: python-jsonpickle Requires: python-jsonpickle-py3
Requires: PyQt4 Requires: PyQt5
Requires: kate
Requires: kdiff3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch BuildArch: noarch
%description %description
git-cola is a powerful GUI for git that gives you an easy way to interact with Git repositories. git-cola is a powerful GUI for git that gives you an easy way to interact with Git repositories.
%debug_package
%prep %prep
%setup -q -n cola-%{version} %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1 #%patch1 -p1
%build %build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python3} setup.py build
%make doc \ %make doc \
prefix=%{_prefix} prefix=%{_prefix}
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python3} setup.py install \
-O1 --skip-build \ -O1 --skip-build \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python \ --install-headers=%{python3_inc} \
--install-lib=%{python_sitearch} \ --install-lib=%{python3_sitearch} \
--record=%{name}.filelist \ --record=%{name}.filelist \
--prefix=%{_prefix} \ --prefix=%{_prefix}
--standalone
# install documentation # install documentation
make install-doc install-html \ make install-doc install-html \
DESTDIR=%{buildroot} \ DESTDIR=%{buildroot} \
prefix=%{_prefix} prefix=%{_prefix}
sed -i "\,^%{_docdir},d" %{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
mv %{buildroot}%{_docdir}/git-cola/* .
rm -fr %{buildroot}%{_docdir}/git-cola
# install desktop file
rm -f %{buildroot}%{_datadir}/applications/cola.desktop
desktop-file-install \
--delete-original \
--dir %{buildroot}%{_datadir}/applications \
share/applications/cola.desktop
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -82,10 +67,18 @@ desktop-file-install \
%files -f %{name}.filelist %files -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_datadir}/git-cola %dir %{_datadir}/git-cola
%{_mandir}/man1/git-cola.1.gz %{_mandir}/man1/git-cola.1*
%doc COPYRIGHT git-cola.txt html LICENSE README %dir %{_docdir}/git-cola
%dir %{_docdir}/git-cola/html
%{_docdir}/git-cola/html/*
%{_mandir}/man1/git-dag.1*
%{_mandir}/man1/git-dag.1*
%doc COPYING COPYRIGHT
%changelog %changelog
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9-1mamba
- update to 3.9
* Wed Apr 25 2012 Automatic Build System <autodist@mambasoft.it> 1.4.3.5-1mamba * Wed Apr 25 2012 Automatic Build System <autodist@mambasoft.it> 1.4.3.5-1mamba
- automatic version update by autodist - automatic version update by autodist