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 --- GNUmakefile | 8 +++++++- git-rpm | 2 +- mingw32-libexif.spec | 32 ++++++++++++++++++++++++++++---- 3 files changed, 36 insertions(+), 6 deletions(-) mode change 120000 => 100644 GNUmakefile diff --git a/GNUmakefile b/GNUmakefile deleted file mode 120000 index 9acf7e6..0000000 --- a/GNUmakefile +++ /dev/null @@ -1 +0,0 @@ -git-rpm/GNUmakefile \ No newline at end of file diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..10b2a19 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,7 @@ +# Change the following to an explicit package name if you want +# the spec file name to be different from the directory name +# for some reason. +NAME = $(notdir $(realpath .)) +dummy := $(shell test -f git-rpm/git-rpm.mk || git submodule update --init) +MOCK_ARCH := i386 +include git-rpm/git-rpm.mk diff --git a/git-rpm b/git-rpm index b8d10c0..90dbc1b 160000 --- a/git-rpm +++ b/git-rpm @@ -1 +1 @@ -Subproject commit b8d10c0dba38aa47d008e09d82b055b9d848783c +Subproject commit 90dbc1b65548a1693c091df6c23ca0f06d2b38c0 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