| 1 | %global debug_package %{nil} |
| 2 | |
| 3 | Name: libbpg |
| 4 | Version: 0.9.7 |
| 5 | Release: 1%{?dist} |
| 6 | Summary: A library of functions for manipulating BPG image format files |
| 7 | |
| 8 | Group: System Environment/Libraries |
| 9 | License: LGPLv2 and BSD |
| 10 | URL: http://bellard.org/bpg/ |
| 11 | Source0: http://bellard.org/bpg/%{name}-%{version}.tar.gz |
| 12 | Patch0: libbpg-c++11.patch |
| 13 | Patch1: libbpg-nolibnuma.patch |
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 15 | |
| 16 | BuildRequires: libpng-devel libjpeg-turbo-devel SDL-devel SDL_image-devel |
| 17 | #Requires: |
| 18 | |
| 19 | ExclusiveArch: %{ix86} x86_64 |
| 20 | |
| 21 | %description |
| 22 | BPG (Better Portable Graphics) is a image format whose purpose is to |
| 23 | replace the JPEG image format when quality or file size is an issue. Its |
| 24 | main advantages are: |
| 25 | * High compression ratio. Files are much smaller than JPEG for similar quality. |
| 26 | * Supported by most Web browsers with a small Javascript decoder. |
| 27 | * Based on a subset of the HEVC open video compression standard. |
| 28 | * Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0, 4:2:2, |
| 29 | 4:4:4) to reduce the losses during the conversion. An alpha channel is |
| 30 | supported. The RGB, YCgCo and CMYK color spaces are also supported. |
| 31 | * Native support of 8 to 14 bits per channel for a higher dynamic range. |
| 32 | * Lossless compression is supported. |
| 33 | * Various metadata (such as EXIF, ICC profile, XMP) can be included. |
| 34 | |
| 35 | |
| 36 | %package devel |
| 37 | Summary: Development files for %{name} |
| 38 | Group: Development/Libraries |
| 39 | Requires: %{name}%{?_isa} = %{version}-%{release} |
| 40 | |
| 41 | %description devel |
| 42 | The %{name}-devel package contains libraries and header files for |
| 43 | developing applications that use %{name}. |
| 44 | |
| 45 | |
| 46 | %prep |
| 47 | %setup -q |
| 48 | %patch0 -p1 |
| 49 | %patch1 -p1 |
| 50 | |
| 51 | |
| 52 | %build |
| 53 | make %{?_smp_mflags} |
| 54 | |
| 55 | |
| 56 | %install |
| 57 | mkdir -p %{buildroot}%{_bindir} |
| 58 | install -s -m755 bpgdec bpgenc bpgview %{buildroot}%{_bindir} |
| 59 | |
| 60 | mkdir -p %{buildroot}%{_includedir} |
| 61 | install -m644 bpgenc.h libbpg.h %{buildroot}%{_includedir} |
| 62 | |
| 63 | mkdir -p %{buildroot}%{_libdir} |
| 64 | install -s -m644 %{name}.a %{buildroot}%{_libdir} |
| 65 | |
| 66 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
| 67 | |
| 68 | |
| 69 | #%post -p /sbin/ldconfig |
| 70 | |
| 71 | #%postun -p /sbin/ldconfig |
| 72 | |
| 73 | |
| 74 | %files |
| 75 | %doc doc html post.js |
| 76 | %{_bindir}/bpgdec |
| 77 | %{_bindir}/bpgenc |
| 78 | %{_bindir}/bpgview |
| 79 | #%{_libdir}/*.so.* |
| 80 | |
| 81 | %files devel |
| 82 | %{_includedir}/* |
| 83 | #%{_libdir}/*.so |
| 84 | %{_libdir}/%{name}.a |
| 85 | |
| 86 | |
| 87 | %changelog |
| 88 | * Thu Jan 26 2017 Antoine Martin <antoine@devloop.org.uk> 0.9.7-1 |
| 89 | - new upstream release |
| 90 | |
| 91 | * Tue Jan 13 2015 Sandro Mathys <red at fedoraproject dot org> - 0.9.5-1 |
| 92 | - new upstream release |
| 93 | - partially incompatible with earlier versions, see ChangeLog |
| 94 | - new bpgview tool |
| 95 | |
| 96 | * Thu Dec 11 2014 Sandro Mathys <red at fedoraproject dot org> - 0.9.2-1 |
| 97 | - new upstream release |
| 98 | - include javascript decoder (post.js) |
| 99 | |
| 100 | * Wed Dec 10 2014 Sandro Mathys <red at fedoraproject dot org> - 0.9.1-1 |
| 101 | - initial release |
| 102 | |