Changeset 1717 for spec/trunk/SPECS/LibRaw.spec
- Timestamp:
- Oct 15, 2020, 8:52:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/LibRaw.spec
r1582 r1717 1 2 # feature macro to enable samples (or not) 3 %if 0%{?rhel} != 7 4 %global samples 1 5 %endif 6 1 7 Summary: Library for reading RAW files obtained from digital photo cameras 2 8 Name: LibRaw 3 Version: 0. 19.24 Release: 5%{?dist}9 Version: 0.20.2 10 Release: 1%{?dist} 5 11 License: BSD and (CDDL or LGPLv2) 6 12 URL: http://www.libraw.org 7 13 8 BuildRequires: gcc 9 BuildRequires: lcms210 BuildRequires: jasper11 BuildRequires: libjpeg14 BuildRequires: gcc-c++ 15 BuildRequires: pkgconfig(lcms2) 16 BuildRequires: pkgconfig(jasper) 17 BuildRequires: pkgconfig(libjpeg) 12 18 BuildRequires: autoconf automake libtool 13 19 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 20 %if !0%{?os2_version} 21 Source0: http://github.com/LibRaw/LibRaw/archive/%{version}.tar.gz 22 %else 23 %scm_source github https://github.com/Tellie/LibRaw-os2 master 24 %endif 25 Patch0: LibRaw-pkgconfig.patch 18 26 Provides: bundled(dcraw) = 9.25 19 27 … … 50 58 51 59 %prep 52 #%setup -q 60 %if !0%{?os2_version} 61 %autosetup -p1 -n %{name}-%{version} 62 %else 53 63 %scm_setup 54 autoreconf -vif 55 56 #%patch0 -p0 -b .pkgconfig 57 #%patch1 -p1 -b .CVE-2015-8366 64 %endif 58 65 59 66 %build 60 67 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 61 68 export LIBS="-lcx -lpthread" 62 69 autoreconf -ifv 63 70 %configure \ 64 --enable-examples= yes\71 --enable-examples=%{?samples:yes}%{!?samples:no} \ 65 72 --enable-jasper \ 66 73 --enable-jpeg \ 67 --enable-lcms \ 68 --disable-openmp 74 --enable-lcms 75 %if !0%{?os2_version} 76 --enable-openmp 77 %endif 69 78 70 79 # https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath … … 72 81 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 73 82 74 #%make_build 75 make %{?_smp_mflags} 83 %if !0%{?os2_version} 84 %make_build 85 %else 86 %endif 76 87 77 88 %install … … 89 100 rm -fv %{buildroot}%{_libdir}/lib*.la 90 101 91 #%ldconfig_scriptlets 102 %if !0%{?os2_version} 103 %ldconfig_scriptlets 104 %endif 92 105 93 106 %files … … 95 108 %doc Changelog.txt 96 109 %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT 97 %{_libdir}/raw*19*.dll 110 %if !0%{?os2_version} 111 %{_libdir}/libraw.so.20* 112 %{_libdir}/libraw_r.so.20* 113 %else 114 %{_libdir}/*.dll 115 %endif 98 116 99 117 %files static 100 118 %defattr(-,root,root) 119 %if !0%{?os2_version} 120 %{_libdir}/libraw.a 121 %{_libdir}/libraw_r.a 122 %else 123 %{_libdir}/raw.a 101 124 %{_libdir}/raw_r.a 102 %{_libdir}/raw.a 103 %exclude %{_libdir}/raw*_dll.a 125 %endif 104 126 105 127 %files devel … … 108 130 %doc samples 109 131 %{_includedir}/libraw/ 132 %if !0%{?os2_version} 133 %{_libdir}/libraw.so 134 %{_libdir}/libraw_r.so 135 %else 110 136 %{_libdir}/raw*_dll.a 137 %endif 111 138 %{_libdir}/pkgconfig/libraw.pc 112 139 %{_libdir}/pkgconfig/libraw_r.pc 113 140 %exclude %{_docdir}/libraw/* 114 141 142 %if 0%{?samples} 143 %defattr(-,root,root) 115 144 %files samples 116 %defattr(-,root,root)117 145 %{_bindir}/* 146 %endif 118 147 119 148 %changelog 149 * Thu Oct 15 2020 Elbert Pol <elbert.pol@gmail.com> - 0.20.2-1 150 - Updated to latest version 151 120 152 * Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 0.19.2-5 121 153 - Remove dll's from the devel package.
Note:
See TracChangeset
for help on using the changeset viewer.