xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #784: libbpg-rpm.patch

File libbpg-rpm.patch, 4.9 KB (added by Antoine Martin, 4 years ago)

files needed for generating libbpg rpm

  • rpmbuild/libbpg-c++11.patch

     
     1--- a/x265/source/CMakeLists.txt        2017-01-26 22:45:57.261974835 +0700
     2+++ b/x265/source/CMakeLists.txt        2017-01-26 22:44:04.701890872 +0700
     3@@ -159,6 +159,7 @@
     4     set(GCC 1)
     5 endif()
     6 if(GCC)
     7+    add_definitions(-std=gnu++98)
     8     add_definitions(-Wall -Wextra -Wshadow)
     9     add_definitions(-D__STDC_LIMIT_MACROS=1)
     10     if(ENABLE_PIC)
  • rpmbuild/libbpg-nolibnuma.patch

     
     1--- a/x265/source/CMakeLists.txt        2016-05-15 16:06:19.000000000 +0700
     2+++ b/x265/source/CMakeLists.txt        2017-01-26 22:59:00.001604739 +0700
     3@@ -76,22 +76,6 @@
     4     if(LIBDL)
     5         list(APPEND PLATFORM_LIBS dl)
     6     endif()
     7-    option(ENABLE_LIBNUMA "Enable libnuma usage (Linux only)" ON)
     8-    if(ENABLE_LIBNUMA)
     9-        find_package(Numa)
     10-        if(NUMA_FOUND)
     11-            link_directories(${NUMA_LIBRARY_DIR})
     12-            list(APPEND CMAKE_REQUIRED_LIBRARIES numa)
     13-            check_symbol_exists(numa_node_of_cpu numa.h NUMA_V2)
     14-            if(NUMA_V2)
     15-                add_definitions(-DHAVE_LIBNUMA)
     16-                message(STATUS "libnuma found, building with support for NUMA nodes")
     17-                list(APPEND PLATFORM_LIBS numa)
     18-                include_directories(${NUMA_INCLUDE_DIR})
     19-            endif()
     20-        endif()
     21-        mark_as_advanced(NUMA_FOUND)
     22-    endif(ENABLE_LIBNUMA)
     23     option(NO_ATOMICS "Use a slow mutex to replace atomics" OFF)
     24     if(NO_ATOMICS)
     25         add_definitions(-DNO_ATOMICS=1)
  • rpmbuild/libbpg.spec

     
     1%global debug_package %{nil}
     2
     3Name:           libbpg
     4Version:        0.9.7
     5Release:        1%{?dist}
     6Summary:        A library of functions for manipulating BPG image format files
     7
     8Group:          System Environment/Libraries
     9License:        LGPLv2 and BSD
     10URL:            http://bellard.org/bpg/
     11Source0:        http://bellard.org/bpg/%{name}-%{version}.tar.gz
     12Patch0:                 libbpg-c++11.patch
     13Patch1:                 libbpg-nolibnuma.patch
     14BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     15
     16BuildRequires:  libpng-devel libjpeg-turbo-devel SDL-devel SDL_image-devel
     17#Requires:       
     18
     19ExclusiveArch:  %{ix86} x86_64
     20
     21%description
     22BPG (Better Portable Graphics) is a image format whose purpose is to
     23replace the JPEG image format when quality or file size is an issue. Its
     24main 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,
     294:4:4) to reduce the losses during the conversion. An alpha channel is
     30supported. 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
     37Summary:        Development files for %{name}
     38Group:          Development/Libraries
     39Requires:       %{name}%{?_isa} = %{version}-%{release}
     40
     41%description    devel
     42The %{name}-devel package contains libraries and header files for
     43developing applications that use %{name}.
     44
     45
     46%prep
     47%setup -q
     48%patch0 -p1
     49%patch1 -p1
     50
     51
     52%build
     53make %{?_smp_mflags}
     54
     55
     56%install
     57mkdir -p %{buildroot}%{_bindir}
     58install -s -m755 bpgdec bpgenc bpgview %{buildroot}%{_bindir}
     59
     60mkdir -p %{buildroot}%{_includedir}
     61install -m644 bpgenc.h libbpg.h %{buildroot}%{_includedir}
     62
     63mkdir -p %{buildroot}%{_libdir}
     64install -s -m644 %{name}.a %{buildroot}%{_libdir}
     65
     66find %{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