OBS User unknown 2007-12-13 13:02:11 +00:00 committed by Git OBS Bridge
parent dc9a2d1567
commit 56aaf7b5b2
3 changed files with 28 additions and 5 deletions

View File

@ -0,0 +1,11 @@
--- src/main.c
+++ src/main.c
@@ -379,6 +379,8 @@
}
/* cleanup on the hangup signal */
signal(SIGHUP, myexit);
+ /* and on termination signal */
+ signal(SIGTERM, myexit);
/* if the database path is relative and it can't be created */
if (reffile[0] != '/' && access(".", WRITE) != 0) {

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 10 12:54:45 CET 2007 - pth@suse.de
- Cleanup on receiving SIGTERM (#339807) and actually include
the patch.
- Don't remove buildroot in install section
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 30 02:30:07 CEST 2007 - ro@suse.de Fri Mar 30 02:30:07 CEST 2007 - ro@suse.de

View File

@ -12,18 +12,19 @@
Name: cscope Name: cscope
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
License: BSD License and BSD-like License: BSD 3-Clause
Group: Development/Tools/Navigators Group: Development/Tools/Navigators
Autoreqprov: on AutoReqProv: on
Version: 15.6 Version: 15.6
Release: 23 Release: 65
Summary: Interactive Tool for Browsing C Source Code Summary: Interactive Tool for Browsing C Source Code
Source: cscope-%{version}.tar.bz2 Source: cscope-%{version}.tar.bz2
Patch1: cscope-null.patch Patch1: cscope-null.patch
Patch2: cscope-%{version}-gcc-warnings.patch Patch2: cscope-%{version}-gcc-warnings.patch
Patch3: cscope-%{version}-vpath.patch Patch3: cscope-%{version}-vpath.patch
Patch4: cscope-%{version}-sprintf.patch Patch4: cscope-%{version}-sprintf.patch
URL: http://cscope.sourceforge.net/ Patch5: cscope-cleanup_on_sigterm.patch
Url: http://cscope.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _prefix /usr %define _prefix /usr
@ -47,6 +48,7 @@ Authors:
%patch2 %patch2
%patch3 %patch3
%patch4 %patch4
%patch5
%build %build
%{?suse_update_config:%{suse_update_config}} %{?suse_update_config:%{suse_update_config}}
@ -55,7 +57,6 @@ CFLAGS="$RPM_OPT_FLAGS" \
make make
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 src/cscope $RPM_BUILD_ROOT%{_prefix}/bin/cscope install -m 755 src/cscope $RPM_BUILD_ROOT%{_prefix}/bin/cscope
@ -71,6 +72,10 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/bin/cscope %{_prefix}/bin/cscope
%changelog %changelog
* Mon Dec 10 2007 - pth@suse.de
- Cleanup on receiving SIGTERM (#339807) and actually include
the patch.
- Don't remove buildroot in install section
* Fri Mar 30 2007 - ro@suse.de * Fri Mar 30 2007 - ro@suse.de
- added ncurses-devel to buildreq - added ncurses-devel to buildreq
* Fri Nov 10 2006 - ro@suse.de * Fri Nov 10 2006 - ro@suse.de