From c1fb309176a3caec7709cc90849308edd2437371a4d8953b82fd31d294837b2e Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 15 Jun 2011 13:58:36 +0000 Subject: [PATCH] Accepting request 73177 from home:lnussel * the name and purpose cpp - C preprocessor directive indenter * how long has it been around? few years * how well has it been tested? worked for me in one case * what is the upstream project? https://savannah.gnu.org/projects/cppi/ * does it have a track record of security issues? no and unlikely to ever have one * what is the purpose of having it in the distribution? allow coreutils development * who are its users? coreutils developers * what is the license? GPLv3+ OBS-URL: https://build.opensuse.org/request/show/73177 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/cppi?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + _service:format_spec_file:cppi.spec | 68 +++++++++++++++++++++++++++++ cppi-1.15.tar.xz | 3 ++ cppi.changes | 5 +++ cppi.spec | 47 ++++++++++++++++++++ 6 files changed, 147 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service:format_spec_file:cppi.spec create mode 100644 cppi-1.15.tar.xz create mode 100644 cppi.changes create mode 100644 cppi.spec 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/_service:format_spec_file:cppi.spec b/_service:format_spec_file:cppi.spec new file mode 100644 index 0000000..83e18db --- /dev/null +++ b/_service:format_spec_file:cppi.spec @@ -0,0 +1,68 @@ +# +# spec file for package cppi +# +# Copyright (c) 2011 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/ +# + + + +Name: cppi +Version: 1.15 +Release: 0 +Summary: C preprocessor directive indenter +Group: Development/Languages/C and C++ +License: GPLv3+ +Url: http://savannah.gnu.org/projects/cppi/ +Source0: http://ftp.gnu.org/gnu/cppi/cppi-%{version}.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: xz + + +%description +cppi indents the C preprocessor directives to reflect their nesting and ensures +that there is exactly one space character between each #if, #elif, #define +directive and the following token. + + +%prep +%setup -q + + +%build +%configure --disable-silent-rules +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%check +make check + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS THANKS TODO +%{_bindir}/cppi +%{_mandir}/man1/cppi.1* + + + +%changelog diff --git a/cppi-1.15.tar.xz b/cppi-1.15.tar.xz new file mode 100644 index 0000000..4b8fdd5 --- /dev/null +++ b/cppi-1.15.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82bfe3d7ae7a5ca208c71c34cb9b2967ce6251c112b548649a3b9bced9e57cab +size 418936 diff --git a/cppi.changes b/cppi.changes new file mode 100644 index 0000000..794d530 --- /dev/null +++ b/cppi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Jun 9 14:01:04 UTC 2011 - lnussel@suse.de + +- initial package version 1.15 + diff --git a/cppi.spec b/cppi.spec new file mode 100644 index 0000000..c6e9089 --- /dev/null +++ b/cppi.spec @@ -0,0 +1,47 @@ +Name: cppi +Version: 1.15 +Release: 0 +Summary: C preprocessor directive indenter +Group: Development/Languages/C and C++ +License: GPLv3+ +URL: http://savannah.gnu.org/projects/cppi/ +Source0: http://ftp.gnu.org/gnu/cppi/cppi-%{version}.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: xz + +%description +cppi indents the C preprocessor directives to reflect their nesting and ensures +that there is exactly one space character between each #if, #elif, #define +directive and the following token. + + +%prep +%setup -q + + +%build +%configure --disable-silent-rules +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%check +make check + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS THANKS TODO +%{_bindir}/cppi +%{_mandir}/man1/cppi.1* + + +%changelog