[4664] | 1 | Name: libkdcraw |
---|
| 2 | Summary: A C++ interface around LibRaw library |
---|
[5298] | 3 | Summary(ja): LibRaw ライブラリ向けの C++ インターフェース |
---|
[6899] | 4 | Version: 4.9.2 |
---|
[5006] | 5 | Release: 1%{?_dist_release} |
---|
[4664] | 6 | |
---|
| 7 | # libkdcraw is GPLv2+, |
---|
| 8 | # LibRaw(bundled) is LGPLv2 |
---|
| 9 | # demosaic-pack GPLv2+ GPLv3+ (addons to libraw) |
---|
| 10 | License: GPLv2+ and LGPLv2 and GPLv3+ |
---|
| 11 | URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libkdcraw |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | |
---|
[6725] | 14 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4664] | 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | BuildRequires: lcms-devel |
---|
| 19 | BuildRequires: libjpeg-devel |
---|
| 20 | |
---|
[6725] | 21 | Requires: kdelibs4 >= %{version} |
---|
[4664] | 22 | |
---|
| 23 | # when split occurred |
---|
| 24 | Conflicts: kdegraphics-libs < 4.6.95-10 |
---|
| 25 | |
---|
| 26 | # upstream plans to unbundle when libraw-1.0 is released |
---|
| 27 | # see also http://mail.kde.org/pipermail/digikam-devel/2010-March/041682.html |
---|
| 28 | Provides: bundled(LibRaw) |
---|
| 29 | # deomosaic-pack addons to libraw |
---|
| 30 | Provides: bundled(LibRaw-demosaic-pack-GPL2) |
---|
| 31 | Provides: bundled(LibRaw-demosaic-pack-GPL3) |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | Libkdcraw is a C++ interface around LibRaw library used to decode RAW |
---|
| 35 | picture files. More information about LibRaw can be found at |
---|
| 36 | http://www.libraw.org. |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development files for %{name} |
---|
| 40 | Summary(ja): %{name} の開発用ファイル |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | Requires: %{name} = %{version}-%{release} |
---|
| 43 | Requires: kdelibs4-devel |
---|
| 44 | |
---|
| 45 | %description devel |
---|
| 46 | %{summary}. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
| 51 | |
---|
| 52 | # copy/rename a few things for easier inclusion as %%doc |
---|
| 53 | cp -a libraw/README README.libraw |
---|
| 54 | cp -a libraw/COPYRIGHT COPYRIGHT.libraw |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | mkdir -p %{_target_platform} |
---|
| 59 | pushd %{_target_platform} |
---|
| 60 | %cmake \ |
---|
| 61 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 62 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 63 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 64 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 65 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 66 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 67 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 68 | .. |
---|
| 69 | popd |
---|
| 70 | |
---|
| 71 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %install |
---|
| 75 | rm -rf %{buildroot} |
---|
| 76 | |
---|
| 77 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %check |
---|
| 81 | export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig |
---|
| 82 | pkg-config --modversion libkdcraw |
---|
| 83 | make -C %{_target_platform}/test |
---|
| 84 | |
---|
| 85 | %post |
---|
| 86 | /sbin/ldconfig |
---|
| 87 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 88 | |
---|
| 89 | %posttrans |
---|
| 90 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 91 | |
---|
| 92 | %postun |
---|
| 93 | /sbin/ldconfig |
---|
| 94 | if [ $1 -eq 0 ] ; then |
---|
| 95 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 96 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 97 | fi |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %files |
---|
| 101 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
| 102 | %doc COPYRIGHT.libraw README.libraw libraw/README.demosaic-packs libraw/LICENSE.LGPL |
---|
[6725] | 103 | %{_libdir}/libkdcraw.so.* |
---|
[4664] | 104 | %{_datadir}/kde4/apps/libkdcraw/ |
---|
| 105 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 106 | |
---|
| 107 | %files devel |
---|
| 108 | %{_libdir}/libkdcraw.so |
---|
| 109 | %{_libdir}/pkgconfig/libkdcraw.pc |
---|
| 110 | %{_includedir}/kde4/libkdcraw/ |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | %changelog |
---|
[6899] | 114 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 115 | - new upstream release |
---|
| 116 | |
---|
[6797] | 117 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 118 | - new upstream release |
---|
| 119 | |
---|
[6725] | 120 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 121 | - new upstream release |
---|
| 122 | |
---|
[5298] | 123 | * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
| 124 | - new upstream release |
---|
| 125 | |
---|
[5006] | 126 | * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[4664] | 129 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 130 | - Initial build for Vine Linux |
---|
| 131 | |
---|
| 132 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 133 | - 4.7.0 |
---|
| 134 | |
---|
| 135 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 136 | - 4.6.95 |
---|
| 137 | |
---|
| 138 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-5 |
---|
| 139 | - License: GPLv2+ and LGPLv2 and GPLv3+ |
---|
| 140 | - Provides: bundled(LibRaw) |
---|
| 141 | |
---|
| 142 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4 |
---|
| 143 | - fix URL |
---|
| 144 | - fix scriptlets |
---|
| 145 | |
---|
| 146 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
| 147 | - License: GPLv2+ |
---|
| 148 | - %%doc: +ChangeLog NEWS |
---|
| 149 | - add %%check section |
---|
| 150 | |
---|
| 151 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
| 152 | - fix Source0 URL |
---|
| 153 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
| 154 | |
---|
| 155 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
| 156 | - first try |
---|
| 157 | |
---|
| 158 | |
---|