freeimage/freeimage.spec

83 lines
2.7 KiB
RPMSpec
Raw Normal View History

2020-06-25 15:42:53 +08:00
#%global debug_package %{nil}
Name: freeimage
Version: 3.18.0
2020-09-10 19:42:53 +08:00
Release: 2
2020-06-25 15:42:53 +08:00
Summary: FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others)
License: GPLv2 or GPLv3 and FIPL
URL: https://freeimage.sourceforge.io/
Source0: http://downloads.sourceforge.net/freeimage/FreeImage3180.zip
Patch0: CVE-2019-12211_2019-12213.patch
2020-09-10 19:42:53 +08:00
# https://github.com/glennrp/libpng/commit/32784523239c376dfe544bb6c7012c4934624a6d
Patch1: fix-libpng-arm-neon.patch
2020-06-25 15:42:53 +08:00
BuildRequires: gcc autoconf automake doxygen
%description
FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others). Some highlights are: extremely simple in use, not limited to the local PC (unique FreeImageIO) and Plugin driven!
%package devel
Summary: FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others)
Requires: %{name} = %{version}-%{release}
%description devel
FreeImage is a library project for developers who would like to support popular graphics image formats (PNG, JPEG, TIFF, BMP and others). Some highlights are: extremely simple in use, not limited to the local PC (unique FreeImageIO) and Plugin driven!
%prep
%setup -q -n FreeImage
%patch0 -p1
2020-09-10 19:42:53 +08:00
%patch1 -p1
2020-06-25 15:42:53 +08:00
%build
%make_build -f Makefile.gnu DESTDIR=%{buildroot}
%make_build -f Makefile.fip DESTDIR=%{buildroot}
pushd Wrapper/FreeImagePlus/doc
doxygen FreeImagePlus.dox
popd
%install
install -Dpm 755 Dist/lib%{name}-%{version}.so %{buildroot}%{_libdir}/lib%{name}-%{version}.so
ln -s lib%{name}-%{version}.so %{buildroot}%{_libdir}/lib%{name}.so
install -Dpm 755 Dist/lib%{name}plus-%{version}.so %{buildroot}%{_libdir}/lib%{name}plus-%{version}.so
ln -s lib%{name}plus-%{version}.so %{buildroot}%{_libdir}/lib%{name}plus.so
install -Dpm 644 Source/FreeImage.h %{buildroot}%{_includedir}/FreeImage.h
install -Dpm 644 Wrapper/FreeImagePlus/FreeImagePlus.h %{buildroot}%{_includedir}/FreeImagePlus.h
# install missing symlink (was giving no-ldconfig-symlink rpmlint errors)
ldconfig -n %{buildroot}%{_libdir}
%pre
%preun
%post
%postun
%check
%files
%license license-*.txt
%doc README.linux README.md Whatsnew.txt
%{_libdir}/lib%{name}-%{version}.so
%{_libdir}/lib%{name}.so.*
%{_libdir}/lib%{name}plus-%{version}.so
%{_libdir}/lib%{name}plus.so.*
%files devel
%doc Examples Wrapper/FreeImagePlus/html
%{_includedir}/FreeImage.h
%{_libdir}/lib%{name}.so
%{_includedir}/FreeImagePlus.h
%{_libdir}/lib%{name}plus.so
%changelog
2020-09-10 19:42:53 +08:00
* Thu Sep 10 2020 weidong <weidong@uniontech.com>
- fix libpng arm neon in freeimage
2020-06-25 15:42:53 +08:00
* Mon May 4 2020 Wei Xiong <myeuler@163.com>
- Package init