]> git.pld-linux.org Git - packages/cpmtools.git/commitdiff
- added link patch to fix ncurses linking auto/th/cpmtools-2_13-2
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 16 Nov 2010 07:58:52 +0000 (07:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 2

Changed files:
    cpmtools-link.patch -> 1.1
    cpmtools.spec -> 1.14

cpmtools-link.patch [new file with mode: 0644]
cpmtools.spec

diff --git a/cpmtools-link.patch b/cpmtools-link.patch
new file mode 100644 (file)
index 0000000..cf43bab
--- /dev/null
@@ -0,0 +1,36 @@
+--- cpmtools-2.13/configure.in.orig    2010-03-30 20:06:02.000000000 +0200
++++ cpmtools-2.13/configure.in 2010-11-16 08:36:21.015098261 +0100
+@@ -62,10 +62,12 @@
+ dnl Check for curses. If not found, don't build fsed.cpm
+ dnl Try both curses and ncurses
+-AC_CHECK_LIB(curses, printw, FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS", FSED_CPM=)
++AC_CHECK_LIB(ncurses, printw, FSED_CPM=fsed.cpm NCURSESLIBS="-lcurses", FSED_CPM=)
+ if test x"$FSED_CPM" = x""; then
+-  AC_CHECK_LIB(ncurses, printw, FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS", FSED_CPM=)
++  AC_CHECK_LIB(curses, printw, FSED_CPM=fsed.cpm NCURSESLIBS="-lncurses", FSED_CPM=)
+ fi
++AC_CHECK_LIB(tinfo, raw, NCURSESLIBS="$NCURSESLIBS -ltinfo")
++AC_SUBST([NCURSESLIBS])
+ dnl If using libdsk, check it's available. 
+ if test "$LIBDSK" != ""; then
+--- cpmtools-2.13/Makefile.in.orig     2010-11-16 08:31:59.727101613 +0100
++++ cpmtools-2.13/Makefile.in  2010-11-16 08:32:59.059104128 +0100
+@@ -20,6 +20,7 @@
+ EXEEXT =        @EXEEXT@
+ OBJEXT =        .@OBJEXT@
+ LIBS=           @LIBS@ @LDLIBS@
++NCURSESLIBS=  @NCURSESLIBS@
+ LDDEPS=               @LDDEPS@
+ CPPFLAGS=     @CPPFLAGS@ -DDISKDEFS=\"$(DISKDEFS)\" -DFORMAT=\"$(DEFFORMAT)\"
+ #
+@@ -63,7 +64,7 @@
+               $(CC) $(LDFLAGS) -o $@ fsck.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
+ fsed.cpm$(EXEEXT):    fsed.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
+-              $(CC) $(LDFLAGS) -o $@ fsed.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
++              $(CC) $(LDFLAGS) -o $@ fsed.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(NCURSESLIBS) $(LIBS)
+ fsck.test:    fsck.cpm
+               -./fsck.cpm -f ibm-3740 -n badfs/status
index 0c221b1553560a3bd6e447dde72a752243dd82e4..9d76976751e68fe995e63c41406f9e0aaf6c627a 100644 (file)
@@ -2,13 +2,15 @@ Summary:      Tools for accessing CP/M file systems
 Summary(pl.UTF-8):     Narzędzia pozwalające na dostęp do systemów plików CP/M
 Name:          cpmtools
 Version:       2.13
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Applications
 Source0:       http://www.moria.de/~michael/cpmtools/%{name}-%{version}.tar.gz
 # Source0-md5: d0622e33c80d2abb44cbe2e844285ce6
 Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-link.patch
 URL:           http://www.moria.de/~michael/cpmtools/
+BuildRequires: autoconf >= 2.13
 BuildRequires: libdsk-devel
 BuildRequires: ncurses-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,8 +30,10 @@ Z80-PC, ale działa także ze stacjami dyskietek.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
+%{__autoconf}
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
 %configure \
        --datarootdir=%{_datadir}/misc \
This page took 0.037573 seconds and 4 git commands to generate.