summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-01-03 14:36:26 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2010-01-03 14:36:26 +0100
commit55de198d0597a370ab302f442ce45b2573c9d832 (patch)
tree828711d19e5c1e27b31e122cda6ca898dbaaebeb
parent90571a27f3de6e608e26cc63c7d7ffd356056404 (diff)
downloadmingw32-libexif-package-master.tar.gz
mingw32-libexif-package-master.tar.xz
mingw32-libexif-package-master.zip
* Sat Jan 02 2010 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.6.19-1HEADmingw32-libexif-0.6.19-1.fc11master
- Initial mingw32-libexif package
-rw-r--r--[l---------]GNUmakefile8
m---------git-rpm0
-rw-r--r--mingw32-libexif.spec32
3 files changed, 35 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 9acf7e6..10b2a19 120000..100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1 +1,7 @@
-git-rpm/GNUmakefile \ No newline at end of file
+# 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
-Subproject b8d10c0dba38aa47d008e09d82b055b9d848783
+Subproject 90dbc1b65548a1693c091df6c23ca0f06d2b38c
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 <hun@n-dimensional.de> - 0.6.19-1
- Initial mingw32-libexif package
-