liblas/liblas.spec

149 lines
4.4 KiB
RPMSpec
Raw Normal View History

2015-04-19 21:37:54 +00:00
Summary: LAS 1.0/1.1/1.2 ASPRS LiDAR data translation toolset
Name: liblas
Version: 1.8.0
Release: 11%{?dist}
2015-04-19 21:37:54 +00:00
License: BSD and Boost
Source: http://download.osgeo.org/%{name}/libLAS-%{version}.tar.bz2
URL: http://www.liblas.org/
BuildRequires: boost-devel >= 1.53
BuildRequires: cmake
BuildRequires: gdal-devel
BuildRequires: laszip-devel
BuildRequires: libgeotiff-devel
BuildRequires: libtiff-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: laszip
2015-04-19 21:37:54 +00:00
%description
libLAS is a C/C++ library for reading and writing the very common LAS LiDAR
format. The ASPRS LAS format is a sequential binary format used to store data
from LiDAR sensors and by LiDAR processing software for data interchange and
archival.
%package libs
Summary: The shared libraries required for liblas
Group: Applications/Databases
2015-04-19 21:37:54 +00:00
%description libs
The liblas-libs package provides the essential shared libraries for any
liblasL client program or interface. You will need to install this package
to use liblas
%package devel
Summary: The development files for liblas
Group: Development/Libraries
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: boost-devel >= 1.53
Requires: gdal-devel
Requires: laszip-devel
Requires: libgeotiff-devel
Requires: libtiff-devel
%description devel
Development headers and libraries for liblas.
2015-04-19 21:37:54 +00:00
%prep
%setup -q -n libLAS-%{version}
sed -i -e 's#@libdir@#%{_libdir}#' \
-e 's#@Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE@#-lboost_program_options#' \
-e 's#@Boost_THREAD_LIBRARY_RELEASE@#-lboost_thread#' \
-e 's#@GDAL_LIBRARY@#-lgdal#' \
-e 's#@GEOTIFF_LIBRARY@#-lgeotiff#' \
-e 's#@TIFF_LIBRARY@#-ltiff#' \
-e 's#@LASZIP_LIBRARY@#-llaszip#' \
%{_builddir}/libLAS-%{version}/apps/liblas-config.in
2015-04-19 21:37:54 +00:00
%build
%cmake -DWITH_GDAL:BOOL=ON \
-DWITH_GEOTIFF:BOOL=ON \
-DGEOTIFF_INCLUDE_DIR:PATH="$(pkg-config --variable=includedir libgeotiff)" \
-DWITH_LASZIP:BOOL=ON \
-DWITH_TESTS:BOOL=OFF \
-DWITH_UTILITIES:BOOL=ON \
-DLIBLAS_LIB_SUBDIR:PATH=%{_lib} \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DWITH_PKGCONFIG:BOOL=OFF \
-DCMAKE_SKIP_RPATH:BOOL=ON .
make %{?_smp_mflags}
%install
%make_install
2015-04-19 21:37:54 +00:00
%postun libs -p /sbin/ldconfig
%post libs -p /sbin/ldconfig
2015-04-19 21:37:54 +00:00
%files
%doc AUTHORS README.txt
%exclude %{_bindir}/liblas-config
%exclude %{_datadir}/%{name}/
%{_bindir}/*
%files libs
%license LICENSE.txt
%{_libdir}/*.so.*
2015-04-19 21:37:54 +00:00
%files devel
%{_bindir}/liblas-config
%{_datadir}/cmake/libLAS-%{version}/
%{_includedir}/%{name}/
%{_libdir}/*.so
2015-04-19 21:37:54 +00:00
%changelog
* Tue Mar 08 2016 Thomas Kreuzer <thomas.kreuzer@uni-vechta.de> - 1.8.0-11
- Fix bug #1311953
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-15 10:27:12 +00:00
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-9
- Rebuilt for Boost 1.60
2015-08-27 19:58:24 +00:00
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-8
- Rebuilt for Boost 1.59
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-7
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
2015-07-27 13:37:16 +00:00
* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.8.0-6
- Rebuilt for libgdal
2015-07-22 16:53:16 +00:00
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.8.0-5
- rebuild for Boost 1.58
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-04-19 21:37:54 +00:00
* Fri Apr 17 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-3
- Various updates, per Fedora review from Rex:
- Update license
- omit INSTALL from %%doc
- Own directories in -devel subpackage
- omit deprecated Group: tags and %%clean section
- Use better macros for make and cmake
- use %%%{?_isa} macro in subpkg dependencies
- have %%build section envoke 'make'
2015-04-19 21:37:54 +00:00
- Update %%install section
- Improve cmake build parameters, also fix rpath
- move liblaszip.so symlink to -devel subpkg
- move liblas-config to -devel subpackage
- Split -devel and -libs subpackages
* Fri Apr 17 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-2
- Various updates:
* Split -devel and -libs subpackages
* Use %%license macro
* Use %%make_install macro
* Get rid of BuildRoot definition
* No need to cleanup buildroot during %%install
* Remove %%defattr
* Run ldconfig
* Fix version numbers in spec file
* BR laszip-devel, and require laszip, per recent laszip changes.
* Tue Jan 13 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-1
- Initial packaging