From 55de198d0597a370ab302f442ce45b2573c9d832 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sun, 3 Jan 2010 14:36:26 +0100 Subject: * Sat Jan 02 2010 Hans Ulrich Niedermann - 0.6.19-1 - Initial mingw32-libexif package --- mingw32-libexif.spec | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'mingw32-libexif.spec') diff --git a/mingw32-libexif.spec b/mingw32-libexif.spec index 5335ef1..e824586 100644 --- a/mingw32-libexif.spec +++ b/mingw32-libexif.spec @@ -1,9 +1,19 @@ +%if 0%{?fedora} >= 12 +%define create_debuginfo_subpackage 1 +%else +%define create_debuginfo_subpackage 0 +%endif + %define __strip %{_mingw32_strip} %define __objdump %{_mingw32_objdump} %define _use_internal_dependency_generator 0 %define __find_requires %{_mingw32_findrequires} %define __find_provides %{_mingw32_findprovides} +%if %{create_debuginfo_subpackage} +%define __debug_install_post %{_mingw32_debug_install_post} +%endif + # The number N in libexif-N.dll %global libexif_major 12 @@ -20,12 +30,26 @@ URL: http://libexif.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/libexif/libexif-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if %{create_debuginfo_subpackage} +BuildRequires: mingw32-filesystem >= 53 +%else +BuildRequires: mingw32-filesystem >= 50 +%endif BuildRequires: mingw32-binutils BuildRequires: mingw32-gcc +BuildRequires: pkgconfig BuildArch: noarch +%if %{create_debuginfo_subpackage} +# Use a ? to expand to nothing if undefined, enabling F13 mock builds on F11. +# This avoids the trick of hiding the macro in %%description which in turn +# confuses the koji webinterface. +%{?_mingw32_debug_package} +%endif + + %description Most digital cameras produce EXIF files, which are JPEG files with extra tags that contain information about the image. The EXIF library @@ -33,17 +57,18 @@ allows you to parse an EXIF file and read the data from those tags. %prep -%setup -q +%setup -n libexif-%{version} -q %build -%configure --disable-static --disable-docs +%{_mingw32_configure} --disable-static --enable-shared --disable-docs --disable-nls make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT%{_mingw32_docdir}/libexif docdir %clean @@ -52,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYING README NEWS +%doc AUTHORS ChangeLog COPYING README NEWS %{_mingw32_bindir}/libexif-%{libexif_major}.dll %{_mingw32_includedir}/libexif %{_mingw32_libdir}/libexif.dll.a @@ -63,4 +88,3 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Jan 2 2010 Hans Ulrich Niedermann - 0.6.19-1 - Initial mingw32-libexif package - -- cgit