Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 30ecb78c107cf33ee3194b317653d761 > files > 2

teng-2.0.4-0.20080222.2mdv2010.0.src.rpm

%define	snap 20080222

%define	major 2
%define	libname %mklibname %{name} %major
%define	develname %mklibname %{name} -d

Summary:	Templating engine writen in C++
Name:		teng
Version:	2.0.4
Release:	%mkrel 0.%{snap}.2
License:	LGPL
Group:		System/Libraries
URL:		http://teng.sourceforge.net/
Source0:	teng.tar.gz
Patch0:		teng-gcc43.diff
BuildRequires:	libtool
BuildRequires:	flex
BuildRequires:	bison
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Teng is a general purpose templating engine writen in C++ (i.e. library). It is
also available as Python module or PHP extension. The main idea of teng is to
strictly separate application logic from presentation layer. Widely used on
dynamic web sites.

%package -n	%{libname}
Summary:	The shared Teng libraries
Group:		System/Libraries

%description -n	%{libname}
Teng is a general purpose templating engine writen in C++ (i.e. library). It is
also available as Python module or PHP extension. The main idea of teng is to
strictly separate application logic from presentation layer. Widely used on
dynamic web sites.

This package contains the shared Teng libraries.

%package -n	%{develname}
Summary:	Development files from Teng
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname teng 1 -d}

%description -n	%{develname}
Development files from Teng.

%prep

%setup -q -n %{name}
%patch0 -p1

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
sh ./bootstrap.sh

%configure2_5x

%make

%install
rm -rf %{buildroot}

%makeinstall

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files	-n %{libname}
%defattr(0644,root,root,0755)
%doc COPYING README INSTALL AUTHORS
%{_libdir}/lib%{name}.so.*

%files	-n %{develname}
%defattr(0644,root,root,0755)
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}.la


%changelog
* Wed Sep 09 2009 Thierry Vignaud <tvignaud@mandriva.com> 2.0.4-0.20080222.2mdv2010.0
+ Revision: 434333
- rebuild

* Wed Jul 09 2008 Oden Eriksson <oeriksson@mandriva.com> 2.0.4-0.20080222.1mdv2009.0
+ Revision: 233017
- 2.0.4 (cvs snap 20080222)
- fix build with gcc43 (P0)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Feb 05 2008 Oden Eriksson <oeriksson@mandriva.com> 2.0.1-0.20071219.1mdv2008.1
+ Revision: 162779
- new snap (20071219)
- fix deps

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Nov 13 2007 Oden Eriksson <oeriksson@mandriva.com> 2.0.1-0.20071026.1mdv2008.1
+ Revision: 108440
- 2.0.1 (a recent 20071026 cvs snap)
- new major (2)
- new devel naming


* Wed Jun 15 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 1.0.10-2mdk
- err, fixed requires

* Wed Jun 15 2005 Tibor Pittich <Tibor.Pittich@mandriva.org> 1.0.10-1mdk
- initial rpm package 
- small gcc4 fix as P0