File unifdef.spec of Package unifdef

#
# spec file for package unifdef (Version 1.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           unifdef
License:        BSD License and BSD-like
Group:          Development/Libraries/C and C++
Summary:        Removes ifdefs from C files
Version:        1.0
Release:        43
Source:         http://www.cs.cmu.edu/~ajw/dist/unifdef-1.0.tar.gz
Patch:          unifdef-codecleanup.diff
Source1:        Makefile.am
Source2:        configure.ac
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 #endif 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.



%prep
%setup -q
rm -f Makefile unifdef *.o
cp %{S:1} %{S:2} .
%patch

%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -W -Wall"
./configure --prefix=/usr --mandir=%{_mandir} 
make

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_bindir}/unifdef
%{_mandir}/man1/unifdef.1*
%doc LICENSE README unifdef.1

%changelog
* Fri Feb 16 2007 - pth@suse.de
- Redo cleanup patch to get unifdef working again.
* Fri Sep 29 2006 - pth@suse.de
- Remove nasm from BuildRequires.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 07 2005 - pth@suse.de
- Fix defattr
* Sat Nov 05 2005 - dmueller@suse.de
- fix filelist
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Fri Jan 07 2005 - pth@suse.de
- Initial package creation
- clean up the code.
- autoconfiscate the package
openSUSE Build Service is sponsored by