| 1 | Name: libkdcraw |
|---|
| 2 | Summary: A C++ interface around LibRaw library |
|---|
| 3 | Version: 4.7.2 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | # libkdcraw is GPLv2+, |
|---|
| 7 | # LibRaw(bundled) is LGPLv2 |
|---|
| 8 | # demosaic-pack GPLv2+ GPLv3+ (addons to libraw) |
|---|
| 9 | License: GPLv2+ and LGPLv2 and GPLv3+ |
|---|
| 10 | URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libkdcraw |
|---|
| 11 | Group: System Environment/Libraries |
|---|
| 12 | |
|---|
| 13 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2 |
|---|
| 14 | |
|---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 16 | BuildRequires: kdelibs4-devel >= %{version} |
|---|
| 17 | BuildRequires: lcms-devel |
|---|
| 18 | BuildRequires: libjpeg-devel |
|---|
| 19 | |
|---|
| 20 | Requires: kdelibs4 >= 4.7 |
|---|
| 21 | |
|---|
| 22 | # when split occurred |
|---|
| 23 | Conflicts: kdegraphics-libs < 4.6.95-10 |
|---|
| 24 | |
|---|
| 25 | # upstream plans to unbundle when libraw-1.0 is released |
|---|
| 26 | # see also http://mail.kde.org/pipermail/digikam-devel/2010-March/041682.html |
|---|
| 27 | Provides: bundled(LibRaw) |
|---|
| 28 | # deomosaic-pack addons to libraw |
|---|
| 29 | Provides: bundled(LibRaw-demosaic-pack-GPL2) |
|---|
| 30 | Provides: bundled(LibRaw-demosaic-pack-GPL3) |
|---|
| 31 | |
|---|
| 32 | %description |
|---|
| 33 | Libkdcraw is a C++ interface around LibRaw library used to decode RAW |
|---|
| 34 | picture files. More information about LibRaw can be found at |
|---|
| 35 | http://www.libraw.org. |
|---|
| 36 | |
|---|
| 37 | %package devel |
|---|
| 38 | Summary: Development files for %{name} |
|---|
| 39 | Summary(ja): %{name} の開発用ファイル |
|---|
| 40 | Group: Development/Libraries |
|---|
| 41 | Requires: %{name} = %{version}-%{release} |
|---|
| 42 | Requires: kdelibs4-devel |
|---|
| 43 | |
|---|
| 44 | %description devel |
|---|
| 45 | %{summary}. |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | %prep |
|---|
| 49 | %setup -q |
|---|
| 50 | |
|---|
| 51 | # copy/rename a few things for easier inclusion as %%doc |
|---|
| 52 | cp -a libraw/README README.libraw |
|---|
| 53 | cp -a libraw/COPYRIGHT COPYRIGHT.libraw |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %build |
|---|
| 57 | mkdir -p %{_target_platform} |
|---|
| 58 | pushd %{_target_platform} |
|---|
| 59 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
|---|
| 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 |
|---|
| 103 | %{_libdir}/libkdcraw.so.20* |
|---|
| 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 |
|---|
| 114 | * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
|---|
| 115 | - new upstream release |
|---|
| 116 | |
|---|
| 117 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
|---|
| 118 | - Initial build for Vine Linux |
|---|
| 119 | |
|---|
| 120 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
|---|
| 121 | - 4.7.0 |
|---|
| 122 | |
|---|
| 123 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
|---|
| 124 | - 4.6.95 |
|---|
| 125 | |
|---|
| 126 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-5 |
|---|
| 127 | - License: GPLv2+ and LGPLv2 and GPLv3+ |
|---|
| 128 | - Provides: bundled(LibRaw) |
|---|
| 129 | |
|---|
| 130 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4 |
|---|
| 131 | - fix URL |
|---|
| 132 | - fix scriptlets |
|---|
| 133 | |
|---|
| 134 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
|---|
| 135 | - License: GPLv2+ |
|---|
| 136 | - %%doc: +ChangeLog NEWS |
|---|
| 137 | - add %%check section |
|---|
| 138 | |
|---|
| 139 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
|---|
| 140 | - fix Source0 URL |
|---|
| 141 | - Conflicts: kdegraphics < 7:4.6.90-10 |
|---|
| 142 | |
|---|
| 143 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
|---|
| 144 | - first try |
|---|
| 145 | |
|---|
| 146 | |
|---|