From 8ce8c70573c44588b62a82cf5c810b71e40bf1639ae5494eb4374fa221d39800 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:17:24 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/indent?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + indent-2.2.9-nothing_is_void.diff | 33 ++++++++ indent-2.2.9-overflow.patch | 10 +++ indent-2.2.9-warnings.diff | 34 +++++++++ indent-2.2.9.tar.bz2 | 3 + indent.changes | 107 ++++++++++++++++++++++++++ indent.spec | 122 ++++++++++++++++++++++++++++++ ready | 0 9 files changed, 333 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 indent-2.2.9-nothing_is_void.diff create mode 100644 indent-2.2.9-overflow.patch create mode 100644 indent-2.2.9-warnings.diff create mode 100644 indent-2.2.9.tar.bz2 create mode 100644 indent.changes create mode 100644 indent.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/indent-2.2.9-nothing_is_void.diff b/indent-2.2.9-nothing_is_void.diff new file mode 100644 index 0000000..f80db5d --- /dev/null +++ b/indent-2.2.9-nothing_is_void.diff @@ -0,0 +1,33 @@ +--- indent-2.2.9/man/texinfo2man.c ++++ indent-2.2.9/man/texinfo2man.c +@@ -162,7 +162,7 @@ + + static char value_updated[64], value_edition[64], value_version[64]; + +-process_texi (FILE * in) ++void process_texi (FILE * in) + { + char buf[1024]; + int in_block = 0; +--- indent-2.2.9/src/output.c ++++ indent-2.2.9/src/output.c +@@ -1206,7 +1206,7 @@ + } + } + +-extern inhibit_indenting( ++extern void inhibit_indenting( + BOOLEAN flag) + { + inhibited = flag; +--- indent-2.2.9/src/output.h ++++ indent-2.2.9/src/output.h +@@ -47,7 +47,7 @@ + struct stat * file_stats, + const char * filename); + +-extern inhibit_indenting( ++extern void inhibit_indenting( + BOOLEAN flag); + + diff --git a/indent-2.2.9-overflow.patch b/indent-2.2.9-overflow.patch new file mode 100644 index 0000000..73044a0 --- /dev/null +++ b/indent-2.2.9-overflow.patch @@ -0,0 +1,10 @@ +--- src/indent.c 2002-10-28 21:00:56.000000000 +0100 ++++ src/indent.c 2004-03-04 19:55:14.000000000 +0100 +@@ -875,6 +875,7 @@ + * imply we are in a stmt */ + for (t_ptr = s_code; *t_ptr; ++t_ptr) + { ++ check_lab_size(); + *e_lab++ = *t_ptr; /* turn everything so far into a label */ + } + diff --git a/indent-2.2.9-warnings.diff b/indent-2.2.9-warnings.diff new file mode 100644 index 0000000..6454846 --- /dev/null +++ b/indent-2.2.9-warnings.diff @@ -0,0 +1,34 @@ +--- src/output.c ++++ src/output.c +@@ -15,6 +15,8 @@ + #include + #include + #include ++#include ++#include + + #include "indent.h" + #include "sys.h" +@@ -23,7 +25,7 @@ + + RCSTAG_CC ("$Id: output.c,v 1.5 2002/12/12 17:36:49 david Exp $"); + +-static FILE * output = NULL; ++FILE * output = NULL; + static BOOLEAN inhibited = 0; + static buf_break_st_ty * buf_break_list = NULL; + +@@ -737,11 +739,11 @@ + + if (s[0] == '/' && (s[1] == '*' || s[1] == '/')) + { +- fprintf (output, "%.*s", e_lab - s, s); ++ fprintf (output, "%.*s", (int) (e_lab - s), s); + } + else + { +- fprintf (output, "/* %.*s */", e_lab - s, s); ++ fprintf (output, "/* %.*s */", (int) (e_lab - s), s); + } + + /* no need to update cur_col: the very next thing will diff --git a/indent-2.2.9.tar.bz2 b/indent-2.2.9.tar.bz2 new file mode 100644 index 0000000..cdff81a --- /dev/null +++ b/indent-2.2.9.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9c35b553ed67f186765645344788739cbaf01f3f69a0a9273fe5f9f5e6f5257 +size 497615 diff --git a/indent.changes b/indent.changes new file mode 100644 index 0000000..81be64e --- /dev/null +++ b/indent.changes @@ -0,0 +1,107 @@ +------------------------------------------------------------------- +Wed Jan 25 21:36:37 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 13 23:27:07 CET 2004 - sndirsch@suse.de + +- moved chinese mo file to correct directory (Bug #47262) + +------------------------------------------------------------------- +Wed Sep 15 21:00:32 CEST 2004 - aj@suse.de + +- Fix compiler warnings. + +------------------------------------------------------------------- +Wed Jun 30 10:35:12 CEST 2004 - tcrhak@suse.cz + +- removed texinfo2man from the file list (bug #42247) + +------------------------------------------------------------------- +Fri Apr 16 11:19:25 CEST 2004 - mmj@suse.de + +- Functions that are void should be declared as such + +------------------------------------------------------------------- +Thu Mar 04 20:11:08 CET 2004 - tcrhak@suse.cz + +- security fix for overflow (bug #33790) + +------------------------------------------------------------------- +Sat Jan 10 18:27:13 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Wed May 14 11:53:22 CEST 2003 - mmj@suse.de + +- Remove unwanted files + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Thu Feb 13 02:18:21 CET 2003 - mmj@suse.de + +- Add %install_info macro [#23428] + +------------------------------------------------------------------- +Mon Jan 06 19:15:06 CET 2003 - tcrhak@suse.cz + +- update to version 2.2.9 + +------------------------------------------------------------------- +Sat Jul 13 15:14:44 CEST 2002 - tcrhak@suse.cz + +- update to version 2.2.8a + +------------------------------------------------------------------- +Thu Oct 4 11:51:40 CEST 2001 - schwab@suse.de + +- Don't run automake/autoconf. + +------------------------------------------------------------------- +Sun Dec 3 15:24:19 CET 2000 - smid@suse.cz + +- New version 2.2.6 + +------------------------------------------------------------------- +Thu Feb 10 18:18:15 CET 2000 - kukuk@suse.de + +- Update to 2.2.5 +- Move /usr/{info,man} -> /usr/share/{info,man} + +------------------------------------------------------------------- +Sun Oct 10 09:39:49 MEST 1999 - kukuk@suse.de + +- Update to version 2.2.3 +- Use BuildRoot + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Tue Sep 7 11:11:28 MEST 1999 - kukuk@suse.de + +- Add make to build section + +------------------------------------------------------------------- +Thu Aug 26 12:50:18 MEST 1999 - kukuk@suse.de + +- Update to version 2.2.0 + +------------------------------------------------------------------- +Tue Feb 23 00:28:30 MET 1999 - ro@suse.de + +- dont redefine memcpy for glibc-2.1 + +------------------------------------------------------------------- +Thu Jan 21 01:04:39 MET 1999 - ro@suse.de + +- no m486 on alpha +- include in indent.c diff --git a/indent.spec b/indent.spec new file mode 100644 index 0000000..5fc87e3 --- /dev/null +++ b/indent.spec @@ -0,0 +1,122 @@ +# +# spec file for package indent (Version 2.2.9) +# +# Copyright (c) 2004 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# norootforbuild + +Name: indent +License: GPL +Group: Development/Languages/C and C++ +Autoreqprov: on +Version: 2.2.9 +Release: 193 +Source: %{name}-%{version}.tar.bz2 +Patch: %{name}-%{version}-overflow.patch +Patch1: %{name}-%{version}-nothing_is_void.diff +Patch2: %{name}-%{version}-warnings.diff +URL: ftp://ftp.gnu.org/pub/gnu/indent/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: Indent Formats C Source Code +PreReq: %install_info_prereq + +%description +Indent can be used to make code easier to read. It can also convert +from one style of writing C code to another. + +indent understands a substantial amount of C syntax, but it also tries +to cope with incomplete and malformed syntax. + + + +%define prefix /usr +%prep +%setup +%patch +%patch1 -p1 +%patch2 + +%build +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ + --mandir=%{_mandir} \ + --prefix=%{prefix} \ + --infodir=%{_infodir} \ + --sysconfdir=%{_sysconfdir} +make + +%install +make DESTDIR=$RPM_BUILD_ROOT/ install +# indent.html is installed with %doc below +rm $RPM_BUILD_ROOT/usr/doc/indent/indent.html +rm $RPM_BUILD_ROOT/usr/bin/texinfo2man +mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \ + $RPM_BUILD_ROOT/usr/share/locale/zh_TW + +%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 +%defattr(-, root, root) +/usr/bin/* +%doc doc/indent.html +%{_infodir}/indent.info*.gz +%{_mandir}/man1/indent.1.gz +/usr/share/locale/*/LC_MESSAGES/*.mo + +%changelog -n indent +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Dec 13 2004 - sndirsch@suse.de +- moved chinese mo file to correct directory (Bug #47262) +* Wed Sep 15 2004 - aj@suse.de +- Fix compiler warnings. +* Wed Jun 30 2004 - tcrhak@suse.cz +- removed texinfo2man from the file list (bug #42247) +* Fri Apr 16 2004 - mmj@suse.de +- Functions that are void should be declared as such +* Thu Mar 04 2004 - tcrhak@suse.cz +- security fix for overflow (bug #33790) +* Sat Jan 10 2004 - adrian@suse.de +- build as user +* Wed May 14 2003 - mmj@suse.de +- Remove unwanted files +* Thu Apr 24 2003 - ro@suse.de +- fix install_info --delete call and move from preun to postun +* Thu Feb 13 2003 - mmj@suse.de +- Add %%install_info macro [#23428] +* Mon Jan 06 2003 - tcrhak@suse.cz +- update to version 2.2.9 +* Sat Jul 13 2002 - tcrhak@suse.cz +- update to version 2.2.8a +* Thu Oct 04 2001 - schwab@suse.de +- Don't run automake/autoconf. +* Sun Dec 03 2000 - smid@suse.cz +- New version 2.2.6 +* Thu Feb 10 2000 - kukuk@suse.de +- Update to 2.2.5 +- Move /usr/{info,man} -> /usr/share/{info,man} +* Sun Oct 10 1999 - kukuk@suse.de +- Update to version 2.2.3 +- Use BuildRoot +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Tue Sep 07 1999 - kukuk@suse.de +- Add make to build section +* Thu Aug 26 1999 - kukuk@suse.de +- Update to version 2.2.0 +* Tue Feb 23 1999 - ro@suse.de +- dont redefine memcpy for glibc-2.1 +* Thu Jan 21 1999 - ro@suse.de +- no m486 on alpha +- include in indent.c diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4