1 | %bcond_with openmp |
---|
2 | |
---|
3 | Summary: Library for reading RAW files obtained from digital photo cameras |
---|
4 | Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ |
---|
5 | Name: LibRaw |
---|
6 | Version: 0.20.0 |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | Group: system |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | |
---|
12 | License: BSD and (CDDL or LGPLv2) |
---|
13 | URL: https://www.libraw.org/ |
---|
14 | Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz |
---|
15 | Patch1000: LibRaw-Additional-checks-in-hassy-model-parser.patch |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: gcc libtool make |
---|
19 | BuildRequires: lcms2-devel |
---|
20 | BuildRequires: jasper-devel |
---|
21 | |
---|
22 | %description |
---|
23 | LibRaw is a library for reading RAW files obtained from digital photo |
---|
24 | cameras (CRW/CR2, NEF, RAF, DNG, and others). |
---|
25 | |
---|
26 | LibRaw is based on the source codes of the dcraw utility, where part of |
---|
27 | drawbacks have already been eliminated and part will be fixed in future. |
---|
28 | |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: LibRaw development libraries |
---|
32 | Summary(ja): LibRaw の開発ライブラリ |
---|
33 | Group: programming |
---|
34 | Requires: %{name} = %{version}-%{release} |
---|
35 | Requires: pkgconfig |
---|
36 | |
---|
37 | %description devel |
---|
38 | LibRaw development libraries |
---|
39 | |
---|
40 | This package contains static libraries that applications can use to build |
---|
41 | against libraw. LibRaw does not provide dynamic libraries. |
---|
42 | |
---|
43 | |
---|
44 | %package static |
---|
45 | Summary: LibRaw static libraries |
---|
46 | Summary(ja): LibRaw の静的ライブラリ |
---|
47 | Group: programming |
---|
48 | |
---|
49 | Requires: %{name}-devel = %{version}-%{release} |
---|
50 | |
---|
51 | %description static |
---|
52 | This package contains the static library for %{name}. |
---|
53 | |
---|
54 | |
---|
55 | %debug_package |
---|
56 | |
---|
57 | |
---|
58 | %prep |
---|
59 | %setup -q |
---|
60 | %patch1000 -p1 |
---|
61 | |
---|
62 | |
---|
63 | %build |
---|
64 | autoreconf -if |
---|
65 | %configure \ |
---|
66 | --enable-examples=no \ |
---|
67 | --enable-jasper \ |
---|
68 | --enable-jpeg \ |
---|
69 | --enable-lcms \ |
---|
70 | %if %{with openmp} |
---|
71 | --enable-openmp |
---|
72 | %endif |
---|
73 | |
---|
74 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
75 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
76 | |
---|
77 | %make_build |
---|
78 | |
---|
79 | |
---|
80 | %install |
---|
81 | rm -rf %{buildroot} |
---|
82 | cp -pr doc manual |
---|
83 | chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.* |
---|
84 | chmod 644 manual/*.html |
---|
85 | |
---|
86 | # The Libraries |
---|
87 | %make_install |
---|
88 | |
---|
89 | rm -rfv samples/.deps |
---|
90 | rm -fv samples/.dirstamp |
---|
91 | rm -fv samples/*.o |
---|
92 | |
---|
93 | rm -rf %{buildroot}%{_libdir}/*.la |
---|
94 | |
---|
95 | |
---|
96 | %post -p /sbin/ldconfig |
---|
97 | %postun -p /sbin/ldconfig |
---|
98 | |
---|
99 | |
---|
100 | %files |
---|
101 | %defattr(-,root,root,-) |
---|
102 | %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT |
---|
103 | %doc Changelog.txt |
---|
104 | %{_libdir}/*.so.* |
---|
105 | |
---|
106 | %files devel |
---|
107 | %defattr(-,root,root,-) |
---|
108 | %doc manual samples |
---|
109 | %exclude %{_docdir}/libraw/ |
---|
110 | %dir %{_includedir}/libraw |
---|
111 | %{_includedir}/libraw/*.h |
---|
112 | %{_libdir}/*.so |
---|
113 | %{_libdir}/pkgconfig/*.pc |
---|
114 | |
---|
115 | %files static |
---|
116 | %defattr(-,root,root,-) |
---|
117 | %{_libdir}/*.a |
---|
118 | |
---|
119 | |
---|
120 | %changelog |
---|
121 | * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-2 |
---|
122 | - imported Patch1000 from upstream to fix CVE-2020-24890. |
---|
123 | |
---|
124 | * Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-1 |
---|
125 | - new upstream release. |
---|
126 | |
---|
127 | * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1 |
---|
128 | - new upstream release. |
---|
129 | |
---|
130 | * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1 |
---|
131 | - new upstream release. |
---|
132 | |
---|
133 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1 |
---|
134 | - new upstream release |
---|
135 | |
---|
136 | * Sat Jan 18 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15.4-1 |
---|
137 | - new upstream release |
---|
138 | |
---|
139 | * Sun May 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.8-1 |
---|
140 | - new upstream release |
---|
141 | |
---|
142 | * Fri Jun 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.7-1 |
---|
143 | - new upstream release |
---|
144 | |
---|
145 | * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.6-1 |
---|
146 | - new upstream release |
---|
147 | - change BuildRequires: lcms2-devel instead of lcms-devel |
---|
148 | |
---|
149 | * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1 |
---|
150 | - new upstream release |
---|
151 | |
---|
152 | * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1 |
---|
153 | - new upstream release |
---|
154 | |
---|
155 | * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1 |
---|
156 | - new upstream release |
---|
157 | - added BuildRequires: jasper-devel |
---|
158 | - fixed configure option |
---|
159 | - deleted --enable-shared=no, --enable-static=no |
---|
160 | - added --enable-jasper |
---|
161 | - fixed %%files in -devel |
---|
162 | - run ldconfig in %%post, %%postun |
---|
163 | |
---|
164 | * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3 |
---|
165 | - added BuildRequires: lcms-devel |
---|
166 | - added configure option --enable-lcms |
---|
167 | |
---|
168 | * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2 |
---|
169 | - added BuildRequires: gcc libtool make |
---|
170 | - fixed %%install |
---|
171 | - deleted library archive |
---|
172 | - fixed %%doc in -devel package |
---|
173 | |
---|
174 | * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1 |
---|
175 | - new upstream release |
---|
176 | - dropt Patch0 |
---|
177 | - fixed configure option |
---|
178 | - fixed %%files |
---|
179 | - splitted -static package |
---|
180 | |
---|
181 | * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1 |
---|
182 | - new upstream release |
---|
183 | - added License: LibRaw Software License |
---|
184 | - dropt patch1,2 |
---|
185 | - replaced patch0 by Fedora development patch |
---|
186 | |
---|
187 | * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1 |
---|
188 | - new upstream release |
---|
189 | |
---|
190 | * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1 |
---|
191 | - initial build for VineSeed |
---|
192 | |
---|
193 | * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1 |
---|
194 | - New package |
---|