diff --git a/.cvsignore b/.cvsignore index e69de29..1b3b395 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +nemiver-0.3.0.tar.bz2 diff --git a/nemiver.spec b/nemiver.spec new file mode 100644 index 0000000..2467408 --- /dev/null +++ b/nemiver.spec @@ -0,0 +1,177 @@ +Name: nemiver +Version: 0.3.0 +Release: 6%{?dist} +Summary: A C/C++ Debugger for GNOME - point, click, debug! + +Group: Development/Debuggers +License: GPL +URL: http://home.gna.org/nemiver/ + +Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.3/%{name}-%{version}.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libgtksourceviewmm-devel >= 0.3.0 +BuildRequires: gdb +BuildRequires: boost-devel +BuildRequires: gnome-vfs2-devel >= 2.14 +BuildRequires: libgtop2-devel >= 2.14 +BuildRequires: sqlite-devel >= 3.0 +BuildRequires: vte-devel >= 0.12.0 +BuildRequires: libglademm24-devel >= 2.6.0 +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: perl(XML::Parser) + +Requires(pre): GConf2 + +Requires(post): GConf2 + +Requires(preun): GConf2 + +## Needs hicolor-icon-theme so that the parent %%_datadir/icons/hicolor +## and its subtree directories are properly owned. +Requires: hicolor-icon-theme +Requires: gdb + +## Mostly taken from its site index... :] +%description +Nemiver is an ongoing effort to write 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 +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +## Needs these for the various #include directives in its headers, as well +## as pkgconfig dependencies... +Requires: boost-devel +Requires: glibmm24-devel >= 2.8.5 +Requires: libxml2-devel >= 2.6.22 +Requires: gnome-vfs2-devel >= 2.14 + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + + +%build +%configure --disable-static --disable-schemas-install +## Fix RPATH hardcoding. +sed -ie 's|^hardcode_libdir_flag_spec=.*$|hardcode_libdir_flag_spec=""|g' libtool +sed -ie 's|^runpath_var=LD_RUN_PATH$|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +%find_lang %{name} +desktop-file-install --vendor fedora \ + --dir %{buildroot}%{_datadir}/applications \ + --remove-category=Application \ + --delete-original \ + %{buildroot}/%{_datadir}/applications/%{name}.desktop + + +%clean +rm -rf %{buildroot} + + +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-dbgperspective.schemas >/dev/null ||: + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-workbench.schemas >/dev/null ||: +fi + + +%post +/sbin/ldconfig +export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) +gconftool-2 --makefile-install-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-dbgperspective.schemas >/dev/null ||: +gconftool-2 --makefile-install-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-workbench.schemas >/dev/null ||: +touch --no-create %{_datadir}/icons/hicolor ||: +%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: + + +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-dbgperspective.schemas >/dev/null ||: + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/%{name}-workbench.schemas >/dev/null ||: +fi + + +%postun +/sbin/ldconfig +touch --no-create %{_datadir}/icons/hicolor ||: +%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING COPYRIGHT NEWS README TODO +%{_bindir}/%{name} +%exclude %{_libdir}/*.la +%{_libdir}/libnemivercommon.so.* +%{_libdir}/%{name}/ +%{_sysconfdir}/gconf/schemas/%{name}-dbgperspective.schemas +%{_sysconfdir}/gconf/schemas/%{name}-workbench.schemas +%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.* +%{_datadir}/%{name}/ + +%files devel +%defattr(-,root,root,-) +%doc COPYING +%{_libdir}/libnemivercommon.so +%{_libdir}/pkgconfig/libnemivercommon.pc +%{_includedir}/%{name}/ + + +%changelog +* Sat Feb 17 2007 Peter Gordon - 0.3.0-6 +- Remove chcon invocation entirely; as it is not needed. +- Don't install libtool archives (.la files) of the plugins. + +* Tue Feb 13 2007 Peter Gordon - 0.3.0-5 +- chcon call should be in %%post, not %%install + +* Mon Feb 12 2007 Peter Gordon - 0.3.0-4 +- Mark the libdbgperspectiveplugin.so plugin with a textrel_shlib_t context to + workaround SELinux execmod denials. +- Hardcoded RPATHs are bad (especially when they are simply repeats of the + standard LIBDIR stuff); so get rid of them in the supplied libtool with a + couple of sed incantantions from the packaging guidelines. + +* Wed Jan 24 2007 Peter Gordon - 0.3.0-3 +- Another fix from Michael Schwendt: Don't mark installed GConf schemas as + %%config. + +* Tue Jan 23 2007 Peter Gordon - 0.3.0-2 +- Fix issues noted in review comments (Thanks to Michael Schwendt, #223943): + (1) Add %%defattr line to the -devel subpackage %%files list. + (2) Fix consistency of schemas listing by not using a glob in the + %%files list, since they are separate in the scriplets' gconftool-2 + calls. + (3) Add gettext and perl(XML::Parser) BuildRequires to fix mock building. + (4) Add and explicitly version the Requires for the -devel subpackage due + to various dependencies in the installed .pc file: libxml2-devel, + glibmm24-devel, gnome-vfs2-devel. (glib2-devel is also needed, but that + is pulled in as as dependency of glibmm24-devel.) + +* Mon Jan 22 2007 Peter Gordon - 0.3.0-1 +- Initial packaging for Fedora Extras. diff --git a/sources b/sources index e69de29..71f0ea2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +289d46e97c125b95fdc5de9dd9736d7c nemiver-0.3.0.tar.bz2