]>
Commit | Line | Data |
---|---|---|
509383c4 ER |
1 | # TODO |
2 | # - /etc/env.d/PATH does not support "merging", | |
3 | # so therefore we use /etc/profile.d | |
4 | # - better name for subpackage? | |
165313e2 | 5 | %include /usr/lib/rpm/macros.perl |
966b8bee | 6 | Summary: Perl wrapper which colorizes the output of the gcc/g++ compiler |
1143b290 | 7 | Summary(pl.UTF-8): Program kolorujący komunikaty kompilatorów gcc/g++ |
165313e2 JB |
8 | Name: colorgcc |
9 | Version: 1.3.2 | |
c465ebba | 10 | Release: 8 |
165313e2 JB |
11 | License: GPL |
12 | Group: Development/Tools | |
165313e2 | 13 | Source0: http://home.i1.net/~jamoyers/software/colorgcc/%{name}-%{version}.tar.gz |
c41fb00c | 14 | # Source0-md5: 7d62f92ab99c8271c79c40a0a470e8f7 |
165313e2 JB |
15 | Patch0: %{name}-paths.patch |
16 | Patch1: %{name}-perl-5.6.patch | |
cdd0b6b6 | 17 | BuildRequires: perl-devel >= 1:5.6 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
165313e2 JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
fc8011c5 | 21 | %define _libdir %{_prefix}/%{_lib}/%{name} |
509383c4 | 22 | |
165313e2 | 23 | %description |
966b8bee | 24 | colorgcc is a Perl wrapper that colorizes the output of the gcc/g++ |
165313e2 JB |
25 | compiler. |
26 | ||
c465ebba | 27 | Read %{_docdir}/%{name}-%{version}/INSTALL after installing colorgcc. |
165313e2 | 28 | |
1143b290 JR |
29 | %description -l pl.UTF-8 |
30 | colorgcc to napisany w Perlu program opakowujący (wrapper), który | |
165313e2 JB |
31 | koloruje tekst wypisywany przez kompilatory gcc/g++ podczas |
32 | kompilacji. | |
33 | ||
1143b290 | 34 | Po zainstalowaniu tego pakietu warto przeczytać |
c465ebba | 35 | %{_docdir}/%{name}-%{version}/INSTALL . |
509383c4 ER |
36 | |
37 | %package wrapper | |
38 | Summary: Symlinks for c++/cc/g++/gcc | |
1143b290 | 39 | Summary(pl.UTF-8): Dowiązania symboliczne do c++/cc/g++/gcc |
509383c4 | 40 | Group: Development/Tools |
521330fa | 41 | Requires: %{name} = %{version}-%{release} |
509383c4 ER |
42 | |
43 | %description wrapper | |
44 | This package contains the softlinks to colorgcc for each compiler you | |
45 | want to colorize. | |
165313e2 | 46 | |
1143b290 JR |
47 | %description wrapper -l pl.UTF-8 |
48 | Ten pakiet zawiera dowiązania symboliczne do colorgcc dla każdego z | |
49 | kolorowanych kompilatorów. | |
a556db73 | 50 | |
165313e2 JB |
51 | %prep |
52 | %setup -q | |
53 | %patch0 -p1 | |
54 | %patch1 -p1 | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
509383c4 | 58 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/profile.d} |
165313e2 JB |
59 | |
60 | install colorgcc $RPM_BUILD_ROOT%{_bindir} | |
61 | ||
fc8011c5 | 62 | for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do |
509383c4 ER |
63 | ln -s ../../bin/colorgcc $RPM_BUILD_ROOT%{_libdir}/$cc |
64 | done | |
65 | ||
66 | echo 'export PATH=%{_libdir}:$PATH' > \ | |
67 | $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh | |
68 | ||
165313e2 JB |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
a833edf1 | 74 | %doc INSTALL ChangeLog CREDITS colorgccrc |
165313e2 | 75 | %attr(755,root,root) %{_bindir}/colorgcc |
509383c4 ER |
76 | |
77 | %files wrapper | |
78 | %defattr(644,root,root,755) | |
fc8011c5 | 79 | %attr(755,root,root) /etc/profile.d/%{name}.sh |
509383c4 ER |
80 | %dir %{_libdir} |
81 | %attr(755,root,root) %{_libdir}/* |