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