[openeuclide/f13/master] First commit: openeuclide on F13

Arun SAG sagarun at fedoraproject.org
Thu Oct 21 16:37:32 UTC 2010


commit 7945cf272f24c9f76e85ca0c37a1e5f9a9f5c3ff
Author: Arun SAG <sagarun at gmail.com>
Date:   Thu Oct 21 22:07:03 2010 +0530

    First commit: openeuclide on F13

 openeuclide-0.5-fix-FTBFS.patch    |   22 +++++++++++
 openeuclide-0.5.tgz                |  Bin 0 -> 288511 bytes
 openeuclide-fix-desktop-file.patch |   16 ++++++++
 openeuclide.spec                   |   73 ++++++++++++++++++++++++++++++++++++
 4 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/openeuclide-0.5-fix-FTBFS.patch b/openeuclide-0.5-fix-FTBFS.patch
new file mode 100644
index 0000000..da34fdb
--- /dev/null
+++ b/openeuclide-0.5-fix-FTBFS.patch
@@ -0,0 +1,22 @@
+diff -up ./src/euclideConf.h.orig ./src/euclideConf.h
+--- ./src/euclideConf.h.orig	2010-10-16 14:30:20.303794857 +0530
++++ ./src/euclideConf.h	2010-10-16 14:31:30.766544669 +0530
+@@ -22,6 +22,7 @@
+ 
+ #include <string>
+ #include <fstream>
++#include <cstdlib>
+ using namespace std;
+ 
+ class config {
+diff -up ./src/Vect.h.orig ./src/Vect.h
+--- ./src/Vect.h.orig	2010-10-16 14:30:40.877795431 +0530
++++ ./src/Vect.h	2010-10-16 14:31:44.281550711 +0530
+@@ -24,6 +24,7 @@
+ #include <cmath>
+ #include <fstream>
+ #include <iostream>
++#include <cstring>
+ using namespace std;
+ 
+ #ifndef M_PI
diff --git a/openeuclide-0.5.tgz b/openeuclide-0.5.tgz
new file mode 100644
index 0000000..f5e9096
Binary files /dev/null and b/openeuclide-0.5.tgz differ
diff --git a/openeuclide-fix-desktop-file.patch b/openeuclide-fix-desktop-file.patch
new file mode 100644
index 0000000..0c1841e
--- /dev/null
+++ b/openeuclide-fix-desktop-file.patch
@@ -0,0 +1,16 @@
+diff -up ./openeuclide.desktop.fix ./openeuclide.desktop
+--- ./openeuclide.desktop.fix	2010-10-16 15:04:01.263922233 +0530
++++ ./openeuclide.desktop	2010-10-16 18:46:01.647670430 +0530
+@@ -1,7 +1,10 @@
+ [Desktop Entry]
+-Version=0.5
++Version=1.0
+ Type=Application
+ Name=OpenEuclide
+ Comment=2D dynamical geometry software
+ TryExec=openeuclide
+ Exec=openeuclide %F
++Icon=/usr/share/pixmaps/openeuclide.png
++MimeType=image/x-png;
++Categories=Education;
+\ No newline at end of file
diff --git a/openeuclide.spec b/openeuclide.spec
new file mode 100644
index 0000000..d8ea887
--- /dev/null
+++ b/openeuclide.spec
@@ -0,0 +1,73 @@
+Name:           openeuclide
+Version:        0.5        
+Release:        3%{?dist}
+Summary:        A geometry software that is intended for educational or modeling purposes
+
+Group:          Applications/Engineering
+License:        GPLv2+
+URL:            http://coulon.publi.free.fr/openeuclide/index.php
+Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tgz
+
+#The upstream sources results in FTBFS.
+#Patch to add necessary header files to the source to make it build.
+Patch0:         %{name}-%{version}-fix-FTBFS.patch
+
+#Application's version was used in desktop entry file
+#Patch to fix the version
+#Patch adds categories and icon keys to the desktop file
+Patch1:         %{name}-fix-desktop-file.patch      
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+
+BuildRequires:  gtk2-devel
+BuildRequires:  desktop-file-utils       
+
+%description
+OpenEuclide is a 2D geometry software: figures are 
+defined dynamically by describing formal geometrical constraints.
+This project is a basic tool for educational or modeling purpose.
+
+%prep
+%setup -q -n %{name}
+mv %{name}.desktop~ %{name}.desktop
+%patch0
+%patch1
+find . -name "CVS"  -exec rm -rf {} +;
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README NEWS AUTHORS COPYING doc/
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%dir %{_datadir}/%{name}/
+%{_datadir}/%{name}/*
+%{_datadir}/pixmaps/%{name}.png
+
+
+
+%changelog
+* Sun Oct 17 2010 Arun SAG <sagarun at gmail.com> - 0.5-3
+- Updated the summary to make it sensible
+
+* Sat Oct 16 2010 Arun SAG <sagarun AT gmail dot com> - 0.5-2
+- Fixed the desktop file
+- Added COPYING file into the package
+
+* Sat Oct 16 2010 Arun SAG <sagarun AT gmail dot com> - 0.5-1
+- Initial release


More information about the scm-commits mailing list