File limal.spec of Package limal

# spec file for package limal
# Copyright (c) 2012 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

Name:           limal
Version:        1.6.3
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Source0:        limal-1.6.3.tar.bz2
Patch0:         limal-1.6.3.diff
Patch1:         limal-1.6.3-swig.diff

Prefix:         /usr
%define		swiglibdir /usr/share/limal/typemaps 

#!BuildIgnore: limal limal-devel limal-perl
BuildRequires:  curl
BuildRequires:  gcc-c++
BuildRequires:  libblocxx-devel
BuildRequires:  limal-devtools
BuildRequires:  openssl-devel
BuildRequires:  perl-gettext
BuildRequires:  sgml-skel
BuildRequires:  translation-update-upstream
Summary:        LiMaL--Core Library
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
%if 0%{?fedora_version} >= 7
BuildRequires:  perl-ExtUtils-Embed

LiMaL is an C++ framework enhancement for BloCXX. This package contains
the LiMaL core library which include some basic functionality like
logging and file handling.

%package devel
Requires:       limal = %version
Requires:       limal-devel

Requires:       libblocxx-devel
Requires:       libstdc++-devel
Requires:       limal-devtools
Requires:       pcre-devel
Summary:        LiMaL - Core Library Development Files 
Group:          Development/Libraries/C and C++

%description devel
LiMaL - Core Library Development Files

%package perl
Requires:       limal-perl
Summary:        LiMaL - Core Library Perl Bindings
Group:          Development/Libraries/Perl

%description perl
LiMaL - Core Library Perl Bindings

%setup -n limal-1.6.3

%{prefix}/bin/limaltool limalautoconf
%{prefix}/bin/limaltool limalautomake
autoreconf --force --install --verbose


%{?suse_update_config:%{suse_update_config -f}}
# workaround for fedora gettext check on x86_64
sed -i -e 's/return (int) gettext/return (long) gettext/g' ./configure
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} \
            --sysconfdir=/etc --localstatedir=/var
make %{?jobs:-j%jobs}

make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/limal/devtools/NO_MAKE_CHECK" ] || \
           LIMALDATADIR="$RPM_BUILD_ROOT/usr/share/limal"  \
# required for perl test cases
export LD_LIBRARY_PATH="$RPM_BUILD_ROOT/usr/lib/limal"

%find_lang %name 



rm -rf "$RPM_BUILD_ROOT"

%files -f %name.lang
%dir %{_libdir}/limal

%files devel
%dir %{_libdir}/limal
%dir %{_includedir}/limal
%dir %{swiglibdir}
%dir %{swiglibdir}/perl5
%doc %{_prefix}/share/doc/packages/limal

%files perl
%dir %{perl_vendorarch}/auto/LIMAL
%dir %{perl_vendorarch}/LIMAL

openSUSE Build Service is sponsored by