Use mingw macros without leading underscore
This commit is contained in:
parent
066270e6d8
commit
4271308caf
@ -5,8 +5,8 @@
|
|||||||
# ncurses. So here we are using the GNU termcap library which is
|
# ncurses. So here we are using the GNU termcap library which is
|
||||||
# regretably GPL'd.
|
# regretably GPL'd.
|
||||||
|
|
||||||
%define __strip %{_mingw32_strip}
|
%define __strip %{mingw32_strip}
|
||||||
%define __objdump %{_mingw32_objdump}
|
%define __objdump %{mingw32_objdump}
|
||||||
|
|
||||||
Name: mingw-termcap
|
Name: mingw-termcap
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
@ -60,11 +60,11 @@ autoconf
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{_mingw32_configure}
|
%{mingw32_configure}
|
||||||
make
|
make
|
||||||
|
|
||||||
# Build a shared library. No need for -fPIC on Windows.
|
# Build a shared library. No need for -fPIC on Windows.
|
||||||
%{_mingw32_cc} -shared \
|
%{mingw32_cc} -shared \
|
||||||
-Wl,--out-implib,libtermcap.dll.a \
|
-Wl,--out-implib,libtermcap.dll.a \
|
||||||
-o libtermcap-0.dll \
|
-o libtermcap-0.dll \
|
||||||
termcap.o tparam.o version.o
|
termcap.o tparam.o version.o
|
||||||
@ -72,37 +72,38 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install \
|
make install \
|
||||||
prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} \
|
prefix=$RPM_BUILD_ROOT%{mingw32_prefix} \
|
||||||
exec_prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} \
|
exec_prefix=$RPM_BUILD_ROOT%{mingw32_prefix} \
|
||||||
oldincludedir=
|
oldincludedir=
|
||||||
|
|
||||||
# Move the shared library to the correct locations.
|
# Move the shared library to the correct locations.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
|
mkdir -p $RPM_BUILD_ROOT%{mingw32_bindir}
|
||||||
install -m 0755 libtermcap-0.dll $RPM_BUILD_ROOT%{_mingw32_bindir}
|
install -m 0755 libtermcap-0.dll $RPM_BUILD_ROOT%{mingw32_bindir}
|
||||||
install -m 0755 libtermcap.dll.a $RPM_BUILD_ROOT%{_mingw32_libdir}
|
install -m 0755 libtermcap.dll.a $RPM_BUILD_ROOT%{mingw32_libdir}
|
||||||
|
|
||||||
# Don't want the static library, thank you.
|
# Don't want the static library, thank you.
|
||||||
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libtermcap.a
|
rm $RPM_BUILD_ROOT%{mingw32_libdir}/libtermcap.a
|
||||||
|
|
||||||
# Move the info files to the correct location.
|
# Move the info files to the correct location.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_mingw32_infodir}
|
mkdir -p $RPM_BUILD_ROOT%{mingw32_infodir}
|
||||||
mv $RPM_BUILD_ROOT%{_mingw32_prefix}/info/* $RPM_BUILD_ROOT%{_mingw32_infodir}
|
mv $RPM_BUILD_ROOT%{mingw32_prefix}/info/* $RPM_BUILD_ROOT%{mingw32_infodir}
|
||||||
|
|
||||||
|
|
||||||
%files -n mingw32-termcap
|
%files -n mingw32-termcap
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_mingw32_bindir}/libtermcap-0.dll
|
%{mingw32_bindir}/libtermcap-0.dll
|
||||||
%{_mingw32_libdir}/libtermcap.dll.a
|
%{mingw32_libdir}/libtermcap.dll.a
|
||||||
%{_mingw32_includedir}/termcap.h
|
%{mingw32_includedir}/termcap.h
|
||||||
# Note that we want the info files in this package because
|
# Note that we want the info files in this package because
|
||||||
# there is no equivalent native Fedora package.
|
# there is no equivalent native Fedora package.
|
||||||
%{_mingw32_infodir}/*
|
%{mingw32_infodir}/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.3.1-12
|
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.3.1-12
|
||||||
- Renamed the source package to mingw-termcap (#801034)
|
- Renamed the source package to mingw-termcap (#801034)
|
||||||
- Modernize the spec file
|
- Modernize the spec file
|
||||||
|
- Use mingw macros without leading underscore
|
||||||
|
|
||||||
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.3.1-11
|
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.3.1-11
|
||||||
- Rebuild against the mingw-w64 toolchain
|
- Rebuild against the mingw-w64 toolchain
|
||||||
|
Loading…
Reference in New Issue
Block a user