File limal-devtools.spec of Package limal-devtools

#
# spec file for package limal-devtools
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           limal-devtools
Version:        1.6.3
Release:        0
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Source0:        limal-devtools-1.6.3.tar.bz2

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

Url:            http://svn.opensuse.org/viewvc/limal/
BuildRequires:  docbook-xsl-stylesheets gcc-c++ libtool libxslt pkgconfig sgml-skel swig
Requires:       libxslt
Requires:       doxygen dejagnu
Requires:       gettext gettext-devel recode
Requires:       autoconf automake libtool
Requires:       pkgconfig swig
Requires:       openssl-devel
# cvs required by autopoint
Requires:       cvs

%if 0%{?suse_version}
Recommends:     subversion
Requires:       docbook-xsl-stylesheets
%endif

%if  0%{?fedora_version}
Requires:       docbook-style-xsl
AutoReqProv:    off
%endif
Summary:        LiMaL--Development Tools

%description
Scripts and templates for developing LiMaL modules and components.
Required for rebuilding the existing LiMaL modules and components.

Authors:
--------
    Stefan Hundhammer <sh@suse.de>
    Klaus Kaempf <kkaempf@suse.de>
    Arvin Schnell <arvin@suse.de>
    Martin Vidner <mvidner@suse.cz>
    Stanislav Visnovsky <visnov@suse.cz>
    Michal Svec <msvec@suse.cz>
    Stefan Schubert <schubi@suse.de>


%prep
%setup -n limal-devtools-1.6.3

%build
autoreconf --force --install --verbose

%{?suse_update_config:%{suse_update_config -f}}
./configure --prefix=%{prefix} --libdir=%{_libdir} --mandir=%{_mandir}
make

%install
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"
make check DESTDIR="$RPM_BUILD_ROOT"

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%{_bindir}/limaltool
%{_bindir}/limaldoxygen
%{_prefix}/share/limal
%{_prefix}/share/aclocal/*.m4
%{_prefix}/share/pkgconfig/limal-devtools.pc
%doc %{_prefix}/share/doc/packages/limal-devtools

%changelog