%define major 2 %define libname %mklibname ctemplate %{major} %define develname %mklibname ctemplate -d Summary: Simple but powerful template language for C++ Name: ctemplate Version: 2.2 Release: %mkrel 3 Group: System/Libraries License: BSD URL: http://code.google.com/p/google-ctemplate/ Source: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz BuildRequires: libstdc++-devel BuildRequires: libtool autoconf %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 Obsoletes: %{_lib}ctemplate0 >= 2.2 %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 %{develname} Summary: Development files for the %{name} library Group: Development/C Provides: %{name}-devel = %{version} Provides: lib%{name}-devel = %{version} Requires: %{libname} = %{version} Obsoletes: %{mklibname ctemplate 0 -d} %description -n %{develname} The ctemplate-devel package contains static and debug libraries and header files for developing applications that use the ctemplate package. %prep %setup -q %build export PTHREAD_LIBS="-lpthread" %configure2_5x --disable-static %make %check make check %install %makeinstall_std # cleanup rm -rf %{buildroot}%{_docdir}/ctemplate-* # don't ship .la find %{buildroot} -name "*.la" | xargs rm -f %files -n %{libname} %doc AUTHORS COPYING ChangeLog INSTALL README doc/* %{_libdir}/*.so.%{major} %{_libdir}/*.so.%{major}.* %files -n %{develname} %{_includedir}/ctemplate/* %{_libdir}/pkgconfig/libctemplate*.pc %{_bindir}/diff_tpl_auto_escape %{_bindir}/make_tpl_varnames_h %{_bindir}/template-converter %{_libdir}/*.so %changelog * Fri Jan 11 2013 umeabot <umeabot> 2.2-3.mga3 + Revision: 348388 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Aug 06 2012 fwang <fwang> 2.2-2.mga3 + Revision: 279439 - lock libmajor * Mon Aug 06 2012 sander85 <sander85> 2.2-1.mga3 + Revision: 279400 - New version: 2.2. * Sat Mar 03 2012 dams <dams> 2.0-1.mga2 + Revision: 217453 - new version 2.0 - clean spec file * Fri Feb 11 2011 ahmad <ahmad> 0.99-1.mga1 + Revision: 50602 - update to 0.99 - BR autoconf not autoconf2.5 - enable check, works now - drop old/unneeded scriptlets - don't ship .la - update the file list - imported package ctemplate