Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 24d98ac39867fd8420a169a76dc6aee0 > files > 2

ctpl-0.3.2-2.mga3.src.rpm

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

Name:          ctpl
Version:       0.3.2
Release:       %mkrel 2
Summary:       Template library and engine written in C
Group:         System/Libraries
License:       GPLv3+
Url:           http://ctpl.tuxfamily.org/
Source0:       http://download.tuxfamily.org/ctpl/releases/ctpl-0.3.2.tar.gz

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

%description
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.

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

%build

%configure2_5x \
  --enable-gtk-doc \
  --docdir=%{_docdir}/%{name}
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
%make

%install
[ %{buildroot} != / ] && rm -rf %{buildroot}
%makeinstall_std

# 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")

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz

%files -n %libname
%defattr(-,root,root,-)
%{_libdir}/lib%{name}.so.*
%{_docdir}/%{name}/AUTHORS
%{_docdir}/%{name}/COPYING
%{_docdir}/%{name}/NEWS

%files -n %libname_devel
%defattr(-,root,root,-)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_docdir}/%{name}/HACKING
%{_docdir}/%{name}/TODO

%files doc
%defattr(-,root,root,-)
%{_datadir}/gtk-doc/html/%{name}
%{_docdir}/%{name}/README
%{_docdir}/%{name}/THANKS

%changelog

* Fri Jan 11 2013 umeabot <umeabot> 0.3.2-2.mga3
+ Revision: 348389
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

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