From 447661d82d16e9bdd845e96e9fe62ca496690c56 Mon Sep 17 00:00:00 2001 From: Till Hofmann Date: May 03 2017 09:58:01 +0000 Subject: Cleanup Spec, rename to g2o, switch to RainerKuemmerle/g2o upstream --- diff --git a/g2o.spec b/g2o.spec new file mode 100644 index 0000000..187def7 --- /dev/null +++ b/g2o.spec @@ -0,0 +1,63 @@ +Name: g2o +Version: 2016.4.24 +Release: 2%{?dist} +Summary: A General Framework for Graph Optimization + +License: BSD +URL: https://github.com/RainerKuemmerle/g2o +Source0: https://github.com/RainerKuemmerle/g2o/archive/20160424_git.tar.gz#/%{name}-%{version}.tar.gz +Patch0: g2o.libsuffix.patch + +Conflicts: ros-kinetic-libg2o +Obsoletes: ros-kinetic-libg2o <= 2016.4.24-1 + +Requires: boost-devel +Requires: eigen3-devel +Requires: mesa-libGL-devel +Requires: mesa-libGLU-devel +Requires: suitesparse-devel +BuildRequires: boost-devel +BuildRequires: cmake +BuildRequires: eigen3-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLU-devel +BuildRequires: suitesparse-devel + +%description +The libg2o library from http://openslam.org/g2o.html + +%prep +%autosetup -p1 -n %{name}-20160424_git + +%build +mkdir -p obj-%{_target_platform} && cd obj-%{_target_platform} +%cmake .. \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DCATKIN_BUILD_BINARY_PACKAGE="1" \ + +%make_build + +%install +pushd obj-%{_target_platform} +%make_install + +%files +%{_bindir}/* +%{_libdir}/* +%{_includedir}/* + +%changelog +* Wed May 03 2017 Till Hofmann - 2016.4.24-2 +- Rename to g2o +- Switch to repository RainerKuemmerle/g2o +- Clean up Spec file + +* Tue May 02 2017 Nicolas Limpert - 2016.4.24-1 +- changed install-target to /usr + +* Mon Apr 25 2016 Vincent Rabaud - 2016.4.24-0 +- Autogenerated by Bloom + +* Mon Apr 25 2016 Vincent Rabaud - 2016.4.12-0 +- Autogenerated by Bloom + diff --git a/libg2o.spec b/libg2o.spec deleted file mode 100644 index b9eb335..0000000 --- a/libg2o.spec +++ /dev/null @@ -1,65 +0,0 @@ -Name: ros-kinetic-libg2o -Version: 2016.4.24 -Release: 1%{?dist} -Summary: ROS libg2o package - -Group: Development/Libraries -License: BSD -URL: https://github.com/RainerKuemmerle/g2o -Source0: %{name}-%{version}.tar.gz -Patch0: libg2o.libsuffix.patch - -Requires: boost-devel -Requires: eigen3-devel -Requires: mesa-libGL-devel -Requires: mesa-libGLU-devel -#Requires: ros-kinetic-catkin -Requires: suitesparse-devel -BuildRequires: boost-devel -BuildRequires: cmake -BuildRequires: eigen3-devel -BuildRequires: mesa-libGL-devel -BuildRequires: mesa-libGLU-devel -BuildRequires: suitesparse-devel - -%description -The libg2o library from http://openslam.org/g2o.html - -%prep -%autosetup -p1 -n libg2o-release-release-kinetic-libg2o-2016.4.24-0 - -%build -# In case we're installing to a non-standard location, look for a setup.sh -# in the install tree that was dropped by catkin, and source it. It will -# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -#if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi -mkdir -p obj-%{_target_platform} && cd obj-%{_target_platform} -%cmake .. \ - -DSETUPTOOLS_DEB_LAYOUT=OFF \ - -DCATKIN_BUILD_BINARY_PACKAGE="1" \ - -make %{?_smp_mflags} - -%install -# In case we're installing to a non-standard location, look for a setup.sh -# in the install tree that was dropped by catkin, and source it. It will -# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. -#if [ -f "/opt/ros/kinetic/setup.sh" ]; then . "/opt/ros/kinetic/setup.sh"; fi -cd obj-%{_target_platform} -make %{?_smp_mflags} install DESTDIR=%{buildroot} - -%files -%{_bindir}/* -%{_libdir}/* -%{_includedir}/* - -%changelog -* Tue May 02 2017 Nicolas Limpert - 2016.4.24-1 -- changed install-target to /usr - -* Mon Apr 25 2016 Vincent Rabaud - 2016.4.24-0 -- Autogenerated by Bloom - -* Mon Apr 25 2016 Vincent Rabaud - 2016.4.12-0 -- Autogenerated by Bloom -