File gnome-builder.spec of Package gnome-builder

#
# spec file for package gnome-builder
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           gnome-builder
Version:        3.16.3
Release:        0
Summary:        GNOME Builder - IDE
License:        GPL-3.0+ and GPL-2.0+ and LGPL-3.0+ and LGPL-2.1+ and MIT and CC-BY-SA-3.0 and CC0-1.0
Group:          Development/IDE
Url:            https://wiki.gnome.org/Apps/Builder
Source:         http://download.gnome.org/sources/gnome-builder/3.16/%{name}-%{version}.tar.xz
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  intltool >= 0.50.0
BuildRequires:  llvm-clang-devel
BuildRequires:  python3-devel
BuildRequires:  pkgconfig(gio-2.0) >= 2.44.0
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.44.0
BuildRequires:  pkgconfig(gjs-1.0) >= 1.42.0
BuildRequires:  pkgconfig(gjs-internals-1.0) >= 1.42.0
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.16.0
BuildRequires:  pkgconfig(libdevhelp-3.0) >= 3.15.92
BuildRequires:  pkgconfig(libgit2-glib-1.0) >= 0.0.24
BuildRequires:  pkgconfig(pygobject-3.0) >= 3.0.0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Builder is a new IDE for GNOME that is focused on bringing the power of our platform to more developers than ever before.

%lang_package
%prep
%setup -q

%build
%configure --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
# We package those files using regular %%doc method
rm -rf %{buildroot}%{_datadir}/doc/
%find_lang %{name}

%post
%{glib2_gsettings_schema_post}
%icon_theme_cache_post
%desktop_database_post

%postun
%{glib2_gsettings_schema_postun}
%icon_theme_cache_postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_datadir}/appdata/org.gnome.Builder.appdata.xml
%{_datadir}/applications/org.gnome.Builder.desktop
%{_datadir}/dbus-1/services/org.gnome.Builder.service
%{_datadir}/gir-1.0/Ide-1.0.gir
%{_datadir}/glib-2.0/schemas/org.gnome.builder.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.builder.editor.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.builder.editor.language.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.builder.code-insight.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.builder.project-tree.gschema.xml
%{_datadir}/gtk-doc/html/libide/
%{_datadir}/gtksourceview-3.0/styles/builder-dark.xml
%{_datadir}/gtksourceview-3.0/styles/builder.xml
%{_datadir}/icons/hicolor/
%{_libdir}/pkgconfig/libide-1.0.pc

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by