%define name astyle %define version 1.15.3 %define release 2mdk Name: %{name} Summary: Reindenter and reformatter of C++, C and Java source code Version: %{version} Release: %{release} Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-autotools.patch.bz2 Patch1: ASBeautifier.cpp.patch.bz2 Patch2: ASFormatter450670.patch.bz2 URL: http://astyle.sourceforge.net/ Group: Development/C BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot License: GPL or Artistic BuildRequires: autoconf2.5 automake1.7 %description Artistic Style is a series of filters that automatically reindent and reformat C/C++/Java source files. These can be used from a command line, or they can be incorporated as classes in another C++ program. %prep %setup -q %patch0 -p1 %patch1 -p0 -b .random_lx %patch2 -p0 -b .random_lx %build aclocal-1.7 autoheader-2.5x autoconf-2.5x automake-1.7 --foreign -a %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %doc INSTALL.TXT astyle.html astyle_release_notes.html license.html %{_bindir}/astyle %changelog * Mon Feb 23 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.15.3-2mdk - from Angelo Naselli <random_lx@yahoo.com> : - added patch fix bitfield - added patch empty line in comment - added patch wrong behavieur with close bracket after comment * Tue Jan 06 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.15.3-1mdk - from Omer Shenker <astyle@omershenker.net> : - Specfile for Mandrake - gz to bz2 compression