anjuta/anjuta.spec

387 lines
14 KiB
RPMSpec
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package anjuta (Version 2.2.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: anjuta
BuildRequires: autogen binutils-devel devhelp-devel fdupes gcc-c++ gdl-devel gnome-build-devel gnome-common gnome-doc-utils-devel gnome-icon-theme gnutls-devel graphviz-devel gtk-doc gtksourceview18-devel intltool libapr-util1-devel libapr1-devel libglade2-devel libgladeui-1_0-devel libgnomeprintui-devel libgnomeui-devel libneon-devel libwnck-devel libxslt-devel pcre-devel perl-XML-Parser scrollkeeper shared-mime-info subversion-devel update-desktop-files valgrind-devel vte-devel
# FIXME: Introduced by other packages:
BuildRequires: sqlite-devel
License: GPL v2 or later
Group: Development/Tools/IDE
# Directly required by anjuta:
Requires: autogen
Requires: automake autoconf libtool gettext alsa alsa-devel audiofile devhelp esound esound-devel gconf2 gconf2-devel gconf2-doc gnome-terminal gnome-vfs2 gnome-vfs2-devel gnome-vfs2-doc libart_lgpl libart_lgpl-devel libbonobo libbonobo-devel libbonobo-doc libbonoboui libbonoboui-devel libbonoboui-doc libglade2 libglade2-devel libglade2-doc libgnome libgnome-devel libgnome-doc libgnomecanvas libgnomecanvas-devel libgnomecanvas-doc libgnomeui libgnomeui-devel libgnomeui-doc libwnck libwnck-devel libxml2 libxml2-devel openssl openssl-devel orbit2 orbit2-devel popt popt-devel libgnomeprint libgnomeprint-devel libgnomeprint-doc libgnomeprintui libgnomeprintui-devel libgnomeprintui-doc yelp gnome-doc-utils
Version: 2.2.2
Release: 60
Requires: %{name}-lang = %{version}
Summary: GNOME IDE for C and C++
Source: anjuta-%{version}.tar.bz2
Source1: README.SuSE
# PATCH-FIX-UPSTREAM abuild.patch bgo487683 -- we don't patch test-class.cpp because it's a test class
Patch0: abuild.patch
# PATCH-FIX-UPSTREAM no-bins-in-usershare.patch -- need a recent (more recent than 10.3) devel system to see if this is worth filing upstream
Patch1: no-bins-in-usrshare.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=489798
Patch2: anjuta-svn-no-svn-config.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=489798
Patch3: anjuta-invalid-comparison.patch
Url: http://anjuta.sourceforge.net/
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.
Authors:
--------
Naba kumar <naba@gnome.org>
St<EFBFBD>phane D<EFBFBD>murget <demurgets@free.fr>
Andy Piper <andy.piper@freeuk.com>
Hector Rivera Falu <misha@phreaker.net>
Luca Bellonda <lbell@tsc4.com>
Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>
%package devel
Summary: GNOME IDE for C and C++
Group: Development/Tools/IDE
Requires: %{name} = %{version} libglade2-devel libgnomeui-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.
Authors:
--------
Naba kumar <naba@gnome.org>
St<EFBFBD>phane D<EFBFBD>murget <demurgets@free.fr>
Andy Piper <andy.piper@freeuk.com>
Hector Rivera Falu <misha@phreaker.net>
Luca Bellonda <lbell@tsc4.com>
Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>
%package doc
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.
Authors:
--------
Naba kumar <naba@gnome.org>
St<EFBFBD>phane D<EFBFBD>murget <demurgets@free.fr>
Andy Piper <andy.piper@freeuk.com>
Hector Rivera Falu <misha@phreaker.net>
Luca Bellonda <lbell@tsc4.com>
Biswapesh Chattopadhyay <biswapesh_chatterjee@tcscal.co.in>
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2
%patch3
cp -a %{S:1} .
# FIXME: Ugly hack!
# libbfd has two instances:
# - static library, which is not compiled with PIC and is unusable for
# shared libanjuta library.
# - dynamic library, which is binutils version specific.
# We have to use dynamic library and make libanjuta dependent on
# specific version of binutils.
sed -i "s/-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic/-l$(echo /usr/%{_lib}/libbfd*.so | sed 's:.*/lib::;s/\.so//') -Wl,-Bstatic -liberty -Wl,-Bdynamic/" configure.in
%build
autoreconf -f -i
# needed for anjuta-1.2.4a:
# This _bindir monstrosity will go away when no-bins-in-user-share.patch does.
# needed for anjuta-2.2.1:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
#export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: Build as root modifies system!
# anjuta-1.2.4a: --disable-scrollkeeper does not work properly.
%configure\
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
# These should go to defaultdocdir.
rm -r $RPM_BUILD_ROOT%{_datadir}/doc
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
rm -r $RPM_BUILD_ROOT/%{_libdir}/*.*a
# This works in conjunction with no-bins-in-usershare.patch. When that
# patch goes away, so too will the following:
mv $RPM_BUILD_ROOT/%{_datadir}/anjuta/scripts/anjuta-tags $RPM_BUILD_ROOT/%{_bindir}
%suse_update_desktop_file -C "" -D anjuta/anjuta-manual.xml -G "Integrated Development Environment" anjuta Development IDE GNOME
%find_lang anjuta
%find_lang anjuta-faqs anjuta.lang
%find_lang anjuta-manual anjuta.lang
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%postun
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 README.SuSE 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
%dir %{_datadir}/omf/anjuta-manual
%{_datadir}/omf/anjuta-manual/*.omf
%doc %{_mandir}/man?/*.*
%files devel
%defattr(-, root, root)
%dir %{_includedir}/libanjuta-1.0/libanjuta
%dir %{_includedir}/libanjuta-1.0
%{_includedir}/libanjuta-1.0/libanjuta/*.h
%dir %{_includedir}/libanjuta-1.0/libanjuta/interfaces
%{_includedir}/libanjuta-1.0/libanjuta/interfaces/*.h
%{_includedir}/libanjuta-1.0/libanjuta/interfaces/*.idl
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libanjuta
%files lang -f %name.lang
%changelog
* Thu Jan 31 2008 sbrabec@suse.cz
- Devhelp documentation moved to the separate package (bnc#248813).
* Thu Nov 01 2007 sbrabec@suse.cz
- Build with gtksourceview18.
* Fri Oct 26 2007 sbrabec@suse.cz
- Require autogen (#336176).
- Fixed shared libbfd detection.
* Wed Oct 24 2007 sbrabec@suse.cz
- Build all optional plugins except GtkSourceView: subversion,
glade, class inheritance, performance profiler, Valgrind.
* Wed Oct 24 2007 maw@suse.de
- Update to version 2.2.2:
+ Bugs (bugzilla.gnome.org) fixed: #477976, #427104, #479020,
[#478238], #456465, #466031, #343522, #487112, #486597, #482067,
[#477976], #427104, #487854, #474811, #488061, and #488928.
* Wed Oct 17 2007 maw@suse.de
- Add gdl-devel and libxslt-devel to the list of build requirements
- Remove configure.patch
- Don't attempt to install files that don't exist
- Split out a -devel subpackage
- Add abuild.patch
- Add no-bins-in-usrshare.patch
- Minor .spec cleanups.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Mon Oct 08 2007 mauro@suse.de
- Update to version 2.2.1:
* Fixed lots of memory leaks (thanks valgrind)
* Fixed crasher on shutdown
* Avoid an endless loop if clearing all breakpoints while the programm
is running
* Fixed help activation (bug #451557).
* Fixed compiler warnings.
* Fixed #423467 (View->Tasks menu items are not checked on startup)
* Fixed anjuta-plugin template plugin by moving the "\" out of the [IF] block
* Fixes bug #433552: crash in Anjuta IDE: add file test.h in project on
generic Makefile.
* Disables 'Add to project' in wizards for projects that can not add sources.
* Fixed bug #450217: Refreshing tree brings to random crashes
* Fixed bug 453931 - crash in Anjuta IDE: Trying some c++ exampled
* Fixed bug 457093 - crash in Anjuta IDE: just typed in some text
* Fri Aug 10 2007 coolo@suse.de
- put the Version before the use of %%version
* Mon Aug 06 2007 maw@suse.de
- Split out a -lang subpackage
- Use %%fupes.
* Mon Jun 18 2007 maw@suse.de
- Add abuild.patch (#241836).
* Mon Apr 23 2007 pgajdos@suse.cz
- fixed new gcc warnings
- literal-comparsion.patch
* Wed Apr 18 2007 pgajdos@suse.cz
- fixed 'array subscript is above array bounds' [#248868]
- array-index.patch
* Thu Jan 04 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Mon Oct 16 2006 schwab@suse.de
- Make sure config.rpath is present.
* Fri Feb 24 2006 sbrabec@suse.cz
- Improved Categories.
* Fri Feb 17 2006 sreeves@suse.de
- Update .desktop file (Name, GenericName, Comment, DocPath)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 sbrabec@suse.cz
- Updated to version 1.2.4a.
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Wed Oct 26 2005 sbrabec@suse.cz
- Updated to version 1.2.4 (#118228).
* Tue Aug 02 2005 ro@suse.de
- intltoolize with force
* Mon Jun 20 2005 sbrabec@suse.cz
- Removed mkinstalldirs patch - fixed upstream (#56985).
* Mon May 16 2005 sbrabec@suse.cz
- Updated to version 1.2.3.
* Wed Apr 27 2005 meissner@suse.de
- fixed buffer overflow and one aliasing issue.
* Tue Apr 05 2005 sbrabec@suse.cz
- Do not require linc.
* Mon Nov 08 2004 ro@suse.de
- make it build with new intltool
* Tue Oct 26 2004 ro@suse.de
- locale rename: no -> nb
* Tue Sep 07 2004 sbrabec@suse.cz
- Generated shared mime info.
* Mon Jul 12 2004 sbrabec@suse.cz
- Fixed default applications for GNOME2 (bug #42852).
http://sourceforge.net/tracker/index.php?func=detail&aid=987912&group_id=14222&atid=314222
- Added gnome-terminal, yelp and devhelp to Requires.
- Added *-doc GNOME developer documentation to Requires.
* Tue Jun 15 2004 sbrabec@suse.cz
- Worked around missing mkinstalldirs (#42037, #41985).
* Thu Jun 10 2004 sbrabec@suse.cz
- Updated to version 1.2.2.
- Fixed IA64 crash on start (#41854).
* Mon Apr 26 2004 ro@suse.de
- fix function return type to void
* Wed Mar 17 2004 sbrabec@suse.cz
- Fixed scrollkeeper calling conventions (#36215).
* Mon Mar 15 2004 sbrabec@suse.cz
- FHS 2.3 fix (mandir, infodir, #35821).
* Mon Mar 15 2004 sbrabec@suse.cz
- Added package set sufficient for compilation to requirements (#35900),
* Thu Feb 19 2004 ro@suse.de
- fix plugindir for lib64
* Thu Feb 12 2004 sbrabec@suse.cz
- Updated to version 1.2.1 (GNOME2).
- Added anjuta_update_global_tags.
* Sat Aug 16 2003 adrian@suse.de
- add Categories
* Fri Jul 25 2003 hhetter@suse.de
- %%_lib fixes
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Fri Jun 20 2003 ro@suse.de
- added directory to filelist
* Tue Jun 03 2003 ro@suse.de
- add manpages to filelist
- remove unpackaged files from buildroot
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <jade_dsl> to <openjade>
- changed neededforbuild <sp> to <opensp>
* Wed Nov 06 2002 hhetter@suse.de
- update to version 1.0.0
- package split en/ja documentation and translation
- completed scrollkeeper installation
- use correct kde datadir
- fix docbook usage
- full filelist rework
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Thu Aug 15 2002 ro@suse.de
- removed gnome-utils from neededforbuild
* Tue Aug 13 2002 hhetter@suse.de
- fix neededforbuild
* Fri Jul 26 2002 adrian@suse.de
- fix neededforbuild
* Mon Jul 01 2002 meissner@suse.de
- auto* rerun, added intltool to neededforbuild
* Mon Jul 01 2002 hhetter@suse.de
- updated to version 0.1.9
* Tue May 28 2002 ro@suse.de
- removed gpc from neededforbuild
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Dec 05 2001 hhetter@suse.de
- update to version 0.1.8
* first version after merging with gIDE
* Fri Aug 24 2001 hhetter@suse.de
- update to version 0.1.7, changes include:
* translation and documentation updates
* fixed bugs preventing use of the wizard
* cleaned up user-interface
- filelist corrections and updates
- functionality test on i386
* Mon Aug 13 2001 hhetter@suse.de
- removed no longer needed patch
- updated to version 0.1.6
* Wed Jun 20 2001 hhetter@suse.de
- fixed redundand docdir
* Thu Apr 05 2001 uli@suse.de
- ditched reimplementation of strcasestr (harmful with recent gccs)
- fixed passing of RPM_OPT_FLAGS
* Thu Mar 29 2001 hhetter@suse.de
- update to version 0.1.4
- use bz2
- filelist review
* Wed Mar 14 2001 hhetter@suse.de
- changed docdir from gnome/anjuta/ to anjuta/
- filelist corrections
* Mon Mar 12 2001 hhetter@suse.de
- Update to version 0.1.3
- filelist corrections/updates
- testrun on 7.1
* Mon Jan 22 2001 hhetter@suse.de
- inital build