A new user interface for you! Read more...

File libapiextractor0.spec of Package apiextractor

#
# spec file for package apiextractor (Version 0.3.3)
#
# Copyright (c) 2009 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:           libapiextractor0
BuildRequires:  gcc-c++ boost-devel cmake libqt4-devel libxml2-devel libxslt-devel
%if 0%{?suse_version}
BuildRequires:  libQtWebKit-devel fdupes
%endif
License:        GPL v2 or later
Group:          Development/Libraries/C and C++
Summary:        Binding generator to parse the header and typesystem files
Version:        0.3.3
Release:        2
Url:            http://www.pyside.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        apiextractor-%{version}.tar.bz2
Patch0:         apiextractor-cmake-fix-dirs.patch

%description
The API Extractor library is used by the binding generator to parse the header
and typesystem files to create an internal representation of the API.
It is based on the QtScriptGenerator codebase.


Authors:
--------
    Anderson Lizardo <anderson.lizardo@openbossa.org>
    Bruno Araujo <bruno.araujo@openbossa.org>
    Hugo Parente Lima <hugo.lima@openbossa.org>
    Lauro Moura <lauro.neto@openbossa.org>
    Luciano Wolf <luciano.wolf@openbossa.org>
    Marcelo Lira <marcelo.lira@openbossa.org>
    Renato Araujo Oliveira Filho <renato.filho@openbossa.org>

%package devel
License:        GPL v2 or later
Group:          Development/Libraries/C and C++
Summary:        Binding generator to parse the header and typesystem files
Requires:       %{name} = %{version} libqt4-devel

%description devel
The API Extractor library is used by the binding generator to parse the header
and typesystem files to create an internal representation of the API.
It is based on the QtScriptGenerator codebase.


Authors:
--------
    Anderson Lizardo <anderson.lizardo@openbossa.org>
    Bruno Araujo <bruno.araujo@openbossa.org>
    Hugo Parente Lima <hugo.lima@openbossa.org>
    Lauro Moura <lauro.neto@openbossa.org>
    Luciano Wolf <luciano.wolf@openbossa.org>
    Marcelo Lira <marcelo.lira@openbossa.org>
    Renato Araujo Oliveira Filho <renato.filho@openbossa.org>

%prep
%setup -q -n apiextractor-%{version}
%patch0

%build
%{__mkdir} build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=%_prefix -DLIB_SUFFIX=$(echo %_lib | cut -b4-)
make %{?jobs:-j%jobs}

%install
pushd build
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%fdupes $RPM_BUILD_ROOT
%endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%_libdir/libapiextractor.so.*

%files devel
%defattr(-,root,root)
%dir %_includedir/apiextractor
%_includedir/apiextractor/*.h
%_libdir/libapiextractor.so
%_libdir/pkgconfig/apiextractor.pc
%_datadir/cmake/Modules/FindApiExtractor.cmake

%changelog