rpm package for ivtools.
Leon Bottou <[email protected]> Tue, 11 Feb 2003 14:54:38 -0500
| Newsgroups | gmane.comp.lib.ivtools.devel |
|---|---|
| Message-ID | <[email protected]> |
--------------Boundary-00=_2ZT50T77XPFC5K7UNLBO
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 8bit
I prepared a rpm package for ivtools-1.0.7.
The source package is in http://leon.bottou.com/files/ivtools-1.0.7-1.src.rpm.
The spec file and the patch files are attached.
- the first patch (ivtools-rpm.patch) makes various makefile changes
that redefine the set of files to install. This comes from a old ivtools package
and I did not try to think to hard.
- the second patch (ivtools-bug.patch) removes a default argument in
a function definition. This causes a compile error with gcc-3.2.
- Leon Bottou
--------------Boundary-00=_2ZT50T77XPFC5K7UNLBO
Content-Type: text/x-diff;
charset="us-ascii";
name="ivtools-rpm.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ivtools-rpm.patch"
*** Makefile.dist Wed Mar 13 14:56:45 2002
--- Makefile Wed Mar 13 15:01:05 2002
***************
*** 351,357 ****
touch make.makefiles; fi
-@if [ ! -f make.depend ]; then \
echo ""; \
! $(MAKE) depend; \
touch make.depend; fi
-@if [ ! -f make.make ]; then \
echo ""; fi
--- 351,357 ----
touch make.makefiles; fi
-@if [ ! -f make.depend ]; then \
echo ""; \
! echo skip $(MAKE) depend for quick build; \
touch make.depend; fi
-@if [ ! -f make.make ]; then \
echo ""; fi
*** config/InterViews/Imakefile.dist Wed Mar 13 15:31:53 2002
--- config/InterViews/Imakefile Wed Mar 13 15:32:00 2002
***************
*** 6,18 ****
IvmkcmTargets($(PACKAGE))
- #if !InstallRelative
- install::
- MakeDir($(CONFIGDIR)/InterViews)
- $(INSTALL) -c $(INSTINCFLAGS) *.cf $(CONFIGDIR)/InterViews
-
- uninstall::
- (cd $(CONFIGDIR)/InterViews; $(RM) *.cf)
- #endif
-
--- 6,9 ----
*** config/Imakefile.dist Wed Mar 13 15:30:39 2002
--- config/Imakefile Wed Mar 13 15:31:09 2002
***************
*** 9,20 ****
MakeInSubdirs($(SUBDIRS))
- #if !InstallRelative
- install::
- MakeDir($(CONFIGDIR))
- $(INSTALL) -c $(INSTINCFLAGS) *.def* template *.mk $(CONFIGDIR)
-
- uninstall::
- (cd $(CONFIGDIR);$(RM) *.def* template *.mk)
- #endif
-
--- 9,11 ----
*** config/rules.def.dist Tue Feb 5 09:12:01 2002
--- config/rules.def Wed Mar 13 15:36:39 2002
***************
*** 1056,1090 ****
#ifndef InstallIncludes
#if InstallRelative
! #define InstallIncludes(dir) @@\
! install:: @@\
! -@if [ -h $(TOP)/include ]; then exit 0; else \ @@\
! (cd $(TOP) && $(LN) src/include include); fi
#else
! #define InstallIncludes(dir) @@\
! install:: @@\
! MakeDir($(INCDIR)/dir) @@\
! $(INSTALL) -c $(INSTINCFLAGS) *.h $(INCDIR)/dir @@\
! @@\
! uninstall:: @@\
! (cd $(INCDIR)/dir;$(RM) *.h)
#endif
#endif
#ifndef InstallInclude
#if InstallRelative
! #define InstallInclude(dir, file) @@\
! install:: @@\
! -@if [ -h $(TOP)/include ]; then exit 0; else \ @@\
! (cd $(TOP) && $(LN) src/include include); fi
#else
! #define InstallInclude(dir, file) @@\
! install:: @@\
! MakeDir($(INCDIR)/dir) @@\
! $(INSTALL) -c $(INSTINCFLAGS) file $(INCDIR)/dir @@\
! @@\
! uninstall:: @@\
! $(RM) $(INCDIR)/dir/file
#endif
#endif
--- 1056,1072 ----
#ifndef InstallIncludes
#if InstallRelative
! #define InstallIncludes(dir) /**/
#else
! #define InstallIncludes(dir) /**/
#endif
#endif
#ifndef InstallInclude
#if InstallRelative
! #define InstallInclude(dir, file) /**/
#else
! #define InstallInclude(dir, file) /**/
#endif
#endif
*** src/comtest/Imakefile.dist Wed Mar 13 15:40:44 2002
--- src/comtest/Imakefile Wed Mar 13 15:40:51 2002
***************
*** 16,22 ****
OTHER_CCINCLUDES = $(ACE_CCINCLUDES)
OTHER_CCLDLIBS = $(ACE_CCLDLIBS)
! ComplexProgramTarget(comtest)
#define Obj(file) MakeObjectFromSrcFlags(file,)
--- 16,22 ----
OTHER_CCINCLUDES = $(ACE_CCINCLUDES)
OTHER_CCLDLIBS = $(ACE_CCLDLIBS)
! ComplexProgramTargetNoInstall(comtest)
#define Obj(file) MakeObjectFromSrcFlags(file,)
*** src/dclock/Imakefile.dist Wed Mar 13 15:41:00 2002
--- src/dclock/Imakefile Wed Mar 13 15:41:07 2002
***************
*** 10,16 ****
Use_libInterViews()
Use_2_6()
! ComplexProgramTarget(dclock)
#define Obj(file) MakeObjectFromSrcFlags(file,)
--- 10,16 ----
Use_libInterViews()
Use_2_6()
! ComplexProgramTargetNoInstall(dclock)
#define Obj(file) MakeObjectFromSrcFlags(file,)
*** src/glyphs/gclock/Imakefile.dist Wed Mar 13 15:41:41 2002
--- src/glyphs/gclock/Imakefile Wed Mar 13 15:41:47 2002
***************
*** 16,22 ****
Use_libInterViews()
! ComplexProgramTarget(gclock)
MakeObjectFromSrcFlags(main,)
--- 16,22 ----
Use_libInterViews()
! ComplexProgramTargetNoInstall(gclock)
MakeObjectFromSrcFlags(main,)
*** src/glyphterp/Imakefile.dist Wed Mar 13 15:42:00 2002
--- src/glyphterp/Imakefile Wed Mar 13 15:42:05 2002
***************
*** 17,23 ****
Use_libInterViews()
! ComplexProgramTarget(glyphterp)
MakeObjectFromSrcFlags(main,)
--- 17,23 ----
Use_libInterViews()
! ComplexProgramTargetNoInstall(glyphterp)
MakeObjectFromSrcFlags(main,)
*** src/idemo/Imakefile.dist Wed Mar 13 15:38:25 2002
--- src/idemo/Imakefile Wed Mar 13 15:42:24 2002
***************
*** 9,19 ****
CLIPPOLY_CCLDLIBS =
Use_libInterViews()
! ComplexProgramTarget(idemo)
MakeObjectFromSrcFlags(main,)
-
- InstallScriptAs(../Idemo.defaults,$(LIBALLDIR),Idemo)
IncludeDependencies()
--- 9,17 ----
CLIPPOLY_CCLDLIBS =
Use_libInterViews()
! ComplexProgramTargetNoInstall(idemo)
MakeObjectFromSrcFlags(main,)
IncludeDependencies()
*** src/man/man1/Imakefile.dist Fri Mar 15 10:28:24 2002
--- src/man/man1/Imakefile Fri Mar 15 10:28:57 2002
***************
*** 4,10 ****
PACKAGE = man1_ivtools
! TROFFSRCS = comdraw.1 dclock.1 flipbook.1 iclass.1 ivmkmf.1 comterp.1\
drawtool.1 graphdraw.1 idraw.1
TROFFFLAGS = -man
TROFFOUTPUT = man1.PS
--- 4,10 ----
PACKAGE = man1_ivtools
! TROFFSRCS = comdraw.1 flipbook.1 iclass.1 comterp.1\
drawtool.1 graphdraw.1 idraw.1
TROFFFLAGS = -man
TROFFOUTPUT = man1.PS
*** src/man/Imakefile.dist Fri Mar 15 10:27:41 2002
--- src/man/Imakefile Fri Mar 15 10:28:15 2002
***************
*** 6,13 ****
PACKAGE = man_ivtools
SUBDIRS = \
! man1 \
! man3
MakeInSubdirs($(SUBDIRS))
FormatSubdirs($(SUBDIRS))
--- 6,12 ----
PACKAGE = man_ivtools
SUBDIRS = \
! man1
MakeInSubdirs($(SUBDIRS))
FormatSubdirs($(SUBDIRS))
--------------Boundary-00=_2ZT50T77XPFC5K7UNLBO
Content-Type: text/x-diff;
charset="us-ascii";
name="ivtools-bug.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ivtools-bug.patch"
*** src/OverlayUnidraw/scriptview.c~ 2002-11-05 18:54:43.000000000 -0500
--- src/OverlayUnidraw/scriptview.c 2003-02-11 14:05:23.000000000 -0500
***************
*** 277,283 ****
}
}
! void OverlayScript::Transformation(ostream& out, char* keyword, Graphic* gr = nil) {
Transformer* t = gr ? gr->GetTransformer() : GetOverlayComp()->GetGraphic()->GetTransformer();
Transformer identity;
--- 277,283 ----
}
}
! void OverlayScript::Transformation(ostream& out, char* keyword, Graphic* gr) {
Transformer* t = gr ? gr->GetTransformer() : GetOverlayComp()->GetGraphic()->GetTransformer();
Transformer identity;
--------------Boundary-00=_2ZT50T77XPFC5K7UNLBO
Content-Type: text/plain;
charset="us-ascii";
name="ivtools-1.0.7-1.spec"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ivtools-1.0.7-1.spec"
Summary: A collection of vector-graphic drawing editors
Name: ivtools
Version: 1.0.7
Release: 1
Copyright: MIT
Group: Applications/Multimedia
Source: http://prdownloads.sf.net/ivtools/ivtools-1.0.7.tgz
Patch: ivtools-rpm.patch
Patch1: ivtools-bug.patch
BuildRoot: %{_tmppath}/%{name}-root
%description
ivtools is a collection of vector-graphic editors derived
from idraw.
%prep
%setup -q -n ivtools-1.0
%patch -p0 -b .orig-rpm
%patch1 -p0 -b .orig-bug
%build
%configure
make
%install
make \
prefix=%{buildroot}%{_prefix} \
exec_prefix=%{buildroot}%{_exec_prefix} \
bindir=%{buildroot}%{_bindir} \
sbindir=%{buildroot}%{_sbindir} \
sysconfdir=%{buildroot}%{_sysconfdir} \
datadir=%{buildroot}%{_datadir} \
includedir=%{buildroot}%{_includedir} \
libdir=%{buildroot}%{_libdir} \
libexecdir=%{buildroot}%{_libexecdir} \
localstatedir=%{buildroot}%{_localstatedir} \
sharedstatedir=%{buildroot}%{_sharedstatedir} \
mandir=%{buildroot}%{_mandir} \
infodir=%{buildroot}%{_infodir} \
BINDIR=%{buildroot}/usr/bin \
CONFIGDIR=%{buildroot}/usr/lib/ivtools/config \
INCDIR=%{buildroot}/usr/include \
LIBDIR=%{buildroot}/usr/lib \
LIBABSDIR=%{buildroot}/usr/lib \
LIBALLDIR=%{buildroot}/usr/lib/ivtools \
MANDIR=%{buildroot}%{_mandir} \
ABSCONFIGDIR=%{buildroot}/usr/lib/ivtools/config \
ABSLIBDIR=%{buildroot}/usr/lib \
ABSLIBALLDIR=%{buildroot}/usr/lib/ivtools \
XCONFIGDIR=%{buildroot}/usr/X11R6/lib/X11/config \
XINCDIR=%{buildroot}/usr/X11R6/include \
XLIBDIR=%{buildroot}/usr/X11R6/lib \
PSFONTDIR=%{buildroot}/usr/lib/ps \
install
%files
%defattr(-,root,root)
%doc README COPYRIGHT CHANGES
/usr/bin/*
/usr/lib/*
%{_mandir}/*
--------------Boundary-00=_2ZT50T77XPFC5K7UNLBO--
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com