Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37414177
en ru br
ALT Linux repos
S:2.4-alt1
5.0: 0.91-alt0.1

Group :: Development/C++
RPM: ctemplate

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: ctemplate
Version: 0.91
Release: alt0.1
Summary: A simple but powerful template language for C++
Packager: Ilya Mashkin <oddity at altlinux.ru>

Group: Development/C++
License: BSD
Url: http://code.google.com/p/google-ctemplate/
Source0: http://google-ctemplate.googlecode.com/files/%name-%version.tar.gz

BuildRequires: chrpath

# Automatically added by buildreq on Sat Nov 22 2008

BuildRequires: gcc-c++ gcc-fortran glibc-devel-static

%description
CTemplate is 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.

%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %version-%release

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%prep
%setup -q

%build
%configure --disable-static

#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool

#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

sed -i 's|^PTHREAD_LIBS = |PTHREAD_LIBS = -lpthread|g' Makefile

# Omit unused direct shared library dependencies.

sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool

make %{?_smp_mflags}

#check

make check

%install
make install DESTDIR=$RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%_includedir/%name
mv $RPM_BUILD_ROOT%_includedir/google/*.h $RPM_BUILD_ROOT%_includedir/%name/
sed -i -e 's|^#include <google|#include <ctemplate|g' $RPM_BUILD_ROOT%_includedir/%name/*.h

find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'

# Remove rpaths.

chrpath --delete $RPM_BUILD_ROOT%_libdir/libctemplate_nothreads.so.0.0.0
chrpath --delete $RPM_BUILD_ROOT%_libdir/libctemplate.so.0.0.0
chrpath --delete $RPM_BUILD_ROOT%_bindir/make_tpl_varnames_h
chrpath --delete $RPM_BUILD_ROOT%_bindir/diff_tpl_auto_escape


%files
%doc AUTHORS COPYING INSTALL README
%doc doc/designstyle.css
%_bindir/diff_tpl_auto_escape
%_bindir/make_tpl_varnames_h
%_bindir/template-converter
%_libdir/libctemplate_nothreads.so.*
%_libdir/libctemplate.so.*

%files devel
%doc doc/*.html
%_libdir/libctemplate_nothreads.so
%_libdir/libctemplate.so
%dir %_includedir/%name
%_includedir/%name/*.h

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin