Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37578999
en ru br
ALT Linux repos
S:0.9524-alt1
5.0: 0.93-alt0.M50.1
4.1: 0.93-alt0.M41.1

Group :: System/Libraries
RPM: htmltmplpro

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#set_automake_version 1.11

%def_disable static
#def_enable debug

%define libname libhtmltmplpro
Name: htmltmplpro
Version: 0.9524
Release: alt1

Summary: HTML::Template compatible HTML template library
License: LGPLv2+ or Artistic-2.0
Group: System/Libraries
Url: http://sf.net/projects/html-tmpl-pro
Packager: Igor Vlasenko <viy at altlinux.org>

Source: htmltmplpro-%version.tar.gz

BuildRequires: gcc doxygen graphviz
BuildRequires: libpcre2-devel

%package -n %libname
Summary: HTML::Template compatible HTML template shared library
Summary(ru_RU.UTF-8): Разделяемая библиотека для работы с шаблонами HTML::Template
Group: System/Libraries
Provides: %name = %version
Obsoletes: %name < %version

%package -n lib%name-devel
Summary: HTML::Template compatible HTML template library development environment
Group: Development/C
Provides: %name-devel = %version
Obsoletes: %name-devel < %version
Requires: %libname = %version-%release

%package -n lib%name-devel-static
Summary: HTML::Template compatible HTML template static library
Summary(ru_RU.UTF-8): Вариант библиотеки htmltemplpro для статической компоновки
Group: Development/C
Provides: %name-devel-static = %version
Obsoletes: %name-devel-static < %version
Requires: lib%name-devel = %version-%release

%package -n %name-testsuite
Summary: HTML template library common testsuite
Group: Development/C
Requires: %libname = %version-%release

%description
The HTML::Template::Pro library is a portable template engine for templates
that use syntax of known perl modules HTML::Template, HTML::Template::Expr
and HTML::Template::Pro.

%description -n %libname
The HTML::Template::Pro library is a portable template engine for templates
that use syntax of known perl modules HTML::Template, HTML::Template::Expr
and HTML::Template::Pro.

This package contains shared libraries.

%description -n lib%name-devel
The HTML::Template::Pro library is a portable template engine for templates
that use syntax of known perl modules HTML::Template, HTML::Template::Expr
and HTML::Template::Pro.

This package contains development libraries, include files and development
documentation required for developing applications which use perl-style
regular expressions.

%description -n lib%name-devel-static
The HTML::Template::Pro library is a portable template engine for templates
that use syntax of known perl modules HTML::Template, HTML::Template::Expr
and HTML::Template::Pro.

This package contains static development libraries required for developing
statically linked applications which use perl-style regular expressions.

%description -n %name-testsuite
The HTML::Template::Pro library is a portable template engine for templates
that use syntax of known perl modules HTML::Template, HTML::Template::Expr
and HTML::Template::Pro.

This package contains library's test suite to test its bindings.

%prep
%setup -q

%build
autoreconf -fisv
%define docdir %_docdir/%name-%version
%configure --includedir=%_includedir/%name \
--docdir=%docdir \
%{subst_enable static} \
#
%make_build
#%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build check}}}

%install
%make_install install DESTDIR=%buildroot

# install testsuite

mkdir -p %buildroot%_datadir/%name/
cp -a tests/templates-Pro %buildroot%_datadir/%name/

%check
make check

%files -n %libname
/%_libdir/lib*.so.*
#%dir %docdir
#%docdir/[ACLN]*

%files -n lib%name-devel
%doc doc/html
%doc API README
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*.pc

%files testsuite
%_datadir/%name

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%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