Group :: Development/C
RPM: unifdef
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: unifdef
Version: 2.12
Release: alt2
Summary: A tool for removing ifdef'd lines
License: BSD-2-Clause and BSD-3-Clause
Group: Development/C
Url: https://dotat.at/prog/unifdef/
%define srcname %name-%version-%release
# git://git.altlinux.org/gears/u/unifdef.git
Source: %srcname.tar
%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 -n %srcname
%build
# Check about -O0 in https://bugzilla.altlinux.org/43468
%make_build CFLAGS='%optflags -O0'
%install
%makeinstall_std prefix=/usr
%check
make test
%files
%_bindir/unifdef*
%_man1dir/unifdef*
%changelog
…
Full changelog you can see here
Version: 2.12
Release: alt2
Summary: A tool for removing ifdef'd lines
License: BSD-2-Clause and BSD-3-Clause
Group: Development/C
Url: https://dotat.at/prog/unifdef/
%define srcname %name-%version-%release
# git://git.altlinux.org/gears/u/unifdef.git
Source: %srcname.tar
%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 -n %srcname
%build
# Check about -O0 in https://bugzilla.altlinux.org/43468
%make_build CFLAGS='%optflags -O0'
%install
%makeinstall_std prefix=/usr
%check
make test
%files
%_bindir/unifdef*
%_man1dir/unifdef*
%changelog
…
Full changelog you can see here