]>
Commit | Line | Data |
---|---|---|
0db09b4a | 1 | Summary: Automatic Indentation Filter |
18f41a12 | 2 | Summary(pl.UTF-8): Automatyczny filtr wcięć |
0db09b4a | 3 | Name: astyle |
316211d9 | 4 | Version: 2.02 |
0db09b4a | 5 | Release: 1 |
ecf4927d | 6 | License: GPL v2 |
0db09b4a | 7 | Group: Development/Tools |
005c43b8 | 8 | Source0: http://downloads.sourceforge.net/astyle/%{name}_%{version}_linux.tar.gz |
316211d9 | 9 | # Source0-md5: 6ce1f5c766ba142f152dab4ddd1ee3b7 |
ef6d8d8c | 10 | URL: http://astyle.sourceforge.net/ |
493103ac | 11 | BuildRequires: libstdc++-devel |
0db09b4a | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
14 | %description | |
15 | Artistic Style is a reindenter and reformatter of C++, C and Java | |
16 | source code. | |
17 | ||
708add0a JR |
18 | %description -l pl.UTF-8 |
19 | Artistic Style to narzędzie do reformatowania kodu z poprawianiem | |
20 | wcięć dla źródeł w C++, C i Javie. | |
565dae39 | 21 | |
0db09b4a | 22 | %prep |
bd33c955 | 23 | %setup -q -n %{name} |
0db09b4a | 24 | |
25 | %build | |
07881f01 | 26 | %{__make} -C build/gcc \ |
751e978f | 27 | CXX="%{__cxx}" \ |
0db09b4a | 28 | CPPFLAGS="%{rpmcflags}" |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
0db09b4a | 32 | |
07881f01 | 33 | %{__make} -C build/gcc install \ |
bd33c955 | 34 | INSTALL=install \ |
35 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
493103ac | 36 | |
aee4eb8d KG |
37 | # docdir fixed |
38 | mkdir $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ | |
39 | mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/html/*.html $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ | |
07881f01 | 40 | |
0db09b4a | 41 | %clean |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
07881f01 | 46 | %doc doc/*.html doc/*.css |
0db09b4a | 47 | %attr(755,root,root) %{_bindir}/* |