Petr Uzel 2009-01-06 11:08:34 +00:00 committed by Git OBS Bridge
commit e994bada2a
7 changed files with 179 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
cflow-1.2.tar.bz2 Normal file
View File

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

View File

@ -0,0 +1,32 @@
diff -up ./lib/argp-fmtstream.h.orig ./lib/argp-fmtstream.h
--- ./lib/argp-fmtstream.h.orig 2008-12-17 13:54:32.000000000 +0100
+++ ./lib/argp-fmtstream.h 2008-12-17 13:55:16.000000000 +0100
@@ -198,7 +198,11 @@ extern int __argp_fmtstream_ensure (argp
#endif
#ifndef ARGP_FS_EI
-#define ARGP_FS_EI extern inline
+#ifdef __GNUC_STDC_INLINE__
+ #define ARGP_FS_EI extern inline __attribute__((__gnu_inline__))
+#else
+ #define ARGP_FS_EI extern inline
+#endif
#endif
ARGP_FS_EI size_t
diff -up ./lib/argp.h.orig ./lib/argp.h
--- ./lib/argp.h.orig 2008-12-17 13:46:33.000000000 +0100
+++ ./lib/argp.h 2008-12-17 13:47:30.000000000 +0100
@@ -580,7 +580,11 @@ extern void *__argp_input (const struct
# endif
# ifndef ARGP_EI
-# define ARGP_EI extern __inline__
+# if defined __GNUC_STDC_INLINE__
+# define ARGP_EI extern __inline__ __attribute__((__gnu_inline__))
+# else
+# define ARGP_EI extern __inline__
+# endif
# endif
ARGP_EI void

View File

@ -0,0 +1,33 @@
diff -up ./src/cflow.h.orig ./src/cflow.h
--- ./src/cflow.h.orig 2008-12-17 14:23:52.000000000 +0100
+++ ./src/cflow.h 2008-12-17 14:24:47.000000000 +0100
@@ -174,7 +174,7 @@ void set_preprocessor(const char *arg);
void pp_option(const char *arg);
void init_parse(void);
-int yyparse(void);
+void yyparse(void);
void output(void);
void newline(void);
diff -up ./src/parser.c.orig ./src/parser.c
--- ./src/parser.c.orig 2008-12-17 14:24:03.000000000 +0100
+++ ./src/parser.c 2008-12-17 14:25:07.000000000 +0100
@@ -305,7 +305,7 @@ skip_to(int c)
}
}
-int
+void
yyparse()
{
Ident identifier;
@@ -317,7 +317,7 @@ yyparse()
identifier.storage = ExternStorage;
switch (tok.type) {
case 0:
- return 0;
+ return;
case TYPEDEF:
parse_typedef();
break;

10
cflow.changes Normal file
View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Mon Jan 5 15:48:53 CET 2009 - puzel@suse.cz
- do 'make check' in spec
-------------------------------------------------------------------
Wed Dec 17 11:22:32 CET 2008 - puzel@suse.cz
- initial package (version 1.2)

77
cflow.spec Normal file
View File

@ -0,0 +1,77 @@
#
# spec file for package cflow (Version 1.2)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: cflow
License: GLP v3
Group: Development/Tools/Other
AutoReqProv: on
Url: http://www.gnu.org/software/cflow
Version: 1.2
Release: 1
Summary: Tool to generate flowcharts for C sources
Source: %{name}-%{version}.tar.bz2
Patch0: cflow-fix-extern-inline.patch
Patch1: cflow-fix-yyparse-return-type.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
GNU cflow analyzes a collection of C source files and prints a graph, charting
control flow within the program. GNU cflow is able to produce both direct and
inverted flowgraphs for C sources. Optionally a cross-reference listing can be
generated. Two output formats are implemented: POSIX and GNU (extended). Input
files can optionally be preprocessed before analyzing.
Authors:
--------
Sergey Poznyakoff <gray@gnu.org>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure
make
%check
make check
%install
%makeinstall
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_infodir}/*.info*
%doc NEWS README COPYING AUTHORS
%{_bindir}/%{name}
%changelog