Summary: Automatic Indentation Filter
-Summary(pl): Automatyczny filtr wciêæ
+Summary(pl.UTF-8): Automatyczny filtr wcięć
Name: astyle
-Version: 1.15.3
+Version: 1.24
Release: 1
License: GPL v2
Group: Development/Tools
-Source0: http://dl.sourceforge.net/astyle/%{name}_%{version}.zip
-# Source0-md5: 4d8adbcd8703aea00fcd2670be090ddd
+Source0: http://dl.sourceforge.net/astyle/%{name}_%{version}_linux.tar.gz
+# Source0-md5: 27cdb10523de59825d1228ac55b2c7c8
URL: http://astyle.sourceforge.net/
-Patch0: %{name}-Makefile.patch
-BuildRequires: unzip
+BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Artistic Style is a reindenter and reformatter of C++, C and Java
source code.
-%description -l pl
-Artistic Style to narzêdzie do reformatowania kodu z poprawianiem
-wciêæ dla ¼róde³ w C++, C i Javie.
+%description -l pl.UTF-8
+Artistic Style to narzędzie do reformatowania kodu z poprawianiem
+wcięć dla źródeł w C++, C i Javie.
%prep
-%setup -q -c
-%patch0 -p1
+%setup -q -n %{name}
%build
-%{__make} \
+%{__make} -C build/gcc \
CXX="%{__cxx}" \
CPPFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install astyle $RPM_BUILD_ROOT%{_bindir}
+%{__make} -C build/gcc install \
+ INSTALL=install \
+ prefix=$RPM_BUILD_ROOT%{_prefix}
+
+# this files are in docdir
+rm -f $RPM_BUILD_ROOT/%{_datadir}/%{name}/{*.html,*.css}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc astyle.html astyle_release_notes.html
+%doc doc/*.html doc/*.css
%attr(755,root,root) %{_bindir}/*