File generatorrunner.spec of Package generatorrunner
#
# spec file for package generatorrunner (Version 0.5.1.20100701)
#
# Copyright (c) 2010 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
%define libprefix libgenrunner
%define libsoversion 0_5
%define libname %{libprefix}%{libsoversion}
%define rversion 0.5.1
Name: generatorrunner
BuildRequires: gcc-c++ python-devel cmake libqt4-devel libapiextractor-devel
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Plugin-based application to run apiextractor-based generators
Version: 0.5.1.20100701
Release: 1
Url: http://www.pyside.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: generatorrunner-%{version}.tar.bz2
%description
GeneratorRunner is the application responsible for loading and executing the
generator front-ends provided by the user as plug-ins.
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 -n docgenerator
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Plugin-based application to run apiextractor-based generators
%description -n docgenerator
Generates documentation for C++ library bindings using sphinx.
The Binding Generator is a utility that parses the headers for a given C/C++
library and modifies this data with the information and guides from XML files
(called typesystem files) containing complementar semantic information,
modifications, renamings, etc, in order to generate binding source code (or
documentation, or anything you want) for the target language for which it was
written.
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 -n %{libname}
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Plugin-based application to run apiextractor-based generators
%description -n %{libname}
GeneratorRunner is the application responsible for loading and executing the
generator front-ends provided by the user as plug-ins.
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 -n %{libprefix}-devel
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Plugin-based application to run apiextractor-based generators
Requires: %{libname} = %{version} libapiextractor-devel
%description -n %{libprefix}-devel
GeneratorRunner is the application responsible for loading and executing the
generator front-ends provided by the user as plug-ins.
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 generatorrunner-%{version}
%build
%{__mkdir} build
pushd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DLIB_SUFFIX=$(echo %_lib | cut -b4-) \
-DBUILD_TESTS=False
make %{?jobs:-j%jobs}
%install
pushd build
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%fdupes $RPM_BUILD_ROOT
%endif
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%_bindir/%{name}
%_mandir/man1/%{name}*
%files -n docgenerator
%defattr(-,root,root)
%_mandir/man1/docgenerator*
%_bindir/docgenerator
%_libdir/%{name}/libqtdoc_generator.so
%files -n %{libname}
%defattr(-,root,root)
%_libdir/libgenrunner.so.*
%files -n %{libprefix}-devel
%defattr(-,root,root)
%dir %_includedir/generatorrunner
%dir %_libdir/generatorrunner
%dir %_libdir/cmake/GeneratorRunner-%{rversion}
%_includedir/generatorrunner/generator*.h
%_libdir/libgenrunner.so
%_libdir/pkgconfig/generatorrunner.pc
%_libdir/cmake/GeneratorRunner-%{rversion}/*.cmake
%changelog