N
NiceOS Build Portal
Enterprise build observability for published NiceOS package builds.

input/jasper.spec

raw · 3.9 KiB

%bcond_without tests

Name:           jasper
Version:        4.2.9
Release:        1%{?dist}
Summary:        JPEG-2000 codec implementation
Summary(ru):    Реализация кодека JPEG-2000
License:        JasPer-2.0
URL:            https://github.com/jasper-software/jasper
Source0:        https://github.com/jasper-software/jasper/archive/version-%{version}/jasper-version-%{version}.tar.gz

Packager:       NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor:         NiceSOFT
Distribution:   NiceOS.Core
BugURL:         https://bugs.niceos.ru/
VCS:            https://specs.niceos.ru/rmps/%{name}

BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(libjpeg)

Requires:       %{name}-libs%{?_isa} = %{version}-%{release}

Provides:       jasper-libs = %{version}-%{release}
Provides:       jasper-utils = %{version}-%{release}

%description
JasPer is an implementation of the JPEG-2000 Part 1 image compression standard.
It includes libraries and tools for conversion to and from JP2 and JPC formats.

%description -l ru
JasPer — реализация стандарта JPEG-2000 Part 1. Включает библиотеки и утилиты
для конвертации в форматы JP2/JPC и обратно.

%package        libs
Summary:        JasPer runtime libraries
Summary(ru):    Библиотеки выполнения JasPer

%description -n %{name}-libs
Runtime libraries for JasPer.

%description -l ru -n %{name}-libs
Разделяемые библиотеки выполнения JasPer.

%package        devel
Summary:        Development files for jasper
Summary(ru):    Файлы для разработки jasper
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}

%description -n %{name}-devel
Header files and pkg-config metadata for developing with JasPer.

%description -l ru -n %{name}-devel
Заголовочные файлы и метаданные pkg-config для разработки с JasPer.

%package        utils
Summary:        JasPer utilities
Summary(ru):    Утилиты JasPer
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}

%description -n %{name}-utils
Additional utilities shipped with JasPer.

%description -l ru -n %{name}-utils
Дополнительные утилиты, поставляемые вместе с JasPer.

%prep
%autosetup -n jasper-version-%{version}

%build
%cmake \
    -D CMAKE_INSTALL_PREFIX=/usr \
    -D CMAKE_BUILD_TYPE=Release \
    -D CMAKE_SKIP_INSTALL_RPATH=ON \
    -D JAS_ENABLE_DOC=NO \
    -D ALLOW_IN_SOURCE_BUILD=YES \
    -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-%{version}
%cmake_build

%install
%cmake_install
%{_fixperms} %{buildroot}/*

%check
%if %{with tests}
%ctest
%endif

%post -n %{name}-libs -p /sbin/ldconfig
%postun -n %{name}-libs -p /sbin/ldconfig

%files
%doc README.md
%{_bindir}/imgcmp
%{_bindir}/imginfo
%{_bindir}/jasper

%files libs
%{_libdir}/libjasper.so.*

%files devel
%{_includedir}/jasper/
%{_libdir}/libjasper.so
%{_libdir}/pkgconfig/jasper.pc

%files utils
%{_mandir}/man1/*

%changelog
* Sat May 09 2026 NiceOS Team <support@niceos.ru> - 4.2.9-1
- EN: Update jasper to 4.2.9.
Upstream fixes a JP2 encoder bug that could handle opacity components incorrectly in some cases.
No ABI, CLI, or dependency changes were identified in the upstream release notes or compare page.
- RU: Обновление jasper до 4.2.9.
Upstream исправляет ошибку JP2 encoder, из-за которой в некоторых случаях некорректно обрабатывались компоненты opacity.
По release notes и compare page не выявлено изменений ABI, CLI или зависимостей.


* Mon Jan 12 2026 NiceOS Team <niceos@ncsgp.ru> - 4.2.8-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)