Use mingw macros without leading underscore

epel9
Kalev Lember 13 years ago
parent fad6a7bd21
commit 9296f1d3c5

@ -1,6 +1,6 @@
%global __strip %{_mingw32_strip}
%global __objdump %{_mingw32_objdump}
%define __debug_install_post %{_mingw32_debug_install_post}
%global __strip %{mingw32_strip}
%global __objdump %{mingw32_objdump}
%define __debug_install_post %{mingw32_debug_install_post}
Summary: MinGW Windows port of the LibTIFF library
Name: mingw-libtiff
@ -56,7 +56,7 @@ Group: Development/Libraries
Static version of the MinGW Windows LibTIFF library.
%{?_mingw32_debug_package}
%{?mingw32_debug_package}
%prep
@ -73,8 +73,8 @@ autoheader
%build
export MINGW32_CFLAGS="%{_mingw32_cflags} -fno-strict-aliasing"
%{_mingw32_configure} --enable-static --enable-shared
export MINGW32_CFLAGS="%{mingw32_cflags} -fno-strict-aliasing"
%{mingw32_configure} --enable-static --enable-shared
make %{?_smp_mflags}
@ -82,32 +82,33 @@ make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_ROOT install
# remove docs
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/doc
rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
# remove binaries
rm -f $RPM_BUILD_ROOT%{_mingw32_bindir}/*.exe
rm -f $RPM_BUILD_ROOT%{mingw32_bindir}/*.exe
%files -n mingw32-libtiff
%doc COPYRIGHT README RELEASE-DATE VERSION TODO ChangeLog
%{_mingw32_bindir}/libtiff-3.dll
%{_mingw32_bindir}/libtiffxx-3.dll
%{_mingw32_includedir}/*
%{_mingw32_libdir}/libtiff.dll.a
%{_mingw32_libdir}/libtiffxx.dll.a
%{_mingw32_libdir}/libtiff.la
%{_mingw32_libdir}/libtiffxx.la
%{mingw32_bindir}/libtiff-3.dll
%{mingw32_bindir}/libtiffxx-3.dll
%{mingw32_includedir}/*
%{mingw32_libdir}/libtiff.dll.a
%{mingw32_libdir}/libtiffxx.dll.a
%{mingw32_libdir}/libtiff.la
%{mingw32_libdir}/libtiffxx.la
%files -n mingw32-libtiff-static
%{_mingw32_libdir}/libtiff.a
%{_mingw32_libdir}/libtiffxx.a
%{mingw32_libdir}/libtiff.a
%{mingw32_libdir}/libtiffxx.a
%changelog
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 3.9.5-5
- Renamed the source package to mingw-libtiff (#800437)
- Spec clean up
- Use mingw macros without leading underscore
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.9.5-4
- Rebuild against the mingw-w64 toolchain

Loading…
Cancel
Save