From: Elan Ruusamäe Date: Wed, 25 Aug 2010 16:22:12 +0000 (+0000) Subject: - spec based on altlinux src.rpm, some deps missing, does not build. X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcolorifer.git;a=commitdiff_plain;h=4aafbae35613f1af1ec958e3feeffafd5079fa3d - spec based on altlinux src.rpm, some deps missing, does not build. ftp://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch/files/SRPMS/colorifer-1.0.1-alt12.1.src.rpm Changed files: colorifer.spec -> 1.1 --- 4aafbae35613f1af1ec958e3feeffafd5079fa3d diff --git a/colorifer.spec b/colorifer.spec new file mode 100644 index 0000000..597f27a --- /dev/null +++ b/colorifer.spec @@ -0,0 +1,55 @@ +%define subver rc6 +%define rel 1 +Summary: Simple program output colorifer +Name: colorifer +Version: 1.0.1 +Release: 0.%{subver}.%{rel} +License: GPL +Group: Applications/Text +URL: http://colorifer.sourceforge.net/ +Source0: http://downloads.sourceforge.net/project/colorifer/colorifer/%{version}%{subver}/%{name}-%{version}%{subver}.tar.bz2 +# Source0-md5: ff478e218d64dd37064dfc47a9429a76 +BuildRequires: boost-devel +BuildRequires: help2man +BuildRequires: libstdc++-devel +BuildRequires: ncurses-c++-devel +BuildRequires: ncurses-devel +BuildRequires: pcre-cxx-devel +BuildRequires: pcre-devel +BuildRequires: sed >= 4.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This package contains simple wrapper to colorize output from any +programs. + +%prep +%setup -q -n %{name}-%{version}%{subver} + +%{__sed} -i -e 's,pcre/pcreposix.h,pcreposix.h,' include/pcre_regex.hh +%build +%{__make} \ + CXX="%{__cxx}" \ + CFLAGS='-DCONFIGDIR=\\\"%{_datadir}/%{name}/\\\"' \ + DEBUG_LDGLAGS= \ + DEBUG_LDGLAGS_UTILS= + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc TODO NEWS +%attr(755,root,root) %{_bindir}/csed +%attr(755,root,root) %{_bindir}/%{name} +%attr(755,root,root) %{_bindir}/pcolorize* +%attr(755,root,root) %{_libdir}/*.so.* +%dir %{_datadir}/%{name} +%{_mandir}/man1/csed.* +%{_mandir}/man1/pcolorize.*