rpms/qct/F-7 qct.desktop, NONE, 1.1 qct.patch1, NONE, 1.1 qct.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Neal Becker (nbecker)
fedora-extras-commits at redhat.com
Sun Nov 18 11:33:38 UTC 2007
- Previous message (by thread): rpms/qct/F-8 qct.desktop, NONE, 1.1 qct.patch1, NONE, 1.1 qct.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/uncrustify/devel .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 uncrustify.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nbecker
Update of /cvs/pkgs/rpms/qct/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25710
Modified Files:
.cvsignore sources
Added Files:
qct.desktop qct.patch1 qct.spec
Log Message:
Initial
--- NEW FILE qct.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=qct
GenericName=multi-vcs ci tool
Exec=qct --gui
Terminal=false
Type=Application
Categories=Development;
--- NEW FILE qct.patch1 ---
--- qct 2007-11-12 15:20:34.000000000 -0500
+++ /home/nbecker/qct 2007-11-16 10:00:05.000000000 -0500
@@ -48,10 +48,34 @@
try:
opts, args = getopt.getopt(sys.argv[1:], "s4bghcmvu:",
["svn", "p4", "bzr", "hg", "cvs", "mtn", "version",
- "help", "cg"])
+ "help", "cg", "gui"])
except getopt.error, msg:
pass
+ app = QtGui.QApplication(sys.argv)
+
+ for o in opts:
+ if o[0] == "--gui":
+ class DirDialog(QtGui.QFileDialog):
+ def __init__(self, parent=None):
+ QtGui.QFileDialog.__init__(self, parent)
+
+ def show (self):
+ dialog = QtGui.QFileDialog.getExistingDirectory (self,
+## self.tr ("Open Directory"),
+ "qct - " + self.tr ("Open Directory"),
+ "",
+ QtGui.QFileDialog.ShowDirsOnly | QtGui.QFileDialog.DontResolveSymlinks)
+
+ return dialog
+
+ dirdialog = DirDialog()
+ ret = dirdialog.show()
+ if (ret):
+ os.chdir (ret)
+ opts.remove (o)
+ break
+
vcs = None
username = None
if len(opts) == 0:
@@ -119,7 +143,7 @@
sys.exit()
# Now we know it's worth the trouble to open the GUI
- app = QtGui.QApplication(sys.argv)
+
dialog = CommitTool(vcs)
dialog.show()
sys.exit(app.exec_())
--- NEW FILE qct.spec ---
%{!?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.5
Release: 5%{?dist}
Summary: Multi-vcs GUI commit tool
Group: Development/Tools
License: GPLv2
URL: http://qct.sourceforge.net/
Source0: http://qct.sourceforge.net/%{name}-%{version}.tar.gz
Source1: qct.desktop
Patch1: qct.patch1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
%patch1 -p0 -b .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 plugins/qct.py $RPM_BUILD_ROOT/%{python_archlib}/hgext/qct.py
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
--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
Group: Development/Tools
Requires: mercurial >= 0.9.5-3
%description mercurial
Installs qct.rc plugin for mercurial
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%{_datadir}/applications/fedora-qct.desktop
%doc COPYING README.*
%files mercurial
%defattr(-,root,root,-)
%{_sysconfdir}/mercurial/hgrc.d/qct.rc
%{python_archlib}/hgext/qct.py*
%changelog
* Sat Nov 17 2007 Neal Becker <ndbecker2 at gmail.com> - 1.5-5
- Remove X-Fedora
- kill debug_package
- Tabify
* Fri Nov 16 2007 Neal Becker <ndbecker2 at gmail.com> - 1.5-4
- Undo noarch
- Fix some permissions
- Patch qct to start from desktop
* Wed Nov 14 2007 Neal Becker <ndbecker2 at gmail.com> - 1.5-2
- Add defattr to mercurial section
- Add (minimal) desktop file
* Mon Nov 12 2007 Neal Becker <ndbecker2 at gmail.com> - 1.5-1
- Update to 1.5
* Fri Nov 9 2007 Neal Becker <ndbecker2 at gmail.com> - 1.4-3
- Add noarch
- Install qct.py
* Fri Nov 9 2007 Neal Becker <ndbecker2 at gmail.com> - 1.4-1
- Initial
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/qct/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 18 Nov 2007 01:14:39 -0000 1.1
+++ .cvsignore 18 Nov 2007 11:33:06 -0000 1.2
@@ -0,0 +1 @@
+qct-1.5.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/qct/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 18 Nov 2007 01:14:39 -0000 1.1
+++ sources 18 Nov 2007 11:33:06 -0000 1.2
@@ -0,0 +1 @@
+1fb8fec8267ecb139d3ed154ac5f7791 qct-1.5.tar.gz
- Previous message (by thread): rpms/qct/F-8 qct.desktop, NONE, 1.1 qct.patch1, NONE, 1.1 qct.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/uncrustify/devel .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 uncrustify.spec, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list