2007-01-10 17:32:50 +01:00
#
2011-04-27 13:31:30 +02:00
# spec file for package anjuta
2007-01-10 17:32:50 +01:00
#
2011-01-10 12:06:38 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-10 17:32:50 +01:00
#
2008-09-06 05:28:01 +02:00
# 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.
2007-01-10 17:32:50 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-05-05 14:31:09 +02:00
2011-07-11 12:32:29 +02:00
2007-01-10 17:32:50 +01:00
Name : anjuta
2011-08-17 23:03:06 +02:00
Version : 3.1.5
# FIXME: Check if the anjuta_logo.png install hack is still needed. See https://bugzilla.gnome.org/show_bug.cgi?id=656470. Last checked in version 3.1.5
2011-07-26 00:06:56 +02:00
Release : 1
2009-12-08 09:37:50 +01:00
License : GPLv2+
2010-10-15 16:56:02 +02:00
Summary : Versatile Integrated Development Environment for GNOME
2009-09-04 00:22:33 +02:00
Url : http://anjuta.sourceforge.net/
Group : Development/Tools/IDE
2011-07-06 11:21:46 +02:00
Source : http://download.gnome.org/sources/anjuta/3.1/%{name} -%{version} .tar.bz2
2009-09-04 00:22:33 +02:00
Source1 : %{name} -rpmlintrc
2011-06-17 01:52:56 +02:00
# PATCH-FEATURE-UPSTREAM anjuta-support-libgda-5.0.patch bgo#652047 dimstar@opensuse.org -- Also support building with libgda-5.0.
Patch0 : anjuta-support-libgda-5.0.patch
2008-09-06 05:28:01 +02:00
BuildRequires : autogen
BuildRequires : binutils-devel
2011-06-17 01:52:56 +02:00
BuildRequires : bison
2008-09-06 05:28:01 +02:00
BuildRequires : fdupes
2011-06-17 01:52:56 +02:00
BuildRequires : flex
2008-09-06 05:28:01 +02:00
BuildRequires : gcc-c++
BuildRequires : gnome-common
BuildRequires : gnome-doc-utils-devel
BuildRequires : gnome-icon-theme
2011-04-27 14:16:26 +02:00
BuildRequires : gobject-introspection-devel
2008-09-06 05:28:01 +02:00
BuildRequires : intltool
BuildRequires : libapr-util1-devel
BuildRequires : libapr1-devel
BuildRequires : libxslt-devel
2009-02-12 16:34:38 +01:00
BuildRequires : perl-gettext
2008-09-06 05:28:01 +02:00
BuildRequires : shared-mime-info
2010-10-15 16:56:02 +02:00
BuildRequires : sqlite3-devel
2008-09-06 05:28:01 +02:00
BuildRequires : subversion-devel
2010-06-04 17:29:44 +02:00
BuildRequires : translation-update-upstream
2008-09-06 05:28:01 +02:00
BuildRequires : update-desktop-files
2008-11-28 14:38:57 +01:00
%ifnarch ia64 s390 s390x
2008-09-06 05:28:01 +02:00
BuildRequires : valgrind-devel
2008-11-28 14:38:57 +01:00
%endif
2011-04-27 14:16:26 +02:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
BuildRequires : pkgconfig(gdl-3.0)
BuildRequires : pkgconfig(gladeui-2.0)
BuildRequires : pkgconfig(glib-2.0)
BuildRequires : pkgconfig(gtk+-3.0)
BuildRequires : pkgconfig(gtksourceview-3.0)
BuildRequires : pkgconfig(libdevhelp-3.0)
2011-06-17 01:52:56 +02:00
BuildRequires : pkgconfig(libgda-5.0)
2011-04-27 14:16:26 +02:00
BuildRequires : pkgconfig(libgraph)
BuildRequires : pkgconfig(libgvc)
2011-07-13 08:06:32 +02:00
BuildRequires : pkgconfig(libvala-0.14)
2011-04-27 14:16:26 +02:00
BuildRequires : pkgconfig(libxml-2.0)
BuildRequires : pkgconfig(neon)
BuildRequires : pkgconfig(vte-2.90)
2007-10-26 20:10:49 +02:00
# Directly required by anjuta:
2009-09-04 00:22:33 +02:00
Requires : autoconf
2007-10-26 20:10:49 +02:00
Requires : autogen
2008-09-06 05:28:01 +02:00
Requires : automake
Requires : gettext
2009-09-04 00:22:33 +02:00
Requires : libtool
2010-08-10 00:42:17 +02:00
# libgda-sqlite is needed by the symbol-db plugin. See bnc#624924.
Requires : libgda-sqlite
2011-02-14 12:24:44 +01:00
Recommends: %{name} -lang
2007-01-10 17:32:50 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-04-27 13:31:30 +02:00
%glib2_gsettings_schema_requires
2007-01-10 17:32:50 +01:00
%description
2010-10-15 16:56:02 +02:00
Anjuta is a versatile Integrated Development Environment (IDE) for the
GNOME desktop. It features a number of advanced programming facilities
includes project management, application wizards, an interactive
debugger, an integrated Glade UI designer, integrated Devhelp API help,
an integrated Valgrind memory profiler, an integrated gprof performance
profiler, a class generator, a powerful source editor, source browsing,
and more.
2011-06-05 11:29:59 +02:00
%package -n glade-catalog-anjuta
2010-10-15 16:56:02 +02:00
License : GPLv2+
Summary : Versatile Integrated Development Environment for GNOME -- Catalog for Glade
Group : Development/Tools/GUI Builders
Requires : %{name} = %{version}
2011-06-05 11:29:59 +02:00
Requires : glade
Supplements: packageand(glade:%{name} -devel)
2010-10-15 16:56:02 +02:00
2011-06-05 11:29:59 +02:00
%description -n glade-catalog-anjuta
2010-10-15 16:56:02 +02:00
Anjuta is a versatile Integrated Development Environment (IDE) for the
GNOME desktop. It features a number of advanced programming facilities
includes project management, application wizards, an interactive
debugger, an integrated Glade UI designer, integrated Devhelp API help,
an integrated Valgrind memory profiler, an integrated gprof performance
profiler, a class generator, a powerful source editor, source browsing,
and more.
This package provides a catalog for Glade, to allow the use the Anjuta
widgets in Glade.
2011-06-05 11:29:59 +02:00
2007-01-10 17:32:50 +01:00
2007-10-19 04:26:19 +02:00
%package devel
2009-12-08 09:37:50 +01:00
License : GPLv2+
2010-10-15 16:56:02 +02:00
Summary : Versatile Integrated Development Environment for GNOME -- Development Files
2007-10-19 04:26:19 +02:00
Group : Development/Tools/IDE
2009-09-04 00:22:33 +02:00
Requires : %{name} = %{version}
2011-02-14 12:24:44 +01:00
Provides : %{name} -doc = %{version}
2011-04-27 13:31:30 +02:00
Obsoletes : %{name} -doc < %{version}
2007-10-19 04:26:19 +02:00
%description devel
2010-10-15 16:56:02 +02:00
Anjuta is a versatile Integrated Development Environment (IDE) for the
GNOME desktop. It features a number of advanced programming facilities
includes project management, application wizards, an interactive
debugger, an integrated Glade UI designer, integrated Devhelp API help,
an integrated Valgrind memory profiler, an integrated gprof performance
profiler, a class generator, a powerful source editor, source browsing,
and more.
2007-10-19 04:26:19 +02:00
2007-08-09 17:43:01 +02:00
%lang_package
2007-01-10 17:32:50 +01:00
%prep
%setup -q
2011-06-17 01:52:56 +02:00
%patch0 -p1
2011-04-27 14:16:26 +02:00
translation-update-upstream
2007-01-10 17:32:50 +01:00
%build
2011-07-26 00:06:56 +02:00
# Needed by patch0
2011-06-17 01:52:56 +02:00
NOCONFIGURE=1 gnome-autogen.sh
2007-10-25 01:44:45 +02:00
%configure \
2011-04-27 13:31:30 +02:00
--disable-static \
--disable-scrollkeeper
make %{?jobs:-j%jobs} V=1
2007-01-10 17:32:50 +01:00
%install
2007-10-19 04:26:19 +02:00
%makeinstall
2009-12-08 09:37:50 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2007-01-10 17:32:50 +01:00
# These should go to defaultdocdir.
2009-09-04 00:22:33 +02:00
rm -r %{buildroot} %{_datadir} /doc
DESTDIR=%{buildroot} mime-info-to-mime
2010-09-11 11:19:24 +02:00
%suse_update_desktop_file anjuta
2011-02-14 12:24:44 +01:00
%find_lang anjuta %{?no_lang_C}
2011-02-14 16:21:10 +01:00
# There's no translation for those yet. If build fails because of non-packaged
# translations, uncomment those lines.
#%%find_lang anjuta-build-tutorial %{?no_lang_C} anjuta.lang
#%%find_lang anjuta-faqs %{?no_lang_C} anjuta.lang
2011-02-14 12:24:44 +01:00
%find_lang anjuta-manual %{?no_lang_C} anjuta.lang
2011-08-17 23:03:06 +02:00
# make install links the anjuta_logo wrongly around. Let's copy the file from the right location
# no worries about linking here: fdupes will do 'the right thing(tm)' for us.
for lang in %{buildroot} /%{_datadir} /gnome/help/anjuta-manual/*; do
cp --remove-destination %{buildroot} %{_datadir} /pixmaps/anjuta/anjuta_logo.png $lang/anjuta_logo.png
done
2009-09-04 00:22:33 +02:00
find %{buildroot} -type f -name " * . l a " -delete -print
%fdupes %{buildroot}
2007-08-09 17:43:01 +02:00
2007-01-10 17:32:50 +01:00
%clean
2009-09-04 00:22:33 +02:00
rm -rf %{buildroot}
2007-01-10 17:32:50 +01:00
%post
2008-04-03 10:35:10 +02:00
/sbin/ldconfig
2011-04-27 14:16:26 +02:00
%glib2_gsettings_schema_post
2011-02-14 12:24:44 +01:00
%desktop_database_post
%icon_theme_cache_post
%icon_theme_cache_post gnome
%mime_database_post
2007-01-10 17:32:50 +01:00
%postun
2008-04-03 10:35:10 +02:00
/sbin/ldconfig
2011-04-27 14:16:26 +02:00
%glib2_gsettings_schema_postun
2011-02-14 12:24:44 +01:00
%desktop_database_postun
%icon_theme_cache_postun
%icon_theme_cache_postun gnome
%mime_database_postun
2009-07-31 18:28:10 +02:00
2011-04-27 13:31:30 +02:00
%files
2007-01-10 17:32:50 +01:00
%defattr (-,root,root)
2009-02-20 23:14:15 +01:00
%doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO
2011-02-14 12:24:44 +01:00
%dir %{_datadir} /gnome/
%dir %{_datadir} /gnome/help/
%dir %{_datadir} /gnome/help/anjuta-build-tutorial/
%doc %{_datadir} /gnome/help/anjuta-build-tutorial/C/
%dir %{_datadir} /gnome/help/anjuta-faqs/
%doc %{_datadir} /gnome/help/anjuta-faqs/C/
%dir %{_datadir} /gnome/help/anjuta-manual/
%doc %{_datadir} /gnome/help/anjuta-manual/C/
2011-04-27 14:16:26 +02:00
%{_bindir} /anjuta
%{_bindir} /anjuta-launcher
%{_bindir} /anjuta-tags
%{_libdir} /anjuta/
%{_libdir} /libanjuta-3.so.*
%{_libdir} /girepository-1.0/Anjuta-3.0.typelib
%{_libdir} /girepository-1.0/IAnjuta-3.0.typelib
%{_datadir} /anjuta/
2007-01-10 17:32:50 +01:00
%{_datadir} /applications/*.desktop
%{_datadir} /mime/packages/*.xml
2011-04-27 14:16:26 +02:00
%{_datadir} /pixmaps/anjuta/
2011-04-27 13:31:30 +02:00
%{_datadir} /glib-2.0/schemas/*.gschema.xml
2011-02-14 12:24:44 +01:00
# When removing the gnome icon theme icons, don't forget to remove the %%icon_theme_cache_post(un) call for them
# Somehow I think that this is wrong:
2010-08-10 00:42:17 +02:00
%dir %{_datadir} /icons/gnome/*/mimetypes/
%{_datadir} /icons/gnome/*/mimetypes/*.png
2007-10-19 04:26:19 +02:00
%{_datadir} /icons/gnome/scalable/mimetypes/*.svg
2010-08-10 00:42:17 +02:00
%{_datadir} /icons/hicolor/*/apps/*.png
2007-10-19 04:26:19 +02:00
%{_datadir} /icons/hicolor/scalable/apps/*.svg
2007-01-10 17:32:50 +01:00
%doc %{_mandir} /man?/*.*
2010-10-15 16:56:02 +02:00
2011-06-05 11:29:59 +02:00
%files -n glade-catalog-anjuta
2010-10-15 16:56:02 +02:00
%defattr (-, root, root)
2011-06-05 11:29:59 +02:00
%{_libdir} /glade/modules/libgladeanjuta.so
%{_datadir} /glade/catalogs/anjuta-glade.xml
2007-10-19 04:26:19 +02:00
%files devel
%defattr (-, root, root)
2011-02-14 12:24:44 +01:00
%doc %{_datadir} /gtk-doc/html/libanjuta/
2011-04-27 13:31:30 +02:00
%{_includedir} /libanjuta-3.0/
2007-10-19 04:26:19 +02:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/*.pc
2011-04-27 14:16:26 +02:00
%{_datadir} /gir-1.0/*.gir
2007-01-10 17:32:50 +01:00
2007-08-09 17:43:01 +02:00
%files lang -f %name.lang
2008-02-01 00:15:19 +01:00
2007-04-18 18:02:06 +02:00
%changelog