From 61aadf4fd32cec75493d35be68ebcd8e6cb7fd84 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Tue, 18 Apr 2023 14:02:33 -0500 Subject: [PATCH] Initial import Resolves: #2180559 --- .gitignore | 1 + sources | 1 + unifdef.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 sources create mode 100644 unifdef.spec diff --git a/.gitignore b/.gitignore index e69de29..50a64b7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/unifdef-2.10.tar.xz diff --git a/sources b/sources new file mode 100644 index 0000000..a708ec7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (unifdef-2.10.tar.xz) = 9537a4679997a2677dcbe26c5849147654eb20b9edbf7625bd251e065d90a3ea54c4be9d445abdbc611820d8902d446062f800313904ac3f9cde3a89120860de diff --git a/unifdef.spec b/unifdef.spec new file mode 100644 index 0000000..9d7d3ba --- /dev/null +++ b/unifdef.spec @@ -0,0 +1,43 @@ +Summary: Tool for removing ifdef'd lines +Name: unifdef +Version: 2.10 +Release: 20%{?dist} +License: BSD +URL: http://dotat.at/prog/unifdef/ +Source0: http://dotat.at/prog/unifdef/unifdef-%{version}.tar.xz + +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig + +%description +Unifdef is useful for removing ifdefed lines from a file while otherwise +leaving the file alone. Unifdef acts on #ifdef, #ifndef, #else, and #endif +lines, and it knows only enough about C and C++ to know when one of these +is inactive because it is inside a comment, or a single or double quote. + +%prep +%setup -q + +%build +make CFLAGS="$RPM_OPT_FLAGS" + +%install +rm -rf $RPM_BUILD_ROOT +install -d -m0755 $RPM_BUILD_ROOT%{_bindir} +install -p -m0755 unifdef $RPM_BUILD_ROOT%{_bindir}/unifdef +install -p -m0755 unifdefall.sh $RPM_BUILD_ROOT%{_bindir}/unifdefall.sh + +install -d -m0755 $RPM_BUILD_ROOT%{_mandir}/man1 +install -p -m0644 unifdef.1 $RPM_BUILD_ROOT%{_mandir}/man1/unifdef.1 + + +%files +%{_bindir}/unifdef +%{_bindir}/unifdefall.sh +%{_mandir}/man1/unifdef.1.gz + + +%changelog +* Tue Apr 18 2023 Michael Catanzaro - 2.10-20 +- Import from Fedora. Sorry, cannot keep the changelog history.