%define major 0 %define libname %mklibname colorer %{major} Summary: Colorer take5 is a syntax highlighting and text parsing library Name: colorer-take5 Version: 0 Release: %mkrel 0.beta4.3 Group: Text tools License: MPL URL: http://colorer.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/colorer/Colorer-take5-linux.beta4.tar.bz2 Patch0: colorer-optflags.diff Patch1: colorer-soname.diff Patch2: colorer-DESTDIR.diff BuildRequires: libstdc++-devel Requires: %{libname} = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available. %package -n %{libname} Summary: Colorer take5 is a syntax highlighting and text parsing library Group: System/Libraries %description -n %{libname} Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available. %package -n %{libname}-devel Summary: Static library and header files for the %{name} library Group: Development/C++ Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} Provides: libcolorer-devel = %{version} Requires: %{libname} = %{version} Requires: %{name}-base = %{version} %description -n %{libname}-devel Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available. This package contains the development files for the %{name} library. %package docs Summary: Documentation for Colorer take5 Group: Development/C++ %description docs Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available. This package contains the documentation for Colorer take5. %package base Summary: Common files for Colorer take5 Group: Text tools %description base Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms. Top level Java language API is also available. This package contains common files for Colorer take5. %prep %setup -q -c -n %{name} %patch0 -p0 %patch1 -p0 %patch2 -p0 # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' %build %configure %make RPM_OPT_FLAGS="%{optflags} -fpermissive -Wall -fPIC" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std ln -snf libcolorer.so.%{major} %{buildroot}%{_libdir}/libcolorer.so rm -f %{buildroot}%{_datadir}/colorer/{LICENSE,README} rm -rf installed_docs mv %{buildroot}%{_datadir}/doc/colorer-take5 installed_docs %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root,-) %attr(0755,root,root) %{_bindir}/colorer %files -n %{libname} %defattr(-,root,root,-) %doc LICENSE README %attr(0755,root,root) %{_libdir}/libcolorer.so.%{major} %files -n %{libname}-devel %defattr(-,root,root,-) %{_includedir}/colorer %{_libdir}/libcolorer.so %{_datadir}/colorer/bin %files docs %defattr(-,root,root,-) %doc installed_docs/* %files base %defattr(-,root,root,-) %{_datadir}/colorer/catalog.xml %{_datadir}/colorer/hrc %{_datadir}/colorer/hrd %changelog * Wed Jul 26 2006 Oden Eriksson <oeriksson@mandriva.com> 0-0.beta4.3mdk - rebuild * Mon Mar 20 2006 Oden Eriksson <oeriksson@mandriva.com> 0-0.beta4.2mdk - fix deps and add the base sub package * Mon Mar 20 2006 Oden Eriksson <oeriksson@mandriva.com> 0-0.beta4.1mdk - initial Mandriva package