Package mingw32-termcap: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | # Note: Termcap was deprecated and removed from Fedora after F-8. It # has been replaced by ncurses. However ncurses cannot be compiled on # Windows so we have to supply termcap. In addition, the last stand- # alone Fedora termcap package was actually just %_sysconfdir/termcap from # ncurses. So here we are using the GNU termcap library which is # regretably GPL'd. Name: mingw32-termcap Version: 1.3.1 Release: alt1 Summary: MinGW terminal feature database License: GPLv2+ Group: System/Libraries Url: ftp://ftp.gnu.org/gnu/termcap/ Packager: Boris Savelev <boris@altlinux.org> Source: ftp://ftp.gnu.org/gnu/termcap/termcap-%version.tar.gz BuildArch: noarch BuildRequires: rpm-build-mingw32 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: autoconf %description This is the GNU termcap library -- a library of C functions that enable programs to send control strings to terminals in a way independent of the terminal type. The GNU termcap library does not place an arbitrary limit on the size of termcap entries, unlike most other termcap libraries. This package contains libraries and development tools for the MinGW cross-compiled version. %prep %setup -q -n termcap-%version # Packaged script doesn't understand --bindir, so rebuild: autoconf %build %_mingw32_configure %make_build # Build a shared library. No need for -fPIC on Windows. %_mingw32_cc -shared \ -Wl,--out-implib,libtermcap.dll.a \ -o libtermcap-0.dll \ termcap.o tparam.o version.o %install %make_install install \ prefix=%buildroot%_mingw32_prefix \ exec_prefix=%buildroot%_mingw32_prefix \ oldincludedir= # Move the shared library to the correct locations. mkdir -p %buildroot%_mingw32_bindir install -m 0755 libtermcap-0.dll %buildroot%_mingw32_bindir install -m 0755 libtermcap.dll.a %buildroot%_mingw32_libdir # Don't want the static library, thank you. rm %buildroot%_mingw32_libdir/libtermcap.a # Move the info files to the correct location. mkdir -p %buildroot%_mingw32_infodir mv %buildroot%_mingw32_prefix/info/* %buildroot%_mingw32_infodir %files %doc COPYING %_mingw32_bindir/libtermcap-0.dll %_mingw32_libdir/libtermcap.dll.a %_mingw32_includedir/termcap.h # Note that we want the info files in this package because # there is no equivalent native Fedora package. %_mingw32_infodir/* %changelog * Sat Sep 19 2009 Boris Savelev <boris@altlinux.org> 1.3.1-alt1 - initial build for Sisyphus * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-6 - Rebuild for mingw32-gcc 4.4 * Fri Dec 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-5 - Added license file to doc section. * Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-4 - Rerun autoconf because the standard configure doesn't know --bindir. - Set exec_prefix during make install step. * Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-3 - Fix so it builds a working DLL. * Thu Sep 25 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-1 - Initial RPM release. |