From 7d4e1282d8621be7cc7245343a32cd7284fe60d7 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 18:49:16 +0100 Subject: [PATCH] automatic update by autodist [release 2.10-1mamba;Tue Feb 18 2014] --- README.md | 5 ++++ unifdef.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 unifdef.spec diff --git a/README.md b/README.md index b04395b..a764500 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # unifdef +Unifdef is useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone. +You specify which symbols are defined or undefined with -D and -U flags, and unifdef removes the corresponding ifdefs, and the enclosed code if appropriate. +It's especially useful for removing those "#ifdef BROKEN" and "#ifdef PRIVATE" clauses from code before you release it. +Unifdef acts on #ifdef, #ifndef, #else, and #en­ dif 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. + diff --git a/unifdef.spec b/unifdef.spec new file mode 100644 index 0000000..139e8de --- /dev/null +++ b/unifdef.spec @@ -0,0 +1,71 @@ +Name: unifdef +Version: 2.10 +Release: 1mamba +Summary: A useful tool for removing #ifdef'ed lines from a file +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://dotat.at/prog/unifdef/ +Source: http://dotat.at/prog/unifdef/unifdef-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Unifdef is useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone. +You specify which symbols are defined or undefined with -D and -U flags, and unifdef removes the corresponding ifdefs, and the enclosed code if appropriate. +It's especially useful for removing those "#ifdef BROKEN" and "#ifdef PRIVATE" clauses from code before you release it. +Unifdef acts on #ifdef, #ifndef, #else, and #en­ dif 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 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall prefix=%{_prefix} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/unifdef +%{_bindir}/unifdefall +%{_mandir}/man1/unifdef.* +%{_mandir}/man1/unifdefall.* +%doc Changelog COPYING README + +%changelog +* Tue Feb 18 2014 Automatic Build System 2.10-1mamba +- automatic update by autodist + +* Fri Jun 07 2013 Automatic Build System 2.9-1mamba +- automatic version update by autodist + +* Tue May 14 2013 Automatic Build System 2.8-1mamba +- automatic version update by autodist + +* Sun Mar 31 2013 Automatic Build System 2.7-1mamba +- automatic version update by autodist + +* Wed Feb 23 2011 Automatic Build System 2.6-1mamba +- automatic update by autodist + +* Sat Jan 29 2011 Automatic Build System 2.5-1mamba +- automatic update by autodist + +* Sun Oct 17 2010 Davide Madrisan 2.4-1mamba +- update to 2.4 +- update URL and Source locations + +* Fri Mar 30 2007 Silvan Calarco 1.0-2mamba +- added more up-to-date code from freebsd + +* Fri Mar 30 2007 Silvan Calarco 1.0-1mamba +- package created by autospec