From df0a95b635aa8905b73d7532f37b29a93b783a40 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 23:27:09 +0100 Subject: [PATCH] automatic rebuild by autodist [release 1.3.2-2mamba;Tue Aug 27 2013] --- README.md | 2 + graphthing-1.3.2-wxGTK2.8.patch | 21 +++++++++ graphthing.spec | 76 +++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 graphthing-1.3.2-wxGTK2.8.patch create mode 100644 graphthing.spec diff --git a/README.md b/README.md index 5e0cdf4..eb9077f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # graphthing +GraphThing is a tool that allows you to create, manipulate and study graphs. + diff --git a/graphthing-1.3.2-wxGTK2.8.patch b/graphthing-1.3.2-wxGTK2.8.patch new file mode 100644 index 0000000..eb404cb --- /dev/null +++ b/graphthing-1.3.2-wxGTK2.8.patch @@ -0,0 +1,21 @@ +diff -Nru graphthing-1.3.2/src/fancyfileselection.cc graphthing-1.3.2.buono/src/fancyfileselection.cc +--- graphthing-1.3.2/src/fancyfileselection.cc 2006-09-11 03:32:12.000000000 +0200 ++++ graphthing-1.3.2.buono/src/fancyfileselection.cc 2008-04-05 16:21:00.000000000 +0200 +@@ -2,6 +2,8 @@ + // fancyfileselection.cc + // + ++#define wxHIDE_READONLY 0x0008 ++ + #include "wx/filedlg.h" + #include "wx/string.h" + #include "wx/window.h" +@@ -30,7 +32,7 @@ + style |= wxHIDE_READONLY; + else if (style & wxSAVE) + style |= wxOVERWRITE_PROMPT; +- SetStyle (style); ++ SetWindowStyle (style); + + if (file_types) { + wxString wc = wxT(""); diff --git a/graphthing.spec b/graphthing.spec new file mode 100644 index 0000000..9fccc3a --- /dev/null +++ b/graphthing.spec @@ -0,0 +1,76 @@ +Name: graphthing +Version: 1.3.2 +Release: 2mamba +Summary: GraphThing is a tool that allows you to create, manipulate and study graphs. +Group: Graphical Desktop/Applications/Educational +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://graph.seul.org +Source: http://graph.seul.org/%{name}-%{version}.tar.bz2 +Patch0: %{name}-1.3.2-wxGTK2.8.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: libwxBase2.8-ansi-devel +BuildRequires: libwxGTK2.8-ansi-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GraphThing is a tool that allows you to create, manipulate and study graphs. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure \ + CXXFLAGS="-fpermissive" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +mkdir -p %{buildroot}/usr/bin +install -m 755 src/graphthing %{buildroot}/usr/bin/ + +# Create the system menu entry +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Name=%{name} +Comment=GraphThing is a tool that allows you to create, manipulate and study +Exec=graphthing +Icon=kig +Terminal=0 +Type=Application +X-KDE-StartupNotify=false +Categories=Applications;Science;Math;Education +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/applications/graphthing.desktop +#%{_mandir}/man1/depend.1.gz +%doc COPYING CREDITS +#README TODO + +%changelog +* Tue Aug 27 2013 Automatic Build System 1.3.2-2mamba +- automatic rebuild by autodist + +* Sat Apr 05 2008 Silvan Calarco 1.3.2-1mamba +- update to 1.3.2 +- changed maintainer +- created patch to build against wxGTK 2.8 + +* Wed Jul 20 2005 Alessandro Ramazzina 1.0-1qilnx +- package created by autospec