nemiver/nemiver.spec

128 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nemiver (Version 0.7.3)
#
# Copyright (c) 2010 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/
#
Url: http://home.gna.org/nemiver/
Name: nemiver
Version: 0.7.3
Release: 2
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gdb
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtkmm2-devel
BuildRequires: intltool
BuildRequires: libglademm-devel
BuildRequires: libgtksourceviewmm-2_0-devel
BuildRequires: libgtop-devel
BuildRequires: sqlite-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: vte-devel
%if 0%{?suse_version} >= 1100
BuildRequires: ghex-devel
%endif
BuildRequires: fdupes
Requires: gdb
Group: Development/Tools/Debuggers
Summary: Nemiver graphical debugger
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM nemiver-gcc45.patch dimstar@opensuse.org -- Fix build with GCC 4.5. Taken from upstream.
Patch0: nemiver-gcc45.patch
Requires: %{name}-lang = %{version}
%gconf_schemas_prereq
%description
Nemiver is a standalone graphical debugger that integrates well in the
GNOME desktop environment. It currently features a backend which uses
the well known GNU Debugger gdb to debug C / C++ programs.
%package devel
License: GPLv2+
Summary: Nemiver graphical debugger - Development files
Requires: %{name} = %{version}
Requires: glib2-devel
Requires: glibmm2-devel
Requires: libgtop-devel
Group: Development/Tools/Debuggers
%description devel
Nemiver is a standalone graphical debugger that integrates well in the
GNOME desktop environment. It currently features a backend which uses
the well known GNU Debugger gdb to debug C / C++ programs.
This package contains the development files to build debugger backend.
%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build
#%{suse_update_config -f}
%configure --disable-static --with-pic\
--disable-scrollkeeper \
--enable-sourceviewmm2
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%find_gconf_schemas
%suse_update_desktop_file -i nemiver Development
%find_lang %{name}
# remove la files
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
# create symlinks for man pages
%fdupes -s $RPM_BUILD_ROOT/%_mandir
# create hardlinks for the rest
%fdupes $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO
%{_prefix}/bin/*
%{_libdir}/nemiver
%{_datadir}/nemiver
%{_datadir}/applications/*
%{_datadir}/icons/*/*/apps/nemiver.*
%{_mandir}/man1/nemiver.1.gz
%files devel
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO
%dir %{_includedir}/nemiver
%{_includedir}/nemiver/*
#%{_libdir}/pkgconfig/libnemivercommon.pc
%files lang -f %{name}.lang
%changelog