Author: glen                         Date: Wed Jul 12 10:27:14 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on Suse 9.3 package

---- Files affected:
SPECS:
   unifdef.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/unifdef.spec
diff -u /dev/null SPECS/unifdef.spec:1.1
--- /dev/null   Wed Jul 12 12:27:14 2006
+++ SPECS/unifdef.spec  Wed Jul 12 12:27:09 2006
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+Summary:       Unifdef tool for removing ifdef'd lines
+Name:          unifdef
+Version:       1.0
+Release:       0.1
+License:       BSD
+Group:         Development/Languages
+#Source0:      http://www.cs.cmu.edu/~ajw/dist/%{name}-%{version}.tar.gz
+Source0:       %{name}-%{version}.tar.gz
+# Source0-md5: 825240622f35c7b002f11ece1af4ba22
+Patch0:                %{name}-codecleanup.diff
+Source1:       %{name}-Makefile.am
+Source2:       %{name}-configure.ac
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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
+rm -f Makefile unifdef *.o
+cp %{SOURCE1} Makefile.am
+cp %{SOURCE2} configure.ac
+%patch0
+
+%build
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+%configure
+%{__make} \
+       CFLAGS="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/unifdef
+%{_mandir}/man1/unifdef.1*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/07/12 10:27:09  glen
+- based on Suse 9.3 package
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to