Blame SPECS/libkdcraw.spec

2b0930
Name:    libkdcraw
2b0930
Summary: A C++ interface around LibRaw library
2b0930
Version: 4.10.5
2b0930
Release: 2%{?dist}
2b0930
2b0930
# libkdcraw is GPLv2+,
2b0930
# LibRaw(bundled) is LGPLv2
2b0930
# demosaic-pack GPLv2+ GPLv3+ (addons to libraw)
2b0930
License: GPLv2+ and LGPLv2 and GPLv3+
2b0930
URL:     https://projects.kde.org/projects/kde/kdegraphics/libs/libkdcraw
2b0930
%global revision %(echo %{version} | cut -d. -f3)
2b0930
%if %{revision} >= 50
2b0930
%global stable unstable
2b0930
%else
2b0930
%global stable stable
2b0930
%endif
2b0930
Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
2b0930
# fix libjpeg detection for libjpeg-turbo, hopefully upstreamable
2b0930
# (the hack to add jpeg_mem_src from RawSpeed to LibRaw might not be though)
2b0930
Patch50: libkdcraw-4.10.0-libjpeg-turbo.patch
2b0930
# upstream patches
2b0930
Patch100: libkdcraw-4.10.5-CVE-2013-2126.patch
2b0930
BuildRequires: kdelibs4-devel
2b0930
%if 0%{?fedora} > 17
2b0930
# libjpeg-turbo-1.2.90+ provides jpeg_mem_src
2b0930
%define libjpeg_ver 1.2.90
2b0930
%endif
2b0930
BuildRequires: libjpeg-turbo-devel%{?libjpeg_ver: >= %{libjpeg_ver}}
2b0930
BuildRequires: pkgconfig(lcms2)
2b0930
BuildRequires: pkgconfig(jasper)
2b0930
BuildRequires: pkgconfig(libxml-2.0)
2b0930
2b0930
Requires: kdelibs4%{?_isa} >= %{_kde4_version}
2b0930
%{?libjpeg_ver:Requires: libjpeg-turbo%{?_isa} >= %{libjpeg_ver}}
2b0930
2b0930
# when split occurred
2b0930
Conflicts: kdegraphics-libs < 7:4.6.95-10
2b0930
2b0930
# upstream plans to unbundle when libraw-1.0 is released
2b0930
# see also http://mail.kde.org/pipermail/digikam-devel/2010-March/041682.html
2b0930
Provides: bundled(LibRaw)
2b0930
# deomosaic-pack addons to libraw
2b0930
Provides: bundled(LibRaw-demosaic-pack-GPL2)
2b0930
Provides: bundled(LibRaw-demosaic-pack-GPL3)
2b0930
2b0930
%description
2b0930
Libkdcraw is a C++ interface around LibRaw library used to decode RAW
2b0930
picture files. More information about LibRaw can be found at
2b0930
http://www.libraw.org.
2b0930
2b0930
%package devel
2b0930
Summary:  Development files for %{name} 
2b0930
Requires: %{name}%{?_isa} = %{version}-%{release}
2b0930
Requires: kdelibs4-devel 
2b0930
%description devel
2b0930
%{summary}.
2b0930
2b0930
2b0930
%prep
2b0930
%setup -q
2b0930
%patch50 -p1 -b .libjpeg-turbo
2b0930
2b0930
# upstream patches
2b0930
%patch100 -p1 -b .CVE-2013-2126
2b0930
2b0930
# copy/rename a few things for easier inclusion as %%doc
2b0930
cp -a libraw/README README.libraw
2b0930
cp -a libraw/COPYRIGHT COPYRIGHT.libraw
2b0930
2b0930
2b0930
%build
2b0930
mkdir -p %{_target_platform}
2b0930
pushd %{_target_platform}
2b0930
%{cmake_kde4} -DENABLE_LCMS2=ON -DENABLE_RAWSPEED=ON ..
2b0930
popd
2b0930
2b0930
make %{?_smp_mflags} -C %{_target_platform}
2b0930
2b0930
2b0930
%install
2b0930
rm -rf %{buildroot}
2b0930
2b0930
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
2b0930
2b0930
2b0930
%check
2b0930
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
2b0930
pkg-config --modversion libkdcraw
2b0930
make -C %{_target_platform}/test
2b0930
2b0930
2b0930
%post
2b0930
/sbin/ldconfig
2b0930
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
2b0930
2b0930
2b0930
%posttrans
2b0930
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
2b0930
2b0930
%postun
2b0930
/sbin/ldconfig
2b0930
if [ $1 -eq 0 ] ; then
2b0930
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
2b0930
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
2b0930
fi
2b0930
2b0930
2b0930
%files
2b0930
%doc AUTHORS ChangeLog COPYING NEWS README TODO
2b0930
%doc COPYRIGHT.libraw README.libraw libraw/README.demosaic-packs libraw/LICENSE.LGPL
2b0930
%{_kde4_libdir}/libkdcraw.so.22*
2b0930
%{_kde4_appsdir}/libkdcraw/
2b0930
%{_kde4_iconsdir}/hicolor/*/*/*
2b0930
2b0930
%files devel
2b0930
%{_kde4_libdir}/libkdcraw.so
2b0930
%{_kde4_libdir}/pkgconfig/libkdcraw.pc
2b0930
%{_kde4_includedir}/libkdcraw/
2b0930
2b0930
2b0930
%changelog
2b0930
* Mon Jul 15 2013 Than Ngo <than@redhat.com> - 4.10.5-2
2b0930
- bz#970713, CVE-2013-2126, double-free flaw when handling
2b0930
  damaged full-color in Foveon and sRAW files
