--- /dev/null
+Name: unifdef
+Version: 2.8
+Release: 1
+License: BSD
+Summary: Removes ifdefs from C files
+Url: http://dotat.at/prog/unifdef/
+Group: Development/Tools
+Source: http://dotat.at/prog/unifdef/%{name}-%{version}.tar.gz
+
+%description
+Unifdef is useful for removing ifdef'ed lines from a file while otherwise
+leaving the file alone. Unifdef acts on #ifdef, #ifndef, #else, and #enĀ
+dif lines, and it knows only enough about C to know when one of these is
+inactive because it is inside a comment, or a single or double quote.
+
+%track
+prog %{name} = {
+ url = http://dotat.at/prog/unifdef/
+ version = %{version}
+ regex = %{name}-(__VER__)\.tar\.gz
+}
+
+%prep
+%setup -q
+
+%build
+make %?_smp_mflags CC=gcc CFLAGS="%{optflags}"
+
+%install
+make install DESTDIR=%{buildroot} prefix=%{_prefix}
+
+%files
+%license COPYING
+%{_bindir}/unifdef
+%{_bindir}/unifdefall
+%{_mandir}/man1/unifdef.1*
+%{_mandir}/man1/unifdefall.1*
+
+%changelog