c153ff
%global commit b87a88aa66853d3c9d901d4e6be729c5fe69aae0
c153ff
%global shortcommit %(c=%{commit}; echo ${c:0:7})
5b0bfb
5b0bfb
Name:           hokuyoaist
c153ff
Version:        3.0.2
4a383a
Release:        29%{?dist}
5b0bfb
Summary:        Hokuyo Laser SCIP driver
5b0bfb
5b0bfb
License:        LGPLv3
5b0bfb
URL:            https://github.com/gbiggs/hokuyoaist
c153ff
Source0:        https://github.com/gbiggs/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
c153ff
Patch0:         %{name}-3.0.2-fedora.patch
f18d2d
Patch1:         %{name}-3.0.2-const.patch
0c44a6
Patch2:         0c9870d-fix-boost-lib.patch
0c44a6
Patch3:         51d99dbc-python3-support.patch
efc4eb
Patch4:         %{name}-3.0.2-boostpython.patch
c153ff
Igor Gnatenko b34ba0
BuildRequires:  gcc-c++
c153ff
BuildRequires:  boost-devel
0c44a6
BuildRequires:  boost-python3-devel
5b0bfb
BuildRequires:  cmake
5b0bfb
BuildRequires:  doxygen
5b0bfb
BuildRequires:  flexiport-devel
c153ff
BuildRequires:  graphviz
0c44a6
BuildRequires:  python3-devel
2b6352
BuildRequires:  python3-sphinx
5b0bfb
5b0bfb
# Older gearbox versions include the hokuyo_aist library, but the hokuyo 
5b0bfb
# library in gearbox 10.11 was relicensed to EPL.  This package conflcts 
5b0bfb
# with gearbox versions that included the hokuyo_aist support (9.11), 
5b0bfb
# but can be installed in parallel with gearbox version 10.11 (which
5b0bfb
# is built without hokuyo_aist support)
5b0bfb
Conflicts:      gearbox < 10.11
5b0bfb
5b0bfb
%description
5b0bfb
This library provides a driver for Hokuyo laser scanner devices using the 
5b0bfb
SCIP protocol version 1 or 2. It has been tested with the Hokuyo URG-04LX, 
5b0bfb
UBG-04LX, UHG-08LX, UTM-30LX and UXM-30LX-E but it should work with any 
5b0bfb
scanner that conforms to these protocol versions, including the URG-04LX-F01 
5b0bfb
and the URG-04LX-UG01 (Simple-URG).
5b0bfb
5b0bfb
%package devel
5b0bfb
Summary: Header files and libraries for %{name}
c153ff
Requires: %{name}%{?_isa} = %{version}-%{release}
5b0bfb
5b0bfb
%description devel
5b0bfb
Development libraries and header files for %{name}
5b0bfb
0c44a6
%package -n python3-%{name}
0c44a6
%{?python_provide:%python_provide python3-%{name}}
c153ff
Summary: Python bindings for %{name}
c153ff
Requires: %{name}%{?_isa} = %{version}-%{release}
c153ff
0c44a6
%description -n python3-%{name}
c153ff
Python bindings for %{name}
c153ff
5b0bfb
%prep
c153ff
%setup -qn %{name}-%{commit}
c153ff
%patch0 -p0 -b .fedora
efc4eb
%patch1 -p1 -b .const
0c44a6
%patch2 -p1
0c44a6
%patch3 -p1
efc4eb
%patch4 -p0 -b .boostpython
5b0bfb
# Fix the library and pkgconfig install paths.
c153ff
#sed -i 's/\"lib\"/\"%{_lib}\"/' CMakeLists.txt 
5b0bfb
# The "breathe" module is not available, so don't use it
5b0bfb
sed -i 's/extensions/#extensions/' doc/conf.py.in
5b0bfb
5b0bfb
%build
5b0bfb
mkdir build
5b0bfb
pushd build
c153ff
%cmake -DBUILD_EXAMPLES=OFF -DBOOST_LIB_SUFFIX="" ..
5b0bfb
popd
5b0bfb
make -C build %{?_smp_mflags}
5b0bfb
5b0bfb
%install
0c44a6
%make_install -C build
5b0bfb
5b0bfb
# Get rid of hidden junk doxygen generates, and remove the installed
5b0bfb
# documentation so we can install it with the doc macro
5b0bfb
rm -rf build/doc/html/.buildinfo
5b0bfb
rm -rf build/doc/html/.doctrees
0c44a6
rm -rf %{buildroot}%{_docdir}/%{name}-3
5b0bfb
5b0bfb
%files
5b0bfb
%doc COPYING COPYING.LESSER
5b0bfb
%{_libdir}/*.so.*
5b0bfb
5b0bfb
%files devel
5b0bfb
%doc build/doc/html
5b0bfb
%{_datadir}/%{name}-3
5b0bfb
%{_includedir}/%{name}-3
5b0bfb
%{_libdir}/*.so
5b0bfb
%{_libdir}/pkgconfig/*.pc
5b0bfb
%{_libdir}/%{name}
5b0bfb
0c44a6
%files -n python3-%{name}
0c44a6
%{python3_sitearch}/*.so
5b0bfb
5b0bfb
%changelog
4a383a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-29
4a383a
- Rebuilt for Python 3.8
4a383a
b259cd
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-28
b259cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b259cd
b8a01f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-27
b8a01f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b8a01f
65da54
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-26
65da54
- Rebuilt for Boost 1.69
65da54
2b6352
* Sat Dec 08 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-25
2b6352
- Use python3-sphinx to build the docs
2b6352
0c44a6
* Sat Nov 24 2018 Rich Mattes <richmattes@gmail.com> - 3.0.2-24
0c44a6
- Fix FTBFS (rhbz#1604332)
0c44a6
- Remove python2 package (rhbz#1634623)
0c44a6
- Enable upstream python3 support
0c44a6
fca451
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-23
fca451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fca451
b60dbc
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-22
b60dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b60dbc
5f9ae7
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-21
5f9ae7
- Rebuilt for Boost 1.66
5f9ae7
b7eeee
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2-20
b7eeee
- Python 2 binary package renamed to python2-hokuyoaist
b7eeee
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
b7eeee
1b87a1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-19
1b87a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1b87a1
d36888
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-18
d36888
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d36888
57fc7c
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-17
57fc7c
- Rebuilt for s390x binutils bug
57fc7c
3b5025
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-16
3b5025
- Rebuilt for Boost 1.64
3b5025
f18d2d
* Sun Mar 05 2017 Rich Mattes <richmattes@gmail.com> - 3.0.2-15
f18d2d
- Import upstream patches to fix FTBFS (rhbz#1423714) (rhbz#1307619)
f18d2d
fc2749
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-14
fc2749
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fc2749
4ebe98
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-13
4ebe98
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4ebe98
90087a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-12
90087a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
90087a
f8cbfe
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-11
f8cbfe
- Rebuilt for Boost 1.60
f8cbfe
8ae4dc
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-10
8ae4dc
- Rebuilt for Boost 1.59
8ae4dc
047360
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-9
047360
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
047360
a0ae40
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 3.0.2-8
a0ae40
- rebuild for Boost 1.58
a0ae40
13d6f9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-7
13d6f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
13d6f9
7ae3a9
* Wed Apr 29 2015 Kalev Lember <kalevlember@gmail.com> - 3.0.2-6
7ae3a9
- Rebuilt for GCC 5 ABI change
7ae3a9
Petr Machata 17e287
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 3.0.2-5
Petr Machata 17e287
- Rebuild for boost 1.57.0
Petr Machata 17e287
0371c4
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-4
0371c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0371c4
21ac68
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3
21ac68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
21ac68
Petr Machata 4bac18
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 3.0.2-2
Petr Machata 4bac18
- Rebuild for boost 1.55.0
Petr Machata 4bac18
c153ff
* Tue Mar 25 2014 Rich Mattes <richmattes@gmail.com> - 3.0.2-1
c153ff
- Update to release 3.0.2
c153ff
- Add python bindings
c153ff
3ccabe
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3.20120729git69df78b
3ccabe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3ccabe
e67543
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2.20120729git69df78b
e67543
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e67543
5b0bfb
* Sun Jul 29 2012 Rich Mattes <richmattes@gmail.com> - 3.0.1-1.20120729git69df78b
5b0bfb
- Fix release numbering