From 02200baa2272aa2358d3decd016c7c49b0ee20d9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:17:44 +0100 Subject: [PATCH] rebuilt as legacy package added tools subpackage [release 1.5.1-2mamba;Wed Jan 23 2013] --- README.md | 2 + libopenjpeg1.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 libopenjpeg1.spec diff --git a/README.md b/README.md index fb364d9..409b687 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libopenjpeg1 +An open-source JPEG 2000 codec written in C language. + diff --git a/libopenjpeg1.spec b/libopenjpeg1.spec new file mode 100644 index 0000000..4a1736f --- /dev/null +++ b/libopenjpeg1.spec @@ -0,0 +1,106 @@ +%define _version %(echo %version | tr '.' '_') +%define majver %(echo %version | cut -d. -f1-2) +Name: libopenjpeg1 +Version: 1.5.1 +Release: 2mamba +Summary: An open-source JPEG 2000 codec written in C language +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.openjpeg.org +Source: http://openjpeg.googlecode.com/files/openjpeg-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: liblcms2-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires(post):%{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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}. + +%prep +%setup -q -n openjpeg-%{version} +#sed -i "s|-o root -g root||" Makefile + +%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.la +%{_libdir}/libopenjpeg.so +%{_libdir}/pkgconfig/libopenjpeg.pc +%{_libdir}/pkgconfig/libopenjpeg1.pc +%{_datadir}/doc/openjpeg-1.5/LICENSE +#%doc README.linux ChangeLog + +%files tools +%defattr(-,root,root) +%{_bindir}/image_to_j2k +%{_bindir}/j2k_dump +%{_bindir}/j2k_to_image +%{_mandir}/man1/image_to_j2k.1.gz +%{_mandir}/man1/j2k_dump.1.gz +%{_mandir}/man1/j2k_to_image.1.gz +%{_mandir}/man1/jpwl_image_to_j2k.1.gz +%{_mandir}/man1/jpwl_j2k_to_image.1.gz +%{_mandir}/man3/jpwl_libopenjpeg.3.gz +%{_mandir}/man3/libopenjpeg.3.gz + +%changelog +* Wed Jan 23 2013 Silvan Calarco 1.5.1-2mamba +- rebuilt as legacy package +- added tools subpackage + +* Sat Dec 01 2012 Automatic Build System 1.5.1-1mamba +- update to 1.5.1 + +* Fri Nov 20 2009 Silvan Calarco 1.3-1mamba +- update to 1.3 + +* Mon Nov 19 2007 Silvan Calarco 1.2-1mamba +- package created by autospec