[qroneko] Initial import (#627637).
kumarpraveen
kumarpraveen at fedoraproject.org
Fri Feb 25 06:22:01 UTC 2011
commit 86f465baf52f701ecbc5d1ecfa3b77943ebe384c
Author: Praveen Kumar <daredevil at codecracker.in>
Date: Fri Feb 25 11:53:47 2011 +0530
Initial import (#627637).
.gitignore | 1 +
qroneko-0.5.4-CronModel.cpp.patch | 31 ++++++++++++++++
qroneko-0.5.4-ExecuteList.cpp.patch | 17 +++++++++
qroneko.desktop | 11 ++++++
qroneko.spec | 65 +++++++++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 126 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9ccc265 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/qroneko-0.5.4.tar.gz
diff --git a/qroneko-0.5.4-CronModel.cpp.patch b/qroneko-0.5.4-CronModel.cpp.patch
new file mode 100644
index 0000000..cd2cce1
--- /dev/null
+++ b/qroneko-0.5.4-CronModel.cpp.patch
@@ -0,0 +1,31 @@
+--- CronModel.cpp 2010-08-31 10:54:29.138594293 +0530
++++ CronModel_new.cpp 2010-08-31 10:43:19.484614406 +0530
+@@ -245,7 +245,7 @@
+ if (isOneUser()) {
+ for(int i=0; i<rowCount(QModelIndex()); i++) {
+ QModelIndex idx = index(i, 0, QModelIndex());
+- if ((int)getTCommand(idx) == (int)cmnd)
++ if ((long int)getTCommand(idx) == (long int)cmnd)
+ return idx;
+ }
+ } else {
+@@ -253,7 +253,7 @@
+ QModelIndex pidx = index(i, 0, QModelIndex());
+ for (int j=0; j<rowCount(pidx); j++) {
+ QModelIndex idx = index(j, 0, pidx);
+- if ((int)getTCommand(idx) == (int)cmnd)
++ if ((long int)getTCommand(idx) == (long int)cmnd)
+ return idx;
+ }
+ }
+@@ -312,8 +312,8 @@
+ }
+ // dumpIndex(ins, "CronModel::dropMimeData insert : ");
+
+- if ((int)getTCommand(ins) == (int)drag ||
+- (int)getTCommand(next) == (int)drag)
++ if ((long int)getTCommand(ins) == (long int)drag ||
++ (long int)getTCommand(next) == (long int)drag)
+ return false;
+
+ TCommand *t = new TCommand();
diff --git a/qroneko-0.5.4-ExecuteList.cpp.patch b/qroneko-0.5.4-ExecuteList.cpp.patch
new file mode 100644
index 0000000..b50cbc9
--- /dev/null
+++ b/qroneko-0.5.4-ExecuteList.cpp.patch
@@ -0,0 +1,17 @@
+--- ExecuteList.cpp 2005-12-02 18:17:06.000000000 +0530
++++ ExecuteList_new.cpp 2010-08-31 10:43:19.481635987 +0530
+@@ -123,12 +123,12 @@
+ int sel = 0;
+ if (crontabs->count() > 1 && cron != NULL)
+ foreach(Execute *e, executes)
+- if ( (int)(e->tCommands->parent) == (int)cron )
++ if ( (long int)(e->tCommands->parent) == (long int)cron )
+ e->sel = 1;
+
+ if (cmnd != NULL)
+ foreach(Execute *e, executes)
+- if ((int)e->tCommands == (int)cmnd) {
++ if ((long int)e->tCommands == (long int)cmnd) {
+ e->sel = 2;
+ sel++;
+ }
diff --git a/qroneko.desktop b/qroneko.desktop
new file mode 100644
index 0000000..991c362
--- /dev/null
+++ b/qroneko.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=qroneko
+GenericName=A front end of crontab application
+Comment=A crontab application
+Icon=qroneko
+TryExec=qroneko
+Exec=qroneko
+Terminal=false
+Categories=System;
\ No newline at end of file
diff --git a/qroneko.spec b/qroneko.spec
new file mode 100644
index 0000000..8221333
--- /dev/null
+++ b/qroneko.spec
@@ -0,0 +1,65 @@
+Name: qroneko
+Version: 0.5.4
+Release: 4%{?dist}
+Summary: A qt front end to crontab
+Group: Applications/System
+License: GPLv2+
+URL: http://qroneko.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1: %{name}.desktop
+Patch0: qroneko-0.5.4-CronModel.cpp.patch
+Patch1: qroneko-0.5.4-ExecuteList.cpp.patch
+
+BuildRequires: qt-devel,desktop-file-utils
+
+
+%description
+qroneko is a scheduling utility which uses crontab as the back-end.
+Features and highlights:
+ * Smart "Cron Time" Setting.
+ * Lists expected execute time.
+ * Enables to edit crontab by text
+
+%prep
+%setup -q
+%patch0 -p0
+%patch1 -p0
+
+
+%build
+%{_qt4_qmake} -project -o qroneko.pro
+%{_qt4_qmake} qroneko.pro
+make %{?_smp_mflags}
+
+%install
+install -pd $RPM_BUILD_ROOT/%{_bindir}
+install -p %{name} $RPM_BUILD_ROOT/%{_bindir}
+
+#menu-entries
+install -pdm 755 $RPM_BUILD_ROOT%{_datadir}/applications
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
+install -pd $RPM_BUILD_ROOT%{_datadir}/pixmaps
+cp -p %{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
+
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/qroneko
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/qroneko*.desktop
+%doc README
+
+
+
+%changelog
+* Mon Feb 21 2011 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.5.4-4
+- Fixed buildroot,timestamp and desktop file issues
+
+* Tue Aug 31 2010 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.5.4-3
+- Fixed build requirement and add Desktop file and add patch for x86_64 system
+
+* Fri Aug 27 2010 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.5.4-2
+- Add doc and fixed LICENSE and URL issue
+
+* Fri Aug 13 2010 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.5.4-1
+- Initial Build
diff --git a/sources b/sources
index e69de29..9914451 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5e2e20d9ce40e076cbe79d64a21f6e6b qroneko-0.5.4.tar.gz
More information about the scm-commits
mailing list