distrib > Mageia > cauldron > i586 > by-pkgid > 14ae2e23aa9aa217987b2dc6df33bc8e > files > 2


%define major 2
%define libname %mklibname ctpl %major
%define libname_devel %mklibname -d ctpl

Name:          ctpl
Version:       0.3.4
Release:       %mkrel 3
Summary:       Template library and engine written in C
Group:         System/Libraries
License:       GPLv3+

BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)

CTPL is a template library written in C. It allows fast and easy parsing of
templates from many sources (including in-memory data and local and remote
streaming, thanks to GIO) and fine control over template parsing environment.

CTPL has following features:
* It is a library, then it can be easily used from programs
* Separated lexer and parser
* It is written in portable C
* Simple syntax
* Fast and strict parsing
* Possible in-memory parsing, allowing non-file data parsing and avoiding
I/O-latency, through GIO's GMemoryInputStream and GMemoryOutputStream

%package -n %libname
Group:         System/Libraries
Summary:       Template library written in C

%description -n %libname
CTPL is a template library written in C.

This package contains the CTPL library.

%package -n %libname_devel
Group:         Development/C
Summary:       Devel package for the CTPL library
Requires:      %libname = %{?epoch:%epoch:}%{version}-%{release}
Provides:      %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}

%description -n %libname_devel
CTPL is a template library written in C.

This package contains the development headers of the CTPL library.

%package doc
Group:         Development/C
Summary:       Documentation for the CTPL library
Requires:      %libname = %{?epoch:%epoch:}%{version}-%{release}

%description doc
CTPL is a template library written in C.

This package contains the HTML documentation reference for the CTPL library.

%setup -q
# package with autotools
rm -f waf
rm -f wscript


%configure2_5x \
  --enable-gtk-doc \
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


# the --docdir flag is not working correctly,
mkdir -p %{buildroot}%{_docdir}/%{name}
install -pm 644 AUTHORS COPYING NEWS HACKING TODO README THANKS %{buildroot}%{_docdir}/%{name}
rm -rf $(find %{buildroot} -name "*.a")
rm -rf $(find %{buildroot} -name "*.la")
%find_lang %{name}

%files -f %{name}.lang

%files -n %libname

%files -n %libname_devel
%dir %{_includedir}/%{name}

%files doc

* Sun Sep 23 2018 umeabot <umeabot> 0.3.4-3.mga7
  (not released yet)
+ Revision: 1297344
- Mageia 7 Mass Rebuild

* Thu Feb 11 2016 umeabot <umeabot> 0.3.4-2.mga6
+ Revision: 953647
- Mageia 6 Mass Rebuild

* Mon Jun 22 2015 shlomif <shlomif> 0.3.4-1.mga6
+ Revision: 839188
- New version 0.3.4

* Wed Oct 15 2014 umeabot <umeabot> 0.3.2-6.mga5
+ Revision: 740076
- Second Mageia 5 Mass Rebuild

* Thu Sep 18 2014 umeabot <umeabot> 0.3.2-5.mga5
+ Revision: 693705
- Rebuild to fix library dependencies

* Tue Sep 16 2014 umeabot <umeabot> 0.3.2-4.mga5
+ Revision: 678611
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.3.2-3.mga4
+ Revision: 503633
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 0.3.2-2.mga3
+ Revision: 348389
- Mass Rebuild -

* Sat Nov 26 2011 gil <gil> 0.3.2-1.mga2
+ Revision: 172164
- imported package ctpl