commit 5d91b801ade736c3828efd444f37883fb7e0f06b Author: MSVSphere Packaging Team Date: Mon Dec 11 17:39:44 2023 +0300 import unifdef-2.10-21.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d99513 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/unifdef-2.10.tar.xz diff --git a/.unifdef.metadata b/.unifdef.metadata new file mode 100644 index 0000000..8798eea --- /dev/null +++ b/.unifdef.metadata @@ -0,0 +1 @@ +7b9bd1c884f9a675a5b9bdadd7bc78fe60f6e2ac SOURCES/unifdef-2.10.tar.xz diff --git a/SPECS/unifdef.spec b/SPECS/unifdef.spec new file mode 100644 index 0000000..9a5a625 --- /dev/null +++ b/SPECS/unifdef.spec @@ -0,0 +1,47 @@ +Summary: Tool for removing ifdef'd lines +Name: unifdef +Version: 2.10 +Release: 21%{?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 25 2023 Michael Catanzaro - 2.10-21 +- Rebuild so distrobaker notices this package + Resolves: #2180560 + +* Tue Apr 18 2023 Michael Catanzaro - 2.10-20 +- Import from Fedora. Sorry, cannot keep the changelog history.