Blob Blame Raw
%{!?python_archlib: %define python_archlib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define                 debug_package %{nil}

Name:		qct
Version:	1.7
Release:	22%{?dist}
Summary:	Multi-vcs GUI commit tool

License:	GPLv2
URL:		http://qct.sourceforge.net/
Source0:	http://qct.sourceforge.net/%{name}-%{version}.tar.gz
Source1:	qct.desktop

BuildRequires:	python-devel PyQt4-devel desktop-file-utils
Requires:	python PyQt4

%description
Multi-vcs GUI commit tool.  Supports:
mercurial, bazaar, git, subversion, monotone, cvs

%prep
%setup -q -n qct

%build


%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --root $RPM_BUILD_ROOT --record=%{name}.files --install-lib %{python_archlib}
install -D qct.rc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d/qct.rc
install -D hgext/qct.py $RPM_BUILD_ROOT/%{python_archlib}/hgext/qct.py

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications

desktop-file-install  \
%if 0%{?fedora} && 0%{?fedora} < 19
    --vendor fedora \
%endif
    --dir $RPM_BUILD_ROOT%{_datadir}/applications  \
    --add-category Development \
	%{SOURCE1}

chmod 755 $RPM_BUILD_ROOT/%{python_archlib}/qctlib/changeselect.py
chmod 644 $RPM_BUILD_ROOT/%{python_archlib}/hgext/qct.py $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d/qct.rc

%package	mercurial
Summary:	Mercurial plugin for qct
Requires:	mercurial >= 0.9.5-3
Requires: 	%{name} = %{version}-%{release}

%description	mercurial
Installs qct.rc plugin for mercurial


%files -f %{name}.files
%dir %{python_archlib}/qctlib
%dir %{python_archlib}/qctlib/vcs
%if 0%{?fedora} && 0%{?fedora} < 19
%{_datadir}/applications/fedora-qct.desktop
%else
%{_datadir}/applications/qct.desktop
%endif
%doc COPYING README.*

%files mercurial
%{_sysconfdir}/mercurial/hgrc.d/qct.rc
%{python_archlib}/hgext/qct.py*

%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-16
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Feb 22 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.7-10
- Remove --vendor from desktop-file-install https://fedorahosted.org/fesco/ticket/1077

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.7-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Apr  1 2009 Neal Becker <ndbecker2@gmail.com> - 1.7-3
- Add Req qt to qt-mercurial br 439675
- Own directories qctlib... br 474615

* Thu Mar 26 2009 Neal Becker <ndbecker2@gmail.com> - 1.7-2
- fix typo

* Thu Mar 26 2009 Neal Becker <ndbecker2@gmail.com> - 1.7-1
- Update to 1.7

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5-7
- Rebuild for Python 2.6

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5-6
- Autorebuild for GCC 4.3

* Sat Nov 17 2007 Neal Becker <ndbecker2@gmail.com> - 1.5-5
- Remove X-Fedora
- kill debug_package
- Tabify

* Fri Nov 16 2007 Neal Becker <ndbecker2@gmail.com> - 1.5-4
- Undo noarch
- Fix some permissions
- Patch qct to start from desktop

* Wed Nov 14 2007 Neal Becker <ndbecker2@gmail.com> - 1.5-2
- Add defattr to mercurial section
- Add (minimal) desktop file

* Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 1.5-1
- Update to 1.5

* Fri Nov  9 2007 Neal Becker <ndbecker2@gmail.com> - 1.4-3
- Add noarch
- Install qct.py

* Fri Nov  9 2007 Neal Becker <ndbecker2@gmail.com> - 1.4-1
- Initial