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