anjuta/anjuta.spec
Dominique Leuenberger 4266a60f63 Accepting request 22549 from home:dimstar:branches:GNOME:Factory
Copy from home:dimstar:branches:GNOME:Factory/anjuta via accept of submit request 22549 revision 5.
Request was accepted with message:
Forwarding to openSUSE:Factory

OBS-URL: https://build.opensuse.org/request/show/22549
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/anjuta?expand=0&rev=36
2009-10-18 10:46:08 +00:00

192 lines
5.9 KiB
RPMSpec

#
# spec file for package anjuta (Version 2.28.0.0)
#
# Copyright (c) 2009 SUSE LINUX Products 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: anjuta
Version: 2.28.0.0
Release: 1
License: GPL v2 or later
Summary: GNOME IDE for C and C++
Url: http://anjuta.sourceforge.net/
Group: Development/Tools/IDE
Source: anjuta-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM bcn#547672 dimstar@opensuse.org -- Patch taken from git commit f8dc87e
Patch0: anjuta-symboldb-fix.patch
# PATCH-FIX-UPSTREAM bnc#547917 bgo#597318 dimstar@opensuse.org -- anjuta-launcher was renamed. Patch fixes X crashing.
Patch1: anjuta-launchername.patch
# PATCH-FIX-UPSTREAM bgo#597815 dimstar@opensuse.org -- Crash due to malformed UI definition file
Patch2: anjuta-gtklabel-crash.patch
BuildRequires: autogen
BuildRequires: binutils-devel
BuildRequires: devhelp-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gdl-devel
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-icon-theme
BuildRequires: graphviz-devel
BuildRequires: gtksourceview-devel
BuildRequires: intltool
BuildRequires: libapr-util1-devel
BuildRequires: libapr1-devel
BuildRequires: libgda-4_0-devel
BuildRequires: libgladeui-1_0-devel
BuildRequires: libneon-devel
BuildRequires: libunique-devel
BuildRequires: libwnck-devel
BuildRequires: libxslt-devel
BuildRequires: perl-gettext
BuildRequires: shared-mime-info
BuildRequires: subversion-devel
BuildRequires: update-desktop-files
%ifnarch ia64 s390 s390x
BuildRequires: valgrind-devel
%endif
BuildRequires: vte-devel
Requires: %{name}-lang = %{version}
# Directly required by anjuta:
Requires: autoconf
Requires: autogen
Requires: automake
Requires: gettext
Requires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.
%package devel
License: GPL v2 or later
Summary: GNOME IDE for C and C++
Group: Development/Tools/IDE
Requires: %{name} = %{version}
Requires: gconf2-devel
Requires: gdl-devel
Requires: gtk2-devel
%description devel
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.
%package doc
License: GPL v2 or later
Summary: GNOME IDE for C and C++
Group: Development/Tools/IDE
Requires: %{name} = %{version}
%description doc
Anjuta is a versatile integrated development environment (IDE) for C
and C++. It has been written for GTK and GNOME and features a number of
advanced programming facilities. It is basically a GUI interface for
the collection of command line programming utilities and tools
available for the GNU system. These are usually run via a text console
and can be unfriendly to use.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure\
--disable-static \
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
# These should go to defaultdocdir.
rm -r %{buildroot}%{_datadir}/doc
DESTDIR=%{buildroot} mime-info-to-mime
%suse_update_desktop_file -C "" -G "Integrated Development Environment" anjuta Development IDE GNOME
%find_lang anjuta
%find_lang anjuta-build-tutorial anjuta.lang
%find_lang anjuta-faqs anjuta.lang
%find_lang anjuta-manual anjuta.lang
%find_gconf_schemas
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%postun
/sbin/ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog FUTURE NEWS README doc/ScintillaDoc.html TODO
%{_bindir}/*
%{_libdir}/anjuta
%{_libdir}/*.so.*
%{_datadir}/anjuta
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/anjuta
# Somehow I think that this is wrong.
%dir %{_datadir}/icons/gnome/48x48/mimetypes/
%{_datadir}/icons/gnome/48x48/mimetypes/*.png
%{_datadir}/icons/gnome/scalable/mimetypes/*.svg
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%doc %{_mandir}/man?/*.*
%{_libdir}/glade3/modules/*
%{_datadir}/glade3/catalogs/*
%files devel
%defattr(-, root, root)
%{_includedir}/libanjuta-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libanjuta
%files lang -f %name.lang
%changelog