Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 3e0fc3ae3850f997a5d162f151a496c4 > files > 2

unifdef-2.12-1.mga8.src.rpm

Name:    unifdef
Version: 2.12
Release: %mkrel 1
Summary: Tool for removing ifdef'd lines
Group:   Development/Other
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
install -d -m0755 %{buildroot}%{_bindir}
install -p -m0755 unifdef %{buildroot}%{_bindir}/unifdef
install -p -m0755 unifdefall.sh %{buildroot}%{_bindir}/unifdefall.sh

install -d -m0755 %{buildroot}%{_mandir}/man1
install -p -m0644 unifdef.1 %{buildroot}%{_mandir}/man1/unifdef.1


%files
%{_bindir}/unifdef
%{_bindir}/unifdefall.sh
%{_mandir}/man1/unifdef.1*


%changelog
* Tue Jun 06 2023 ns80 <ns80> 2.12-1.mga8
+ Revision: 1961118
+ rebuild (emptylog)

* Sat Apr 22 2023 tmb <tmb> 2.12-1.mga9
+ Revision: 1954304
- add unifdef package
- Created package structure for unifdef.