X-Git-Url: http://git.pld-linux.org/?p=packages%2Fastyle.git;a=blobdiff_plain;f=astyle.spec;h=aee32af9f845a1d5d57281a2fbdba5ad73eaaf63;hp=88811605fac660bf5440e1bbc43f4e38e75db4f0;hb=316211d99e5c61d4c4edabb3fec68b79e9987a88;hpb=ef6d8d8ce5a6a2339bba8f7757f026fe96ddc514 diff --git a/astyle.spec b/astyle.spec index 8881160..aee32af 100644 --- a/astyle.spec +++ b/astyle.spec @@ -1,41 +1,47 @@ Summary: Automatic Indentation Filter -Summary(pl): Automatyczny filtr wciêæ +Summary(pl.UTF-8): Automatyczny filtr wcięć Name: astyle -Version: 1.15.3 +Version: 2.02 Release: 1 License: GPL v2 Group: Development/Tools -Source0: http://dl.sourceforge.net/%{name}/%{name}_%{version}.zip -# Source0-md5: 4d8adbcd8703aea00fcd2670be090ddd +Source0: http://downloads.sourceforge.net/astyle/%{name}_%{version}_linux.tar.gz +# Source0-md5: 6ce1f5c766ba142f152dab4ddd1ee3b7 URL: http://astyle.sourceforge.net/ -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 +%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} + +# docdir fixed +mkdir $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ +mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/html/*.html $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ %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}/*