[gnome-builder] Initial packaging (#1185301)

David King amigadave at fedoraproject.org
Fri Jan 23 16:00:28 UTC 2015


commit a1b7131210d0b1499069b5ded71152c267ae435b
Author: David King <amigadave at amigadave.com>
Date:   Fri Jan 23 15:59:35 2015 +0000

    Initial packaging (#1185301)
    
    Many thanks to Igor Gnatenko, Mathieu Bridon and Yanko Kaneti for the
    reviews.

 .gitignore                                    |    1 +
 gnome-builder-3.15.4.1-fix-32-bit-build.patch |   31 ++++++
 gnome-builder.spec                            |  135 +++++++++++++++++++++++++
 sources                                       |    1 +
 4 files changed, 168 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d996b97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gnome-builder-3.15.4.1.tar.xz
diff --git a/gnome-builder-3.15.4.1-fix-32-bit-build.patch b/gnome-builder-3.15.4.1-fix-32-bit-build.patch
new file mode 100644
index 0000000..1c57d15
--- /dev/null
+++ b/gnome-builder-3.15.4.1-fix-32-bit-build.patch
@@ -0,0 +1,31 @@
+From f3ac107ccbdbf427d03a3ddbfd6d69bbbaad8b29 Mon Sep 17 00:00:00 2001
+From: David King <amigadave at amigadave.com>
+Date: Fri, 23 Jan 2015 14:12:20 +0000
+Subject: [PATCH] search: Fix build on 32-bit systems
+
+Match the type in the header and source file for
+gb_search_display_group_set_count() to use guint64, not a mixture of
+guint64 and gsize (which is a typedef to unsigned long, and 32 bits wide
+on 32-bit systems).
+
+https://bugzilla.gnome.org/show_bug.cgi?id=743402
+---
+ src/search/gb-search-display-group.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/search/gb-search-display-group.h b/src/search/gb-search-display-group.h
+index aae69b4..dbbcb27 100644
+--- a/src/search/gb-search-display-group.h
++++ b/src/search/gb-search-display-group.h
+@@ -52,7 +52,7 @@ void              gb_search_display_group_add_result    (GbSearchDisplayGroup *g
+ void              gb_search_display_group_remove_result (GbSearchDisplayGroup *group,
+                                                          GbSearchResult       *result);
+ void              gb_search_display_group_set_count     (GbSearchDisplayGroup *group,
+-                                                         gsize                 count);
++                                                         guint64               count);
+ void              gb_search_display_group_unselect      (GbSearchDisplayGroup *group);
+ void              gb_search_display_group_focus_first   (GbSearchDisplayGroup *group);
+ void              gb_search_display_group_focus_last    (GbSearchDisplayGroup *group);
+-- 
+2.2.1
+
diff --git a/gnome-builder.spec b/gnome-builder.spec
new file mode 100644
index 0000000..7750699
--- /dev/null
+++ b/gnome-builder.spec
@@ -0,0 +1,135 @@
+Name:    gnome-builder
+Version: 3.15.4.1
+Release: 1%{?dist}
+Summary: IDE for writing GNOME-based software
+
+Group:   Applications/Editors
+# Note: Checked as of 3.15.4.1
+#
+# Most of GNOME Builder is licensed under the GPLv3+.
+#
+# The following files are licensed under the GPLv2+:
+#     - src/dialogs/gb-close-confirmation-dialog.c
+#     - src/dialogs/gb-close-confirmation-dialog.h
+#     - src/gedit/gedit-menu-stack-switcher.c
+#     - src/gedit/gedit-menu-stack-switcher.h
+#
+# The following files are licensed under the LGPLv2+:
+#     - data/styles/builder-dark.xml (seems like an error, the header speaks about GtkSourceView)
+#     - src/animation/gb-frame-source.c
+#     - src/animation/gb-frame-source.h
+#     - src/fuzzy/fuzzy.c
+#     - src/fuzzy/fuzzy.h
+#     - src/gd/gd-tagged-entry.c
+#     - src/gd/gd-tagged-entry.h
+#     - src/gedit/gedit-close-button.c
+#     - src/gedit/gedit-close-button.h
+#     - src/nautilus/nautilus-floating-bar.c
+#     - src/nautilus/nautilus-floating-bar.h
+#     - src/trie/trie.c
+#     - src/trie/trie.h
+#     - src/util/gb-cairo.c
+#     - src/util/gb-cairo.h
+#     - src/util/gb-glib.h
+#     - src/util/gb-gtk.c
+#     - src/util/gb-gtk.h
+#
+# The following files are licensed under the LGPLv3+:
+#     - src/auto-indent/gb-source-auto-indenter.c
+#     - src/auto-indent/gb-source-auto-indenter.h
+#     - src/auto-indent/gb-source-auto-indenter-c.c
+#     - src/auto-indent/gb-source-auto-indenter-c.h
+#     - src/auto-indent/gb-source-auto-indenter-python.c
+#     - src/auto-indent/gb-source-auto-indenter-python.h
+#     - src/auto-indent/gb-source-auto-indenter-xml.c
+#     - src/auto-indent/gb-source-auto-indenter-xml.h
+#
+# The following files are MIT licensed:
+#     - src/resources/css/markdown.css
+#     - src/resources/js/marked.js
+#
+# The following files are licensed under the CC-BY-SA license:
+#     - data/icons/
+#
+# The following files are licensed under the CC0 license:
+#     - data/org.gnome.Builder.appdata.xml
+#     - data/html-preview.png
+License: GPLv3+ and GPLv2+ and LGPLv3+ and LGPLv2+ and MIT and CC-BY-SA and CC0
+URL:     https://wiki.gnome.org/Apps/Builder
+#VCS:    git:git://git.gnome.org/gnome-builder
+Source0: https://download.gnome.org/sources/%{name}/3.15/%{name}-%{version}.tar.xz
+# https://bugzilla.gnome.org/show_bug.cgi?id=743402
+Patch0:  gnome-builder-3.15.4.1-fix-32-bit-build.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: intltool
+BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(gtksourceview-3.0)
+BuildRequires: pkgconfig(libdevhelp-3.0)
+BuildRequires: pkgconfig(libgit2-glib-1.0)
+BuildRequires: /usr/bin/appstream-util
+
+
+%description
+Builder attempts to be an IDE for writing software for GNOME. It does not try
+to be a generic IDE, but one specialized for writing GNOME software.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+%configure
+make %{?_smp_mflags} V=1
+
+
+%install
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+
+
+%check
+make check
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/org.gnome.Builder.appdata.xml
+desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.Builder.desktop
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files
+%doc NEWS README
+%license COPYING
+%{_bindir}/%{name}
+# AppData is CC0.
+%{_datadir}/appdata/org.gnome.Builder.appdata.xml
+%{_datadir}/applications/org.gnome.Builder.desktop
+%{_datadir}/dbus-1/services/org.gnome.Builder.service
+%{_datadir}/glib-2.0/schemas/org.gnome.builder.editor*.gschema.xml
+%{_datadir}/gtksourceview-3.0/styles/builder*.xml
+# CC-BY-SA.
+%{_datadir}/icons/hicolor/*/apps/builder.png
+%{_datadir}/icons/hicolor/scalable/*/*.svg
+# Not part of the icon theme.
+%{_datadir}/icons/hicolor/scalable/autocomplete
+
+
+
+%changelog
+* Fri Jan 23 2015 David King <amigadave at amigadave.com> - 3.15.4.1-1
+- Initial packaging (#1185301)
diff --git a/sources b/sources
index e69de29..7954534 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e3d01851c327e418ad35f98bb977d773  gnome-builder-3.15.4.1.tar.xz


More information about the scm-commits mailing list