2024-01-06 05:17:44 +01:00
|
|
|
%define _version %(echo %version | tr '.' '_')
|
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
Name: libopenjpeg1
|
2024-05-11 10:48:12 +02:00
|
|
|
Version: 1.5.2
|
2024-05-12 10:34:43 +02:00
|
|
|
Release: 2mamba
|
2024-01-06 05:17:44 +01:00
|
|
|
Summary: An open-source JPEG 2000 codec written in C language
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-05-11 10:48:12 +02:00
|
|
|
URL: https://www.openjpeg.org/
|
|
|
|
Source: https://github.com/uclouvain/openjpeg.git/version.%{version}/openjpeg-%{version}.tar.bz2
|
2024-01-06 05:17:44 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: liblcms2-devel
|
2024-05-11 10:48:12 +02:00
|
|
|
BuildRequires: libpng15-devel
|
2024-01-06 05:17:44 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(post):%{__install_info}
|
|
|
|
|
|
|
|
%description
|
|
|
|
An open-source JPEG 2000 codec written in C language.
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Static libraries and header for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
An open-source JPEG 2000 codec written in C language.
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Group: Applications/Graphics
|
|
|
|
Summary: Utility applications for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains utility applications for %{name}.
|
|
|
|
|
2024-05-11 10:48:12 +02:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 05:17:44 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n openjpeg-%{version}
|
2024-05-11 10:48:12 +02:00
|
|
|
./bootstrap.sh
|
2024-01-06 05:17:44 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
#INSTALL_LIBDIR=%{_libdir}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libopenjpeg.so.*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/openjpeg-%{majver}
|
|
|
|
%{_includedir}/openjpeg-%{majver}/openjpeg.h
|
|
|
|
%{_libdir}/libopenjpeg.a
|
|
|
|
%{_libdir}/libopenjpeg.so
|
|
|
|
%{_libdir}/pkgconfig/libopenjpeg.pc
|
|
|
|
%{_libdir}/pkgconfig/libopenjpeg1.pc
|
|
|
|
%{_datadir}/doc/openjpeg-1.5/LICENSE
|
2024-05-11 10:48:12 +02:00
|
|
|
%{_mandir}/man3/libopenjpeg.3*
|
2024-01-06 05:17:44 +01:00
|
|
|
#%doc README.linux ChangeLog
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/image_to_j2k
|
|
|
|
%{_bindir}/j2k_dump
|
|
|
|
%{_bindir}/j2k_to_image
|
2024-05-11 10:48:12 +02:00
|
|
|
%{_mandir}/man1/image_to_j2k.1*
|
|
|
|
%{_mandir}/man1/j2k_dump.1*
|
|
|
|
%{_mandir}/man1/j2k_to_image.1*
|
2024-01-06 05:17:44 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-05-12 10:34:43 +02:00
|
|
|
* Sun May 12 2024 Automatic Build System <autodist@openmamba.org> 1.5.2-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-05-11 10:48:12 +02:00
|
|
|
* Fri May 10 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.2-1mamba
|
|
|
|
- update to 1.5.2
|
|
|
|
|
2024-01-06 05:17:44 +01:00
|
|
|
* Wed Jan 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-2mamba
|
|
|
|
- rebuilt as legacy package
|
|
|
|
- added tools subpackage
|
|
|
|
|
|
|
|
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
|
|
|
|
- update to 1.5.1
|
|
|
|
|
|
|
|
* Fri Nov 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
|
|
|
|
- update to 1.3
|
|
|
|
|
|
|
|
* Mon Nov 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
|
|
|
|
- package created by autospec
|