pkg://astyle-1.15.3-4mdk.src.rpm:54695/astyle.spec
info downloads
%define name astyle
%define version 1.15.3
%define release 4mdk
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: ASFormatter.cpp.patch.bz2
Patch3: astyle_main.cpp.patch.bz2
Patch4: astyle-1.15-gcc34.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 .fix_895316_450670
%patch3 -p0 -b .fix_T_t_Options
%patch4 -p0
%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 Jul 05 2004 Michael Scherer <misc@mandrake.org> 1.15.3-4mdk
- rebuild for new gcc, added patch4
* Thu Mar 04 2004 from Angelo Naselli <random_lx@yahoo.com> 1.15.3-3mdk
- removed old patch for bug 450670
- added patch to fix bug 895316 and 450670
- added patch to fix bug -t and -T options
* 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
* Mon 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