2 # - /etc/env.d/PATH does not support "merging",
3 # so therefore we use /etc/profile.d
4 # - better name for subpackage?
5 %include /usr/lib/rpm/macros.perl
6 Summary: Perl wrapper which colorizes the output of the gcc/g++ compiler
7 Summary(pl.UTF-8): Program kolorujący komunikaty kompilatorów gcc/g++
12 Group: Development/Tools
13 Source0: http://home.i1.net/~jamoyers/software/colorgcc/%{name}-%{version}.tar.gz
14 # Source0-md5: 7d62f92ab99c8271c79c40a0a470e8f7
15 Patch0: %{name}-paths.patch
16 Patch1: %{name}-perl-5.6.patch
17 BuildRequires: perl-devel >= 1:5.6
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libdir %{_prefix}/%{_lib}/%{name}
24 colorgcc is a Perl wrapper that colorizes the output of the gcc/g++
27 Read %{_docdir}/%{name}-%{version}/INSTALL after installing colorgcc.
29 %description -l pl.UTF-8
30 colorgcc to napisany w Perlu program opakowujący (wrapper), który
31 koloruje tekst wypisywany przez kompilatory gcc/g++ podczas
34 Po zainstalowaniu tego pakietu warto przeczytać
35 %{_docdir}/%{name}-%{version}/INSTALL .
38 Summary: Symlinks for c++/cc/g++/gcc
39 Summary(pl.UTF-8): Dowiązania symboliczne do c++/cc/g++/gcc
40 Group: Development/Tools
41 Requires: %{name} = %{version}-%{release}
44 This package contains the softlinks to colorgcc for each compiler you
47 %description wrapper -l pl.UTF-8
48 Ten pakiet zawiera dowiązania symboliczne do colorgcc dla każdego z
49 kolorowanych kompilatorów.
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/profile.d}
60 install colorgcc $RPM_BUILD_ROOT%{_bindir}
62 for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do
63 ln -s ../../bin/colorgcc $RPM_BUILD_ROOT%{_libdir}/$cc
66 echo 'export PATH=%{_libdir}:$PATH' > \
67 $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc INSTALL ChangeLog CREDITS colorgccrc
75 %attr(755,root,root) %{_bindir}/colorgcc
78 %defattr(644,root,root,755)
79 %attr(755,root,root) /etc/profile.d/%{name}.sh
81 %attr(755,root,root) %{_libdir}/*