1
0
forked from pool/gperiodic

Accepting request 459392 from science

- Update to new upstream release 3.0.2

OBS-URL: https://build.opensuse.org/request/show/459392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gperiodic?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-03-08 00:11:57 +00:00 committed by Git OBS Bridge
commit 8da2e970ae
5 changed files with 12 additions and 49 deletions

View File

@ -1,41 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2015-03-15 11:57:37.631698089 +0100
fix blatant errors
gcc:
gperiodic.c: In function 'menu_file_exit':
gperiodic.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
}
gperiodic.c: In function 'main_prog':
gperiodic.c:481:9: warning: 'buff' may be used uninitialized in this function [-Wmaybe-uninitialized]
free(buff);
rpmlint:
I: Program returns random data in a function
E: gperiodic no-return-in-nonvoid-function gperiodic.c:169
---
gperiodic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: gperiodic-3.0.0/gperiodic.c
===================================================================
--- gperiodic-3.0.0.orig/gperiodic.c
+++ gperiodic-3.0.0/gperiodic.c
@@ -166,6 +166,7 @@ void display_element_dialog( GtkWidget *
GCallback menu_file_exit(void)
{
main_window_exit(NULL,NULL);
+ return NULL;
}
@@ -321,7 +322,7 @@ void main_prog(void)
int menu_num_items;
GdkColor tooltip_color_bg, tooltip_color_fg;
int red, gree, blue;
- char *buff;
+ char *buff = NULL;
int i;
GtkWidget *menubar;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d023e6f3b8aef773331c5f87d1de17f5fa120e67f7b6da1439ca7861a2df0905
size 375347

3
gperiodic-3.0.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91c64b90dfd65c79e62a8a1413993d4dcc516b82a3395f4d0e5b1a5e4af25697
size 419954

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 21 00:03:37 UTC 2017 - jengelh@inai.de
- Update to new upstream release 3.0.2
* Update info about elements with numbers 113, 115, 117, 118
- Remove all.diff (fixed upstream)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 13 10:08:00 UTC 2016 - jengelh@inai.de Sun Mar 13 10:08:00 UTC 2016 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package gperiodic # spec file for package gperiodic
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: gperiodic Name: gperiodic
Version: 3.0.1 Version: 3.0.2
Release: 0 Release: 0
Summary: A program for looking up data of elements from the periodic table Summary: A program for looking up data of elements from the periodic table
License: GPL-2.0+ License: GPL-2.0+
@ -25,7 +25,6 @@ Group: Productivity/Scientific/Chemistry
Url: http://gperiodic.sf.net/ Url: http://gperiodic.sf.net/
Source: http://download.sf.net/gperiodic/%name-%version.tar.gz Source: http://download.sf.net/gperiodic/%name-%version.tar.gz
Patch1: all.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: intltool BuildRequires: intltool
@ -39,10 +38,8 @@ periodic table. This program also features a non-graphical interface.
%prep %prep
%setup -q %setup -q
%patch -P 1 -p1
%build %build
perl -i -pe 's{^\tmake\b}{\t\$(MAKE)}g' Makefile # reenable parallel build
make %{?_smp_mflags} CFLAGS="%optflags" make %{?_smp_mflags} CFLAGS="%optflags"
%install %install