File ctemplate.spec of Package ctemplate
#
# spec file for package ctemplate (Version 0.95)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ctemplate
Summary: Library for simple but powerful template language for C++
Version: 0.95
Release: 1
Group: Development/Libraries/C and C++
License: BSD 3-clause (or similar)
Url: http://code.google.com/p/google-ctemplate/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
%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.
Authors:
--------
Google Inc. <opensource@google.com>
%package -n libctemplate0
Summary: Library for simple but powerful template language for C++
Group: Development/Libraries/C and C++
License: BSD 4-clause (or similar)
%description -n libctemplate0
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.
Authors:
--------
Google Inc. <opensource@google.com>
%package -n libctemplate-devel
License: BSD 4-clause (or similar)
Group: Development/Libraries/C and C++
Requires: libctemplate0 = %{version}
Summary: Library for simple but powerful template language for C++
%description -n libctemplate-devel
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.
Authors:
--------
Google Inc. <opensource@google.com>
%prep
%setup -q
chmod -R u+w .
%build
export verstring=`echo %{version} | sed 's|\.|:|'`
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f %{buildroot}/%{_libdir}/*.la
mkdir -p %{buildroot}/%{_defaultdocdir}
mv %{buildroot}/usr/share/doc/%{name}-%{version} %{buildroot}/%{_defaultdocdir}/%{name}
rm %{buildroot}/%{_defaultdocdir}/%{name}/{INSTALL,NEWS,README.windows}
%clean
rm -rf %{buildroot}
%post -n libctemplate0 -p /sbin/ldconfig
%postun -n libctemplate0 -p /sbin/ldconfig
%files -n libctemplate0
%defattr(-,root,root)
%{_libdir}/*.so.*
%dir %{_defaultdocdir}/%{name}
%{_defaultdocdir}/%{name}/[A-Z]*
%files -n libctemplate-devel
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/*.so
%dir %{_includedir}/ctemplate
%{_includedir}/ctemplate/*.h
%{_defaultdocdir}/%{name}/[a-z]*
%changelog