[12189] | 1 | %bcond_with openmp |
---|
| 2 | |
---|
[1343] | 3 | Summary: Library for reading RAW files obtained from digital photo cameras |
---|
| 4 | Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ |
---|
| 5 | Name: LibRaw |
---|
[12484] | 6 | Version: 0.20.0 |
---|
[12499] | 7 | Release: 2%{?_dist_release} |
---|
[12484] | 8 | Group: system |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[12189] | 12 | License: BSD and (CDDL or LGPLv2) |
---|
[12484] | 13 | URL: https://www.libraw.org/ |
---|
| 14 | Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz |
---|
[12499] | 15 | Patch1000: LibRaw-Additional-checks-in-hassy-model-parser.patch |
---|
[12484] | 16 | |
---|
[1343] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[4055] | 18 | BuildRequires: gcc libtool make |
---|
[6078] | 19 | BuildRequires: lcms2-devel |
---|
[5273] | 20 | BuildRequires: jasper-devel |
---|
[1343] | 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 | |
---|
[12484] | 29 | |
---|
[1343] | 30 | %package devel |
---|
| 31 | Summary: LibRaw development libraries |
---|
| 32 | Summary(ja): LibRaw の開発ライブラリ |
---|
[12484] | 33 | Group: programming |
---|
[6078] | 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | Requires: pkgconfig |
---|
[4055] | 36 | |
---|
[1343] | 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 | |
---|
[12484] | 43 | |
---|
[4055] | 44 | %package static |
---|
| 45 | Summary: LibRaw static libraries |
---|
| 46 | Summary(ja): LibRaw の静的ライブラリ |
---|
[12484] | 47 | Group: programming |
---|
[4055] | 48 | |
---|
| 49 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 50 | |
---|
| 51 | %description static |
---|
| 52 | This package contains the static library for %{name}. |
---|
| 53 | |
---|
[12484] | 54 | |
---|
| 55 | %debug_package |
---|
| 56 | |
---|
| 57 | |
---|
[1343] | 58 | %prep |
---|
[12189] | 59 | %setup -q |
---|
[12499] | 60 | %patch1000 -p1 |
---|
[1343] | 61 | |
---|
[12484] | 62 | |
---|
[1343] | 63 | %build |
---|
[12189] | 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 |
---|
[1343] | 73 | |
---|
[12189] | 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 | |
---|
[1343] | 80 | %install |
---|
| 81 | rm -rf %{buildroot} |
---|
| 82 | cp -pr doc manual |
---|
[10427] | 83 | chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.* |
---|
[5273] | 84 | chmod 644 manual/*.html |
---|
[1343] | 85 | |
---|
| 86 | # The Libraries |
---|
[12189] | 87 | %make_install |
---|
[1343] | 88 | |
---|
[12189] | 89 | rm -rfv samples/.deps |
---|
| 90 | rm -fv samples/.dirstamp |
---|
| 91 | rm -fv samples/*.o |
---|
| 92 | |
---|
[4055] | 93 | rm -rf %{buildroot}%{_libdir}/*.la |
---|
| 94 | |
---|
[12189] | 95 | |
---|
[12484] | 96 | %post -p /sbin/ldconfig |
---|
| 97 | %postun -p /sbin/ldconfig |
---|
| 98 | |
---|
| 99 | |
---|
[5273] | 100 | %files |
---|
| 101 | %defattr(-,root,root,-) |
---|
[12189] | 102 | %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT |
---|
| 103 | %doc Changelog.txt |
---|
[5273] | 104 | %{_libdir}/*.so.* |
---|
| 105 | |
---|
[1343] | 106 | %files devel |
---|
| 107 | %defattr(-,root,root,-) |
---|
[4055] | 108 | %doc manual samples |
---|
[5273] | 109 | %exclude %{_docdir}/libraw/ |
---|
[1343] | 110 | %dir %{_includedir}/libraw |
---|
| 111 | %{_includedir}/libraw/*.h |
---|
[5273] | 112 | %{_libdir}/*.so |
---|
[4055] | 113 | %{_libdir}/pkgconfig/*.pc |
---|
| 114 | |
---|
| 115 | %files static |
---|
| 116 | %defattr(-,root,root,-) |
---|
[5273] | 117 | %{_libdir}/*.a |
---|
[1343] | 118 | |
---|
[5292] | 119 | |
---|
[1343] | 120 | %changelog |
---|
[12499] | 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 | |
---|
[12484] | 124 | * Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-1 |
---|
| 125 | - new upstream release. |
---|
| 126 | |
---|
[12189] | 127 | * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1 |
---|
| 128 | - new upstream release. |
---|
| 129 | |
---|
[10427] | 130 | * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1 |
---|
| 131 | - new upstream release. |
---|
| 132 | |
---|
[8252] | 133 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1 |
---|
| 134 | - new upstream release |
---|
| 135 | |
---|
[8201] | 136 | * Sat Jan 18 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15.4-1 |
---|
| 137 | - new upstream release |
---|
| 138 | |
---|
[7698] | 139 | * Sun May 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.8-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
[6465] | 142 | * Fri Jun 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.7-1 |
---|
| 143 | - new upstream release |
---|
| 144 | |
---|
[6078] | 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 | |
---|
[5417] | 149 | * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[5292] | 152 | * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[5273] | 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 | |
---|
[4105] | 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 | |
---|
[4055] | 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 | |
---|
[2344] | 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 | |
---|
[1938] | 187 | * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1 |
---|
| 188 | - new upstream release |
---|
| 189 | |
---|
[1343] | 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 |
---|