]> git.pld-linux.org Git - packages/laszip.git/blame - laszip.spec
- new
[packages/laszip.git] / laszip.spec
CommitLineData
6e22547c
JB
1Summary: LASzip - free and lossless LiDAR compression
2Summary(pl.UTF-8): LASzip - wolnodostępna, bezstratna kompresja danych LiDARowych
3Name: laszip
4Version: 3.4.3
5Release: 1
6License: LGPL v2.1
7Group: Libraries
8#Source0Download: https://laszip.org/
9Source0: https://github.com/LASzip/LASzip/releases/download/%{version}/%{name}-src-%{version}.tar.gz
10# Source0-md5: e07be9ba6247889a4ba0bda8535c77e3
11Patch0: %{name}-link.patch
12# from Fedora: restore old API for libLAS, related to https://github.com/libLAS/libLAS/issues/144
13Patch1: %{name}-restoreapi.patch
14Patch2: %{name}-example.patch
15URL: https://laszip.org/
16BuildRequires: cmake >= 2.8.11
17BuildRequires: libstdc++-devel
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21LASzip - a free open source product of rapidlasso GmbH - quickly turns
22bulky LAS files into compact LAZ files without information loss.
23
24%description -l pl.UTF-8
25LASzip - darmowy, mający otwarty kod źródłowy produk rapidlasso GmbH -
26szybko przekształca masywne pliki LAS w kompaktowe pliki LAZ bez
27utraty informacji.
28
29%package devel
30Summary: Header files for LASzip library
31Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LASzip
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires: libstdc++-devel
35
36%description devel
37Header files for LASzip library.
38
39%description devel -l pl.UTF-8
40Pliki 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
49install -d build/example
50cd build
51%cmake ..
52
53%{__make}
54
55%install
56rm -rf $RPM_BUILD_ROOT
57
58%{__make} -C build install \
59 DESTDIR=$RPM_BUILD_ROOT
60
61# omitted by install
62install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
63cp -p build/example/laszip.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
64
65%{__rm} $RPM_BUILD_ROOT%{_bindir}/laszippertest
66
67%clean
68rm -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
This page took 0.082395 seconds and 4 git commands to generate.