105 lines
2.9 KiB
RPMSpec
105 lines
2.9 KiB
RPMSpec
%define _version %(echo %version | tr '.' '_')
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
%define apiver %(echo %version | cut -d. -f1-2)
|
|
Name: libopenjpeg
|
|
Version: 2.1.0
|
|
Release: 1mamba
|
|
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>
|
|
URL: http://www.openjpeg.org
|
|
Source: https://downloads.sourceforge.net/project/openjpeg.mirror/%{version}/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
|
|
%cmake -d build \
|
|
-DOPENJPEG_INSTALL_LIB_DIR=%{_lib}
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libopenjp2.so.*
|
|
%doc LICENSE AUTHORS
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/openjpeg-%{apiver}
|
|
%{_includedir}/openjpeg-%{apiver}/*.h
|
|
%{_libdir}/libopenjp2.so
|
|
%{_libdir}/openjpeg-%{apiver}/OpenJPEGConfig.cmake
|
|
%{_libdir}/openjpeg-%{apiver}/OpenJPEGTargets-noconfig.cmake
|
|
%{_libdir}/openjpeg-%{apiver}/OpenJPEGTargets.cmake
|
|
%{_libdir}/pkgconfig/libopenjp2.pc
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/opj_compress
|
|
%{_bindir}/opj_decompress
|
|
%{_bindir}/opj_dump
|
|
#%{_mandir}/man1/opj_compress.1*
|
|
#%{_mandir}/man1/opj_decompress.1*
|
|
#%{_mandir}/man1/opj_dump.1*
|
|
#%{_mandir}/man3/libopenjp2.3*
|
|
|
|
%changelog
|
|
* Thu Jul 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
|
|
- update to 2.1.0
|
|
|
|
* Wed Jan 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
|
|
- update to 2.0.0
|
|
|
|
* 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
|