mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-10-05 19:16:54 +08:00

* ctemplate: version 0.92 release * BUG FIX: affecting an included string-template with autoescaping (jad) * BUG FIX: long-name cmdline flag in diff_tpl_auto_escape (jad) * Do include-template indenting after applying modifiers (jad) * Add human-readable error messages to the html parser (falmeida) * Create an abstract base class for TemplateDictionary (williasr) * PORTING: Be more careful about Windows #defines and types (csilvers) * PORTING: Make unittest scripts more sh-compatible (falmeida) * Show missing includes in annotated output (ribrdb) * Improvements to javascript escaping (escape \f) (jad) * Improvements to json escaping (escape <>&) (jad) * Avoid raciness by preferring cached to new template-strings (csilvers)
81 lines
2.2 KiB
RPMSpec
81 lines
2.2 KiB
RPMSpec
%define RELEASE 1
|
|
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
|
|
%define prefix /usr
|
|
|
|
Name: %NAME
|
|
Summary: Simple but powerful template language for C++
|
|
Version: %VERSION
|
|
Release: %rel
|
|
Group: Development/Libraries
|
|
URL: http://code.google.com/p/google-ctemplate
|
|
License: BSD
|
|
Vendor: Google
|
|
Packager: Google Inc. <opensource@google.com>
|
|
Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
|
|
Distribution: Redhat 7 and above.
|
|
Buildroot: %{_tmppath}/%{name}-root
|
|
Prefix: %prefix
|
|
|
|
%description
|
|
The %name 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 devel
|
|
Summary: Simple but powerful template language for C++
|
|
Group: Development/Libraries
|
|
Requires: %{NAME} = %{VERSION}
|
|
|
|
%description devel
|
|
The %name-devel package contains static and debug libraries and header
|
|
files for developing applications that use the %name package.
|
|
|
|
%changelog
|
|
* Mon Mar 13 2006 <opensource@google.com>
|
|
- First draft
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
./configure
|
|
make prefix=%prefix
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make prefix=$RPM_BUILD_ROOT%{prefix} install
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
|
|
%doc doc/designstyle.css doc/index.html
|
|
%doc doc/howto.html doc/auto_escape.html doc/tips.html doc/example.html
|
|
%doc doc/xss_resources.html
|
|
%doc contrib/README.contrib contrib/highlighting.vim contrib/tpl-mode.el
|
|
|
|
%{prefix}/lib/libctemplate.so.0
|
|
%{prefix}/lib/libctemplate.so.0.0.0
|
|
%{prefix}/lib/libctemplate_nothreads.so.0
|
|
%{prefix}/lib/libctemplate_nothreads.so.0.0.0
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
|
|
%{prefix}/include/google
|
|
%{prefix}/lib/libctemplate.a
|
|
%{prefix}/lib/libctemplate.la
|
|
%{prefix}/lib/libctemplate.so
|
|
%{prefix}/lib/libctemplate_nothreads.a
|
|
%{prefix}/lib/libctemplate_nothreads.la
|
|
%{prefix}/lib/libctemplate_nothreads.so
|
|
%{prefix}/bin/make_tpl_varnames_h
|
|
%{prefix}/bin/template-converter
|
|
%{prefix}/bin/diff_tpl_auto_escape
|