[minutor/f20] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Mon Feb 16 03:42:44 UTC 2015


commit c80e74f62c575a0b1c1630542bc09a9bf001fec8
Author: Christopher Meng <i at cicku.me>
Date:   Mon Feb 16 11:39:58 2015 +0800

    Initial SETUP.

 .gitignore                                  |    1 +
 0001-Dont-automatically-check-updates.patch |   25 ++++++++++++
 minutor.spec                                |   57 +++++++++++++++++++++++++++
 sources                                     |    1 +
 4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..69516ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/minutor-ce24a81.tar.bz2
diff --git a/0001-Dont-automatically-check-updates.patch b/0001-Dont-automatically-check-updates.patch
new file mode 100644
index 0000000..d12fbb7
--- /dev/null
+++ b/0001-Dont-automatically-check-updates.patch
@@ -0,0 +1,25 @@
+From 8090470acb930eb000a5de8123017cb3f8107a74 Mon Sep 17 00:00:00 2001
+From: Christopher Meng <i at cicku.me>
+Date: Mon, 16 Feb 2015 11:07:03 +0800
+Subject: [PATCH] Don't automatically check updates
+
+---
+ settings.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/settings.cpp b/settings.cpp
+index 8173652..c13ba3f 100644
+--- a/settings.cpp
++++ b/settings.cpp
+@@ -59,7 +59,7 @@ Settings::Settings(QWidget *parent) : QDialog(parent)
+ 
+ 	//set stored settings
+ 	QSettings info;
+-	m_ui.checkBox_AutoUpdate     ->setChecked(info.value("autoupdate",true).toBool());
++	m_ui.checkBox_AutoUpdate     ->setDisabled(info.value("autoupdate",true).toBool());
+ 	m_ui.lineEdit_Location       ->setText   (info.value("mcdir","").toString());
+ 	m_ui.lineEdit_Location       ->setDisabled(m_ui.checkBox_DefaultLocation->isChecked());
+ 	m_ui.checkBox_DefaultLocation->setChecked(info.value("usedefault",true).toBool());
+-- 
+2.3.0
+
diff --git a/minutor.spec b/minutor.spec
new file mode 100644
index 0000000..038fc01
--- /dev/null
+++ b/minutor.spec
@@ -0,0 +1,57 @@
+%global checkoutdate  20141209
+%global commitofdate  ce24a81644e5b2f3d18d19198531cf8c663bf1fc
+%global refofcommit   %(c=%{commitofdate}; echo ${c:0:7})
+
+Name:           minutor
+Version:        2.0.2
+Release:        0.1.%{checkoutdate}git%{refofcommit}%{?dist}
+Summary:        Minecraft Mapping tool
+License:        BSD
+URL:            http://seancode.com/minutor/
+##################################################################################
+#Source0:       http://seancode.com/minutor/%{version}/minutor_%{version}.tar.gz #
+# Bzipball was generated by following commands:                                  #
+# 1. git clone https://github.com/mrkite/minutor.git                             #
+# 2. tar jcvf %{name}-%{refofcommit}.tar.bz2 %{name}/ --exclude=.*               #
+##################################################################################
+Source0:        %{name}-%{refofcommit}.tar.bz2
+# Disable updates checking or it will left the collecting
+# unemployment of yum/dnf and myself...
+Patch0:         0001-Dont-automatically-check-updates.patch
+BuildRequires:  desktop-file-utils
+BuildRequires:  qt5-qtbase-devel
+BuildRequires:  zlib-devel
+
+%description
+Minutor is a fast, expandable and easy to use mapping tool for Minecraft 1.2+.
+It lets you view and inspect your Minecraft worlds.
+
+%prep
+%setup -qn %{name}
+%patch0 -p1
+# Unbundle zlib
+rm -frv zlib*
+find . -type f -name "*.cpp" -exec sed -i 's|#include "zlib/|#include "|g' {} +
+
+%build
+%_qt5_qmake
+%make_build
+
+%install
+%make_install INSTALL_ROOT="%{buildroot}"
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/minutor.desktop
+
+%files
+%doc debian/changelog
+%{_bindir}/minutor
+%{_datadir}/applications/minutor.desktop
+%{_datadir}/pixmaps/minutor.*
+
+%changelog
+* Sun Feb 15 2015 Christopher Meng <rpm at cicku.me> - 2.0.2-0.1.20141209gitce24a81
+- Checkout commit ce24a81 from git master
+
+* Tue Nov 12 2013 Christopher Meng <rpm at cicku.me> - 2.0.1-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..6e40dcf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c16129ace7f89bb1a3f5a093b7b104b9  minutor-ce24a81.tar.bz2


More information about the scm-commits mailing list