]>
Commit | Line | Data |
---|---|---|
7b633ec9 ER |
1 | # TODO |
2 | # - dynamic lib | |
3 | Summary: A library of functions for manipulating BPG image format files | |
74b94a75 | 4 | Summary(pl.UTF-8): Biblioteka funkcji do operacji na plikach obrazów w formacie BPG |
7b633ec9 | 5 | Name: libbpg |
41db5730 | 6 | Version: 0.9.5 |
7b633ec9 | 7 | Release: 0.1 |
c401b7f9 ER |
8 | # The original BPG code is BSD-licensed, while the modified FFmpeg library is under LGPLv2.1. |
9 | License: LGPL v2.1 and BSD | |
7b633ec9 ER |
10 | Group: Libraries |
11 | Source0: http://bellard.org/bpg/%{name}-%{version}.tar.gz | |
41db5730 | 12 | # Source0-md5: 30d1619656955fb3fbba5fe9f9f27f67 |
7b633ec9 ER |
13 | URL: http://bellard.org/bpg/ |
14 | BuildRequires: libjpeg-turbo-devel | |
15 | BuildRequires: libpng-devel | |
16 | BuildRequires: libstdc++-devel | |
17 | ExclusiveArch: %{ix86} %{x8664} | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | BPG (Better Portable Graphics) is a image format whose purpose is to | |
22 | replace the JPEG image format when quality or file size is an issue. | |
23 | ||
24 | Its main advantages are: | |
25 | - High compression ratio. Files are much smaller than JPEG for similar | |
26 | quality. | |
74b94a75 | 27 | - Supported by most Web browsers with a small JavaScript decoder. |
7b633ec9 ER |
28 | - Based on a subset of the HEVC open video compression standard. |
29 | - Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0, | |
30 | 4:2:2, 4:4:4) to reduce the losses during the conversion. An alpha | |
31 | channel is supported. The RGB, YCgCo and CMYK color spaces are also | |
32 | supported. | |
33 | - Native support of 8 to 14 bits per channel for a higher dynamic | |
34 | range. | |
35 | - Lossless compression is supported. | |
36 | - Various metadata (such as EXIF, ICC profile, XMP) can be included. | |
37 | ||
74b94a75 JB |
38 | %description -l pl.UTF-8 |
39 | BPG (Better Portable Graphics - lepsza przenośna grafika) to format | |
40 | obrazu, którego celem jest zastąpienie formatu JPEG tam, gdzie ma | |
41 | znaczenie jakość lub rozmiar pliku. | |
42 | ||
43 | Główne zalety to: | |
44 | - ma wysoki współczynnik kompresji; pliki są znacznie mniejsze niż | |
45 | JPEG o podobnej jakości | |
46 | - jest obsługiwany przez większość przeglądarek WWW przy użyciu małego | |
47 | dekodera w JavaScripcie | |
48 | - jest oparty na podzbiorze otwartego standardu kompresji obrazu HEVC | |
49 | - obsługuje te same schematy barw, co JPEG (odcienie szarości, YCbCr | |
50 | 4:2:0, 4:2:2, 4:4:4) w celu ograniczenia strat przy konwersji; | |
51 | obsługiwany jest kanał alfa oraz przestrzenie barw RGB, YCgCo i CMYK | |
52 | - ma natywną obsługę 8 i 14 bitów na kanał w celu zapewnienia większej | |
53 | dynamiki | |
54 | - obsługiwana jest kompresja bezstratna | |
55 | - można dołączać różne metadane (jak EXIF, profil ICC, XMP). | |
56 | ||
7b633ec9 | 57 | %package devel |
74b94a75 JB |
58 | Summary: Development files for libbpg library |
59 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libbpg | |
7b633ec9 ER |
60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description devel | |
74b94a75 JB |
64 | This package contains the library and header files for developing |
65 | applications that use libbpg. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Ten pakiet zawiera bibliotekę i pliki nagłówkowe do tworzenia | |
69 | aplikacji wykorzystujących libbpg. | |
7b633ec9 ER |
70 | |
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %{__sed} -i -e 's,-Os,$(OPTFLAGS),' Makefile | |
75 | %{__sed} -i -e 's#LDFLAGS=-g#LDFLAGS=%{rpmldflags}#' Makefile | |
76 | ||
77 | %build | |
78 | %{__make} \ | |
79 | CC="%{__cc}" \ | |
80 | CXX="%{__cxx}" \ | |
81 | OPTFLAGS="%{rpmcflags}" \ | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}} | |
86 | install -p bpgdec bpgenc $RPM_BUILD_ROOT%{_bindir} | |
87 | cp -p bpgenc.h libbpg.h $RPM_BUILD_ROOT%{_includedir} | |
88 | cp -p libbpg.a $RPM_BUILD_ROOT%{_libdir} | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
74b94a75 | 95 | %doc ChangeLog README doc html post.js |
7b633ec9 ER |
96 | %attr(755,root,root) %{_bindir}/bpgdec |
97 | %attr(755,root,root) %{_bindir}/bpgenc | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %{_includedir}/bpgenc.h | |
102 | %{_includedir}/libbpg.h | |
103 | %{_libdir}/libbpg.a |