2019-01-21 08:09:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package rttr
|
|
|
|
#
|
2019-03-15 11:32:53 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-01-21 08:09:39 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-01-21 08:09:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rttr
|
|
|
|
Version: 0.9.6
|
|
|
|
Release: 0
|
2019-03-15 11:32:53 +01:00
|
|
|
Summary: Run Time Type Reflection for C++
|
2019-01-21 08:09:39 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/C and C++
|
2019-03-15 11:32:53 +01:00
|
|
|
URL: http://www.rttr.org/releases/rttr-%{version}-src.tar.gz
|
2019-01-21 08:09:39 +01:00
|
|
|
Source0: %{name}-%{version}-src.tar.gz
|
|
|
|
#PATCH-FIX-OPENSUSE cxx11_compiler_flags.patch force c++11 mode on gcc4.8 (for Leap 42.3)
|
|
|
|
Patch0: cxx11_compiler_flags.patch
|
|
|
|
#PATCH-FIX-OPENSUSE cmake_install_dir.patch fix cmake installation directories for SUSE standards
|
|
|
|
Patch1: cmake_install_dir.patch
|
|
|
|
#PATCH-FIX-OPENSUSE doxygen_remove_date_time.patch remove date and time information from generated documentation
|
|
|
|
Patch2: doxygen_remove_date_time.patch
|
2019-03-15 11:32:53 +01:00
|
|
|
#PATCH-FIX-OPENSUSE skip_json_example.patch fix compile error (https://github.com/rttrorg/rttr/issues/224)
|
|
|
|
Patch3: skip_json_example.patch
|
2019-04-01 15:53:49 +02:00
|
|
|
# PATCH-FIX-OPENSUSE fix-include-permissions.patch fix wrong permissions of headers (https://github.com/rttrorg/rttr/issues/147)
|
|
|
|
Patch4: fix-include-permissions.patch
|
2019-05-09 15:48:28 +02:00
|
|
|
# PATCH-FIX-UPSTREAM lp64.patch Support all LP64 architectures (https://github.com/rttrorg/rttr/pull/231)
|
|
|
|
Patch5: lp64.patch
|
2019-06-04 04:55:31 +02:00
|
|
|
#PATCH-FIX-UPSTREAM remove_pessimizing_moves.patch remove pessimizing move calls (https://github.com/rttrorg/rttr/pull/243)
|
2019-06-26 02:39:23 +02:00
|
|
|
Patch6: remove_pessimizing_moves.patch
|
2019-01-21 08:09:39 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: dos2unix
|
2019-03-15 11:32:53 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%description
|
2019-03-15 11:32:53 +01:00
|
|
|
Run Time Type Reflection is the the ability of a computer program to
|
|
|
|
introspect and modify objects at runtime. It is also the name of the
|
|
|
|
library itself, which is written in C++.
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n%{name}-%{version}
|
|
|
|
%if 0%{?suse_version} < 1500
|
2024-03-01 13:37:33 +01:00
|
|
|
%patch -P 0 -p1
|
2019-01-21 08:09:39 +01:00
|
|
|
%endif
|
2024-03-01 13:37:33 +01:00
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3 -p1
|
|
|
|
%patch -P 4 -p1
|
|
|
|
%patch -P 5 -p1
|
2019-06-04 05:09:49 +02:00
|
|
|
|
|
|
|
#only apply move elision to gcc versions that support it
|
2019-06-26 02:39:23 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2024-03-01 13:37:33 +01:00
|
|
|
%patch -P 6 -p1
|
2019-06-04 05:09:49 +02:00
|
|
|
%endif
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%build
|
2019-03-15 11:32:53 +01:00
|
|
|
find . -type f -exec chmod a-x "{}" +
|
|
|
|
dos2unix README.md
|
2019-07-06 00:55:07 +02:00
|
|
|
%cmake -DBUILD_BENCHMARKS=OFF -DCMAKE_INSTALL_CMAKEDIR=cmake -DBUILD_UNIT_TESTS=OFF
|
2019-01-21 08:09:39 +01:00
|
|
|
#make unit tests pass
|
|
|
|
export LD_LIBRARY_PATH=%{_builddir}/rttr-%{version}/build/lib/
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
#make unit tests pass
|
|
|
|
export LD_LIBRARY_PATH=%{_builddir}/rttr-%{version}/build/lib/
|
|
|
|
%cmake_install rttr_core
|
2019-03-15 11:32:53 +01:00
|
|
|
rm -Rf %{buildroot}/%{_datadir}/rttr
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%package -n lib%{name}_core0_9_6
|
2019-03-15 11:32:53 +01:00
|
|
|
Summary: Run Time Type Reflection for C++
|
|
|
|
Group: System/Libraries
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%description -n lib%{name}_core0_9_6
|
2019-03-15 11:32:53 +01:00
|
|
|
Run Time Type Reflection is the the ability of a computer program to
|
|
|
|
introspect and modify objects at runtime. It is also the name of the
|
|
|
|
library itself, which is written in C++.
|
2019-01-21 08:09:39 +01:00
|
|
|
|
|
|
|
%post -n lib%{name}_core0_9_6 -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}_core0_9_6 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{name}_core0_9_6
|
2019-03-15 11:32:53 +01:00
|
|
|
%license LICENSE.txt
|
2019-01-21 08:09:39 +01:00
|
|
|
%{_libdir}/librttr_core.so.%{version}
|
|
|
|
|
|
|
|
%package devel
|
2019-03-15 11:32:53 +01:00
|
|
|
Summary: Header files for the C++ Run Time Type Reflection library
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: librttr_core0_9_6 = %{version}
|
2019-01-21 08:09:39 +01:00
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
%description devel
|
|
|
|
Run Time Type Reflection is the the ability of a computer program to
|
|
|
|
introspect and modify objects at runtime. It is also the name of the
|
|
|
|
library itself, which is written in C++.
|
2019-01-21 08:09:39 +01:00
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
%files devel
|
2019-01-21 08:09:39 +01:00
|
|
|
%{_includedir}/rttr/
|
|
|
|
%{_libdir}/librttr_core.so
|
|
|
|
%{_libdir}/cmake/rttr/
|
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
%package devel-doc
|
|
|
|
Summary: Documentation for rttr
|
|
|
|
Group: Documentation/Other
|
2019-01-21 08:09:39 +01:00
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
%description devel-doc
|
|
|
|
API Documentation for rttr
|
2019-01-21 08:09:39 +01:00
|
|
|
|
2019-03-15 11:32:53 +01:00
|
|
|
%files devel-doc
|
|
|
|
%doc README.md
|
2019-01-21 08:09:39 +01:00
|
|
|
%{_docdir}/rttr/
|
|
|
|
|
|
|
|
%changelog
|