2b0930
2b0930
* Sun Jun 30 2013 Than Ngo <than@redhat.com> - 4.10.5-1
2b0930
- 4.10.5
2b0930
2b0930
* Sat Jun 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.4-1
2b0930
- 4.10.4
2b0930
2b0930
* Mon May 06 2013 Than Ngo <than@redhat.com> - 4.10.3-1
2b0930
- 4.10.3
2b0930
2b0930
* Sun Mar 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.2-1
2b0930
- 4.10.2
2b0930
2b0930
* Sat Mar 09 2013 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.10.1-1.1
2b0930
- make libjpeg support work on Fedora 17
2b0930
2b0930
* Sat Mar 02 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.1-1
2b0930
- 4.10.1
2b0930
2b0930
* Fri Feb 08 2013 Rex Dieter <rdieter@fedoraproject.org> 4.10.0-3
2b0930
- Requires: libjpeg-turbo >= 1.2.90
2b0930
2b0930
* Wed Feb 06 2013 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.10.0-2
2b0930
- BR libjpeg-turbo-devel >= 1.2.90, fix libjpeg detection for libjpeg-turbo
2b0930
2b0930
* Thu Jan 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.0-1
2b0930
- 4.10.0
2b0930
2b0930
* Sat Jan 19 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.98-1
2b0930
- 4.9.98
2b0930
2b0930
* Fri Jan 04 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.97-1
2b0930
- 4.9.97
2b0930
2b0930
* Wed Dec 19 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.95-1
2b0930
- 4.9.95
2b0930
2b0930
* Mon Dec 03 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.90-1
2b0930
- 4.9.90 (4.10 beta2)
2b0930
2b0930
* Tue Nov 20 2012 Rex Dieter <rdieter@fedoraproject.org> 4.9.80-1
2b0930
- 4.9.80
2b0930
2b0930
* Thu Nov  8 2012 Alexey Kurov <nucleo@fedoraproject.org> - 4.9.60-1
2b0930
- libkdcraw update from digikam-3.0.0-beta3
2b0930
2b0930
* Wed Oct 24 2012 Alexey Kurov <nucleo@fedoraproject.org> - 4.9.50-3
2b0930
- rebuild for libjpeg8
2b0930
2b0930
* Sat Oct 13 2012 Alexey Kurov <nucleo@fedoraproject.org> - 4.9.50-2
2b0930
- BR: pkgconfig(jasper) pkgconfig(libxml-2.0)
2b0930
2b0930
* Sat Oct 13 2012 Alexey Kurov <nucleo@fedoraproject.org> - 4.9.50-1
2b0930
- libkdcraw update from digikam-3.0.0-beta2
2b0930
- enable build against lcms2
2b0930
- enable RawSpeed libraw codec
2b0930
2b0930
* Fri Sep 28 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.2-1
2b0930
- 4.9.2
2b0930
2b0930
* Mon Sep 03 2012 Than Ngo <than@redhat.com> - 4.9.1-1
2b0930
- 4.9.1
2b0930
2b0930
* Thu Jul 26 2012 Lukas Tinkl <ltinkl@redhat.com> - 4.9.0-1
2b0930
- 4.9.0
2b0930
2b0930
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.97-2
2b0930
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2b0930
2b0930
* Wed Jul 11 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.97-1
2b0930
- 4.8.97
2b0930
2b0930
* Wed Jun 27 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.95-1
2b0930
- 4.8.95
2b0930
2b0930
* Sat Jun 09 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.90-1
2b0930
- 4.8.90
2b0930
2b0930
* Sat May 26 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.80-1
2b0930
- 4.8.80
2b0930
- bump soname version to 21*
2b0930
2b0930
* Mon Apr 30 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.3-1
2b0930
- 4.8.3
2b0930
2b0930
* Fri Mar 30 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.2-1
2b0930
- 4.8.2
2b0930
2b0930
* Mon Mar 05 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.1-1
2b0930
- 4.8.1
2b0930
2b0930
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.0-2
2b0930
- Rebuilt for c++ ABI breakage
2b0930
2b0930
* Sun Jan 22 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.0-1
2b0930
- 4.8.0
2b0930
2b0930
* Wed Jan 04 2012 Radek Novacek <rnovacek@redhat.com> - 4.7.97-1
2b0930
- 4.7.97
2b0930
2b0930
* Wed Dec 21 2011 Radek Novacek <rnovacek@redhat.com> - 4.7.95-1
2b0930
- 4.7.95
2b0930
2b0930
* Sun Dec 04 2011 Rex Dieter <rdieter@fedoraproject.org> - 4.7.90-1
2b0930
- 4.7.90
2b0930
2b0930
* Fri Nov 25 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.80-1
2b0930
- 4.7.80 (beta 1)
2b0930
2b0930
* Sat Oct 29 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.3-1
2b0930
- 4.7.3
2b0930
2b0930
* Tue Oct 04 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.2-1
2b0930
- 4.7.2
2b0930
2b0930
* Wed Sep 07 2011 Than Ngo <than@redhat.com> - 4.7.1-1
2b0930
- 4.7.1
2b0930
2b0930
* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
2b0930
- 4.7.0
2b0930
2b0930
* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
2b0930
- 4.6.95
2b0930
2b0930
* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-5
2b0930
- License: GPLv2+ and LGPLv2 and GPLv3+
2b0930
- Provides: bundled(LibRaw)
2b0930
2b0930
* Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
2b0930
- fix URL
2b0930
- fix scriptlets
2b0930
2b0930
* Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
2b0930
- License: GPLv2+
2b0930
- %%doc: +ChangeLog NEWS
2b0930
- add %%check section
2b0930
2b0930
* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
2b0930
- fix Source0 URL
2b0930
- Conflicts: kdegraphics < 7:4.6.90-10
2b0930
2b0930
* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
2b0930
- first try
2b0930
2b0930