[packages/lzham] - new
qboosh
qboosh at pld-linux.org
Sun Mar 29 10:17:13 CEST 2020
commit 20d09bd5ee5ddee7399972a98c586cf4ff02624c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 29 10:18:20 2020 +0200
- new
lzham-includedir.patch | 8 ++++++
lzham.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
---
diff --git a/lzham.spec b/lzham.spec
new file mode 100644
index 0000000..f0d5bb7
--- /dev/null
+++ b/lzham.spec
@@ -0,0 +1,74 @@
+Summary: LZHAM - Lossless Data Compression Codec
+Summary(pl.UTF-8): LZHAM - kodek bezstratnej kompresji danych
+Name: lzham
+Version: 1.0.stable1
+%define tagver %(echo %{version} | tr . _)
+Release: 0.1
+License: MIT
+Group: Libraries
+#Source0Download: https://github.com/richgel999/lzham_codec/releases
+Source0: https://github.com/richgel999/lzham_codec/archive/v%{tagver}/lzham_codec-%{tagver}.tar.gz
+# Source0-md5: 68ec3db42d2263d7e79d0581293f946d
+Patch0: %{name}-includedir.patch
+URL: https://github.com/richgel999/lzham_codec
+BuildRequires: cmake >= 2.8
+BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LZHAM is a lossless data compression codec written in C/C++
+(specifically C++03), with a compression ratio similar to LZMA but
+with 1.5x-8x faster decompression speed.
+
+%description -l pl.UTF-8
+LZHAM to kodek bezstratnej kompresji danych, napisany w C/C++ (w
+szczególności C++03). Współczynnik kompresji jest podobny do LZMA, ale
+szybkość dekompresji jest 1.5-8 razy większa.
+
+%package devel
+Summary: Header files for LZHAM libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek LZHAM
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel
+
+%description devel
+Header files for LZHAM libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek LZHAM.
+
+%prep
+%setup -q -n lzham_codec-%{tagver}
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_libdir}/liblzhamcomp.so
+%attr(755,root,root) %{_libdir}/liblzhamdecomp.so
+%attr(755,root,root) %{_libdir}/liblzhamdll.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/lzham
diff --git a/lzham-includedir.patch b/lzham-includedir.patch
new file mode 100644
index 0000000..130bf40
--- /dev/null
+++ b/lzham-includedir.patch
@@ -0,0 +1,8 @@
+--- lzham_codec-1_0_stable1/CMakeLists.txt.orig 2015-02-08 04:12:39.000000000 +0100
++++ lzham_codec-1_0_stable1/CMakeLists.txt 2020-03-29 09:24:13.669194837 +0200
+@@ -13,4 +13,4 @@
+ include/lzham.h
+ include/lzham_static_lib.h
+ include/zlib.h
+- DESTINATION include)
++ DESTINATION include/lzham)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lzham.git/commitdiff/20d09bd5ee5ddee7399972a98c586cf4ff02624c
More information about the pld-cvs-commit
mailing list