[packages/openjph] - new

qboosh qboosh at pld-linux.org
Mon Feb 24 19:48:45 CET 2025


commit f3f32760f16531df892c4a2327e6fa7db524efa5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Feb 24 19:33:05 2025 +0100

    - new

 openjph.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)
---
diff --git a/openjph.spec b/openjph.spec
new file mode 100644
index 0000000..fc794d8
--- /dev/null
+++ b/openjph.spec
@@ -0,0 +1,94 @@
+Summary:	Open-source implementation of HTJ2K encoder and decoder
+Summary(pl.UTF-8):	Implementacja kodera i dekodera HTJ2K o otwartych źródłach
+Name:		openjph
+Version:	0.21.1
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: https://github.com/aous72/OpenJPH/releases
+Source0:	https://github.com/aous72/OpenJPH/archive/%{version}/OpenJPH-%{version}.tar.gz
+# Source0-md5:	96f7730b33b7c8bf72723daacdd8f0af
+URL:		https://openjph.org/
+BuildRequires:	cmake >= 3.11.0
+BuildRequires:	libstdc++-devel >= 6:5
+BuildRequires:	libtiff-devel >= 4
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Open source implementation of High-throughput JPEG2000 (HTJ2K), also
+known as JPH, JPEG2000 Part 15, ISO/IEC 15444-15, and ITU-T T.814.
+Here, we are interested in implementing the HTJ2K only, supporting
+features that are defined in JPEG2000 Part 1 (for example, for wavelet
+transform, only reversible 5/3 and irreversible 9/7 are supported).
+
+%description -l pl.UTF-8
+Mająca otwarte źródła implementacja standardu High-throughput JPEG2000
+(HTJ2K), znanego także jako JPH, JPEG2000 Part 15, ISO/IEC 15444-15
+tudzież ITU-T T.814. Tutaj zaimplementowano tylko HTJ2K z obsługą
+właściwości zdefiniowanych w standardzie JPEG2000 Part 1 (np. dla
+transformaty faletkowej obsługiwane są tylko odwracalna 5/3 oraz
+nieodwracalna 9/7).
+
+%package devel
+Summary:	Header files for OpenJPH library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki OpenJPH
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for OpenJPH library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OpenJPH.
+
+%package tools
+Summary:	Tools for encoding and decoding JPH files
+Summary(pl.UTF-8):	Narzędzia do kodowania i dekodowania plików JPH
+Group:		Applications/Graphics
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Tools for encoding and decoding JPH files.
+
+%description tools -l pl.UTF-8
+Narzędzia do kodowania i dekodowania plików JPH.
+
+%prep
+%setup -q -n OpenJPH-%{version}
+
+%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 docs/{status,usage_examples,web_demos}.md
+%attr(755,root,root) %{_libdir}/libopenjph.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopenjph.so.0.21
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopenjph.so
+%{_includedir}/openjph
+%{_pkgconfigdir}/openjph.pc
+%{_libdir}/cmake/openjph
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ojph_compress
+%attr(755,root,root) %{_bindir}/ojph_expand
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openjph.git/commitdiff/f3f32760f16531df892c4a2327e6fa7db524efa5



More information about the pld-cvs-commit mailing list