| 1 | Summary: Library for reading RAW files obtained from digital photo cameras
|
|---|
| 2 | Name: LibRaw
|
|---|
| 3 | Version: 0.19.2
|
|---|
| 4 | Release: 5%{?dist}
|
|---|
| 5 | License: BSD and (CDDL or LGPLv2)
|
|---|
| 6 | URL: http://www.libraw.org
|
|---|
| 7 |
|
|---|
| 8 | BuildRequires: gcc
|
|---|
| 9 | BuildRequires: lcms2
|
|---|
| 10 | BuildRequires: jasper
|
|---|
| 11 | BuildRequires: libjpeg
|
|---|
| 12 | BuildRequires: autoconf automake libtool
|
|---|
| 13 |
|
|---|
| 14 | #Source0: http://www.libraw.org/data/%{name}-%{version}.tar.gz
|
|---|
| 15 | %scm_source github http://github.com/TeLLie/%{name}-os2 master-os2
|
|---|
| 16 | #Patch0: LibRaw-0.6.0-pkgconfig.patch
|
|---|
| 17 | #Patch1: LibRaw-0.17.1-CVE-2015-8366-8367.patch
|
|---|
| 18 | Provides: bundled(dcraw) = 9.25
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | LibRaw is a library for reading RAW files obtained from digital photo
|
|---|
| 22 | cameras (CRW/CR2, NEF, RAF, DNG, and others).
|
|---|
| 23 |
|
|---|
| 24 | LibRaw is based on the source codes of the dcraw utility, where part of
|
|---|
| 25 | drawbacks have already been eliminated and part will be fixed in future.
|
|---|
| 26 |
|
|---|
| 27 | %package devel
|
|---|
| 28 | Summary: LibRaw development libraries
|
|---|
| 29 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | LibRaw development libraries.
|
|---|
| 33 |
|
|---|
| 34 | This package contains libraries that applications can use to build
|
|---|
| 35 | against LibRaw.
|
|---|
| 36 |
|
|---|
| 37 | %package static
|
|---|
| 38 | Summary: LibRaw static development libraries
|
|---|
| 39 | Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|---|
| 40 |
|
|---|
| 41 | %description static
|
|---|
| 42 | LibRaw static development libraries.
|
|---|
| 43 |
|
|---|
| 44 | %package samples
|
|---|
| 45 | Summary: LibRaw sample programs
|
|---|
| 46 | Requires: %{name} = %{version}-%{release}
|
|---|
| 47 |
|
|---|
| 48 | %description samples
|
|---|
| 49 | LibRaw sample programs
|
|---|
| 50 |
|
|---|
| 51 | %prep
|
|---|
| 52 | #%setup -q
|
|---|
| 53 | %scm_setup
|
|---|
| 54 | autoreconf -vif
|
|---|
| 55 |
|
|---|
| 56 | #%patch0 -p0 -b .pkgconfig
|
|---|
| 57 | #%patch1 -p1 -b .CVE-2015-8366
|
|---|
| 58 |
|
|---|
| 59 | %build
|
|---|
| 60 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 61 | export LIBS="-lcx -lpthread"
|
|---|
| 62 |
|
|---|
| 63 | %configure \
|
|---|
| 64 | --enable-examples=yes \
|
|---|
| 65 | --enable-jasper \
|
|---|
| 66 | --enable-jpeg \
|
|---|
| 67 | --enable-lcms \
|
|---|
| 68 | --disable-openmp
|
|---|
| 69 |
|
|---|
| 70 | # https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
|
|---|
| 71 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|---|
| 72 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|---|
| 73 |
|
|---|
| 74 | #%make_build
|
|---|
| 75 | make %{?_smp_mflags}
|
|---|
| 76 |
|
|---|
| 77 | %install
|
|---|
| 78 | cp -pr doc manual
|
|---|
| 79 | chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
|
|---|
| 80 | chmod 644 manual/*.html
|
|---|
| 81 |
|
|---|
| 82 | # The Libraries
|
|---|
| 83 | %make_install
|
|---|
| 84 |
|
|---|
| 85 | rm -rfv samples/.deps
|
|---|
| 86 | rm -fv samples/.dirstamp
|
|---|
| 87 | rm -fv samples/*.o
|
|---|
| 88 |
|
|---|
| 89 | rm -fv %{buildroot}%{_libdir}/lib*.la
|
|---|
| 90 |
|
|---|
| 91 | #%ldconfig_scriptlets
|
|---|
| 92 |
|
|---|
| 93 | %files
|
|---|
| 94 | %defattr(-,root,root)
|
|---|
| 95 | %doc Changelog.txt
|
|---|
| 96 | %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
|
|---|
| 97 | %{_libdir}/raw*19*.dll
|
|---|
| 98 |
|
|---|
| 99 | %files static
|
|---|
| 100 | %defattr(-,root,root)
|
|---|
| 101 | %{_libdir}/raw_r.a
|
|---|
| 102 | %{_libdir}/raw.a
|
|---|
| 103 | %exclude %{_libdir}/raw*_dll.a
|
|---|
| 104 |
|
|---|
| 105 | %files devel
|
|---|
| 106 | %defattr(-,root,root)
|
|---|
| 107 | %doc manual
|
|---|
| 108 | %doc samples
|
|---|
| 109 | %{_includedir}/libraw/
|
|---|
| 110 | %{_libdir}/raw*_dll.a
|
|---|
| 111 | %{_libdir}/pkgconfig/libraw.pc
|
|---|
| 112 | %{_libdir}/pkgconfig/libraw_r.pc
|
|---|
| 113 | %exclude %{_docdir}/libraw/*
|
|---|
| 114 |
|
|---|
| 115 | %files samples
|
|---|
| 116 | %defattr(-,root,root)
|
|---|
| 117 | %{_bindir}/*
|
|---|
| 118 |
|
|---|
| 119 | %changelog
|
|---|
| 120 | * Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-5
|
|---|
| 121 | - Remove dll's from the devel package.
|
|---|
| 122 |
|
|---|
| 123 | * Wed Jan 30 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-4
|
|---|
| 124 | - Add the raw_*.a files to devel package.
|
|---|
| 125 |
|
|---|
| 126 | * Sat Dec 29 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-3
|
|---|
| 127 | - Link with newer Lcms2
|
|---|
| 128 |
|
|---|
| 129 | * Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-2
|
|---|
| 130 | - Add patch to source as thats better if have own repo
|
|---|
| 131 |
|
|---|
| 132 | * Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-1
|
|---|
| 133 | - First Rpm version OS/2
|
|---|