[packages/libbpg] new, version 0.9.2
glen
glen at pld-linux.org
Mon Dec 22 12:06:34 CET 2014
commit 7b633ec9a840baa3491c72148018e6f5d58ea01f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Dec 22 13:05:45 2014 +0200
new, version 0.9.2
based on copr package
https://copr-be.cloud.fedoraproject.org/results/red/libbpg/fedora-rawhide-i386/libbpg-0.9.2-1.fc21/libbpg-0.9.2-1.fc22.src.rpm
libbpg.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
---
diff --git a/libbpg.spec b/libbpg.spec
new file mode 100644
index 0000000..d286bd0
--- /dev/null
+++ b/libbpg.spec
@@ -0,0 +1,77 @@
+# TODO
+# - dynamic lib
+Summary: A library of functions for manipulating BPG image format files
+Name: libbpg
+Version: 0.9.2
+Release: 0.1
+License: LGPL v2 and BSD
+Group: Libraries
+Source0: http://bellard.org/bpg/%{name}-%{version}.tar.gz
+# Source0-md5: 7a1a176aafc207543b75eb2c42457110
+URL: http://bellard.org/bpg/
+BuildRequires: libjpeg-turbo-devel
+BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
+ExclusiveArch: %{ix86} %{x8664}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+BPG (Better Portable Graphics) is a image format whose purpose is to
+replace the JPEG image format when quality or file size is an issue.
+
+Its main advantages are:
+- High compression ratio. Files are much smaller than JPEG for similar
+ quality.
+- Supported by most Web browsers with a small Javascript decoder.
+- Based on a subset of the HEVC open video compression standard.
+- Supports the same chroma formats as JPEG (grayscale, YCbCr 4:2:0,
+ 4:2:2, 4:4:4) to reduce the losses during the conversion. An alpha
+ channel is supported. The RGB, YCgCo and CMYK color spaces are also
+ supported.
+- Native support of 8 to 14 bits per channel for a higher dynamic
+ range.
+- Lossless compression is supported.
+- Various metadata (such as EXIF, ICC profile, XMP) can be included.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+
+%{__sed} -i -e 's,-Os,$(OPTFLAGS),' Makefile
+%{__sed} -i -e 's#LDFLAGS=-g#LDFLAGS=%{rpmldflags}#' Makefile
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CXX="%{__cxx}" \
+ OPTFLAGS="%{rpmcflags}" \
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
+install -p bpgdec bpgenc $RPM_BUILD_ROOT%{_bindir}
+cp -p bpgenc.h libbpg.h $RPM_BUILD_ROOT%{_includedir}
+cp -p libbpg.a $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc html post.js
+%attr(755,root,root) %{_bindir}/bpgdec
+%attr(755,root,root) %{_bindir}/bpgenc
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/bpgenc.h
+%{_includedir}/libbpg.h
+%{_libdir}/libbpg.a
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libbpg.git/commitdiff/7b633ec9a840baa3491c72148018e6f5d58ea01f
More information about the pld-cvs-commit
mailing list