%define major 0 %define libname %mklibname ctemplate %{major} Summary: Simple but powerful template language for C++ Name: ctemplate Version: 0.6.1 Release: %mkrel 1 Group: System/Libraries License: BSD URL: http://goog-ctemplate.sourceforge.net Source: http://prdownloads.sourceforge.net/goog-ctemplate/%{name}-%{version}.tar.gz BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: autoconf2.5 Buildroot: %{_tmppath}/%{name}-%{version}-root %description The ctemplate package contains a library implementing a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. This limits the power of the template language without limiting the power of the template *system*. Indeed, Google's "main" web search uses this system exclusively for formatting output. %package -n %{libname} Summary: Simple but powerful template language for C++ Group: System/Libraries %description -n %{libname} The ctemplate package contains a library implementing a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. This limits the power of the template language without limiting the power of the template *system*. Indeed, Google's "main" web search uses this system exclusively for formatting output. %package -n %{libname}-devel Summary: Development files for the %{name} library Group: Development/C Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} Requires: %{libname} = %{version} %description -n %{libname}-devel The ctemplate-devel package contains static and debug libraries and header files for developing applications that use the ctemplate package. %prep %setup -q %build %configure2_5x %make %check make check %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std # cleanup rm -rf %{buildroot}%{_docdir}/ctemplate-* %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL README doc/* %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_bindir}/make_tpl_varnames_h %{_bindir}/template-converter %{_includedir}/google/*.h %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %changelog * Sun Jun 24 2007 Oden Eriksson <oeriksson@mandriva.com> 0.6.1-1mdv2008.0 + Revision: 43639 - Import ctemplate * Sun Jun 24 2007 Oden Eriksson <oeriksson@mandriva.com> 0.6.1-1mdv2008.0 - 0.6.1 * Fri Jul 28 2006 Oden Eriksson <oeriksson@mandriva.com> 0.2-1mdk - 0.2 * Tue May 02 2006 Oden Eriksson <oeriksson@mandriva.com> 0.1-1mdk - initial Mandriva package