1 | Summary: Library for reading RAW files obtained from digital photo cameras
|
---|
2 | Name: LibRaw
|
---|
3 | Version: 0.19.2
|
---|
4 | Release: 2%{?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 |
|
---|
76 | %install
|
---|
77 | cp -pr doc manual
|
---|
78 | chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
|
---|
79 | chmod 644 manual/*.html
|
---|
80 |
|
---|
81 | # The Libraries
|
---|
82 | %make_install
|
---|
83 |
|
---|
84 | rm -rfv samples/.deps
|
---|
85 | rm -fv samples/.dirstamp
|
---|
86 | rm -fv samples/*.o
|
---|
87 |
|
---|
88 | rm -fv %{buildroot}%{_libdir}/lib*.la
|
---|
89 |
|
---|
90 | #%ldconfig_scriptlets
|
---|
91 |
|
---|
92 | %files
|
---|
93 | %doc Changelog.txt
|
---|
94 | %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
|
---|
95 | %{_libdir}/raw*19*.dll
|
---|
96 | #%{_libdir}/libraw_r.so.19*
|
---|
97 |
|
---|
98 | %files static
|
---|
99 | #%{_libdir}/libraw.a
|
---|
100 | %{_libdir}/raw*.a
|
---|
101 |
|
---|
102 | %files devel
|
---|
103 | %doc manual
|
---|
104 | %doc samples
|
---|
105 | %{_includedir}/libraw/
|
---|
106 | %{_libdir}/raw*.dll
|
---|
107 | #%{_libdir}/libraw_r.so
|
---|
108 | %{_libdir}/pkgconfig/libraw.pc
|
---|
109 | %{_libdir}/pkgconfig/libraw_r.pc
|
---|
110 | %exclude %{_docdir}/libraw/*
|
---|
111 |
|
---|
112 | %files samples
|
---|
113 | %{_bindir}/*
|
---|
114 |
|
---|
115 | %changelog
|
---|
116 | * Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-2
|
---|
117 | - Add patch to source as thats better if have own repo
|
---|
118 |
|
---|
119 | * Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-1
|
---|
120 | - First Rpm version OS/2
|
---|