]>
Commit | Line | Data |
---|---|---|
6e22547c JB |
1 | Summary: LASzip - free and lossless LiDAR compression |
2 | Summary(pl.UTF-8): LASzip - wolnodostępna, bezstratna kompresja danych LiDARowych | |
3 | Name: laszip | |
4 | Version: 3.4.3 | |
5 | Release: 1 | |
6 | License: LGPL v2.1 | |
7 | Group: Libraries | |
8 | #Source0Download: https://laszip.org/ | |
9 | Source0: https://github.com/LASzip/LASzip/releases/download/%{version}/%{name}-src-%{version}.tar.gz | |
10 | # Source0-md5: e07be9ba6247889a4ba0bda8535c77e3 | |
11 | Patch0: %{name}-link.patch | |
12 | # from Fedora: restore old API for libLAS, related to https://github.com/libLAS/libLAS/issues/144 | |
13 | Patch1: %{name}-restoreapi.patch | |
14 | Patch2: %{name}-example.patch | |
15 | URL: https://laszip.org/ | |
16 | BuildRequires: cmake >= 2.8.11 | |
17 | BuildRequires: libstdc++-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | LASzip - a free open source product of rapidlasso GmbH - quickly turns | |
22 | bulky LAS files into compact LAZ files without information loss. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | LASzip - darmowy, mający otwarty kod źródłowy produk rapidlasso GmbH - | |
26 | szybko przekształca masywne pliki LAS w kompaktowe pliki LAZ bez | |
27 | utraty informacji. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for LASzip library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LASzip | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | Requires: libstdc++-devel | |
35 | ||
36 | %description devel | |
37 | Header files for LASzip library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki LASzip. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{name}-src-%{version} | |
44 | %patch0 -p1 | |
45 | %patch1 -p1 | |
46 | %patch2 -p1 | |
47 | ||
48 | %build | |
49 | install -d build/example | |
50 | cd build | |
51 | %cmake .. | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} -C build install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | # omitted by install | |
62 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} | |
63 | cp -p build/example/laszip.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
64 | ||
65 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/laszippertest | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc AUTHORS CHANGES.txt ChangeLog NEWS README.rst | |
76 | %attr(755,root,root) %{_libdir}/liblaszip.so.*.*.* | |
77 | %attr(755,root,root) %ghost %{_libdir}/liblaszip.so.8 | |
78 | %attr(755,root,root) %{_libdir}/liblaszip_api.so.*.*.* | |
79 | %attr(755,root,root) %ghost %{_libdir}/liblaszip_api.so.8 | |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %doc design/*.rst | |
84 | %attr(755,root,root) %{_bindir}/laszip-config | |
85 | %attr(755,root,root) %{_libdir}/liblaszip.so | |
86 | %attr(755,root,root) %{_libdir}/liblaszip_api.so | |
87 | %{_includedir}/laszip | |
88 | %{_pkgconfigdir}/laszip.pc |