]> git.pld-linux.org Git - packages/libbpg.git/commitdiff
new, version 0.9.2
authorElan Ruusamäe <glen@delfi.ee>
Mon, 22 Dec 2014 11:05:45 +0000 (13:05 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 22 Dec 2014 11:06:17 +0000 (13:06 +0200)
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 [new file with mode: 0644]

diff --git a/libbpg.spec b/libbpg.spec
new file mode 100644 (file)
index 0000000..d286bd0
--- /dev/null
@@ -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
This page took 0.064785 seconds and 4 git commands to generate.