Forráskód Böngészése

* use fpc-docs.spec and fpc.spec

peter 25 éve
szülő
commit
2193606506
3 módosított fájl, 162 hozzáadás és 2 törlés
  1. 2 2
      Makefile.fpc
  2. 40 0
      install/fpc-docs.spec
  3. 120 0
      install/fpc.spec

+ 2 - 2
Makefile.fpc

@@ -479,7 +479,7 @@ rpmcopy: distclean
         install -d $(RPMSOURCESDIR)
 # fpc.rpm
         rm -rf $(RPMSRCDIR)
-        cp $(CVSINSTALL)/fpc-$(FPC_VERSION).spec $(RPMSPECDIR)
+        cp $(CVSINSTALL)/fpc.spec $(RPMSPECDIR)/fpc-$(FPC_VERSION).spec
         install -d $(RPMSRCDIR)
         $(COPYTREE) compiler $(RPMSRCDIR)
         $(COPYTREE) rtl $(RPMSRCDIR)
@@ -496,7 +496,7 @@ rpmcopy: distclean
         cd $(RPMSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-$(FPC_VERSION)-src.tar.gz
 # fpc-docs.rpm
         rm -rf $(DOCSRCDIR)
-        cp $(CVSINSTALL)/fpc-docs-$(FPC_VERSION).spec $(RPMSPECDIR)
+        cp $(CVSINSTALL)/fpc-docs.spec $(RPMSPECDIR)/fpc-docs-$(FPC_VERSION).spec
         install -d $(DOCSRCDIR)
         $(COPYTREE) docs $(DOCSRCDIR)
         find $(DOCSRCDIR) -name 'CVS*' | xargs -n1 rm -rf

+ 40 - 0
install/fpc-docs.spec

@@ -0,0 +1,40 @@
+Name: fpc-docs
+Version: 1.0.1
+Release: 1
+Copyright: GPL
+Group: Development/Languages
+Source: fpc-docs-1.0.1-src.tar.gz
+Summary: Free Pascal Compiler Documentation
+Packager: Peter Vreman ([email protected])
+URL: http://www.freepascal.org/
+BuildRoot: /tmp/fpc-docs-build
+
+%define fpcversion 1.0.1
+%define fpcdir /usr/lib/fpc/%{fpcversion}
+%define docdir /usr/doc/fpc-%{fpcversion}
+
+%define builddocdir %{buildroot}%{docdir}
+
+%description	
+The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
+Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
+Some extensions are added to the language, like function overloading. Shared
+libraries can be linked and created. Basic Delphi support is already
+implemented (classes,exceptions,ansistrings).
+This package contains the documentation in PDF format
+
+%prep
+%setup -c
+
+%build
+	make -C docs pdf
+
+%install
+	make -C docs pdfinstall DOCINSTALLDIR=%{builddocdir}
+
+%clean
+	make -C docs clean
+
+%files
+%{docdir}/*.pdf
+

+ 120 - 0
install/fpc.spec

@@ -0,0 +1,120 @@
+Name: fpc
+Version: 1.0.1
+Release: 1
+ExclusiveArch: i386 i586 i686
+Copyright: GPL
+Group: Development/Languages
+Source: fpc-1.0.1-src.tar.gz
+Summary: Free Pascal Compiler
+Packager: Peter Vreman ([email protected])
+URL: http://www.freepascal.org/
+BuildRoot: /tmp/fpc-build
+BuildRequires: fpc
+
+%define fpcversion 1.0.1
+%define fpcdir /usr/lib/fpc/%{fpcversion}
+%define docdir /usr/doc/fpc-%{fpcversion}
+
+%define builddocdir %{buildroot}%{docdir}
+
+%description	
+The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
+Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
+Some extensions are added to the language, like function overloading. Shared
+libraries can be linked. Basic Delphi support is already implemented (classes,
+exceptions,ansistrings,RTTI). This package contains commandline compiler and
+utils. Provided units are the runtime library (RTL), free component library
+(FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
+
+%prep
+%setup -c
+
+%build
+NEWPP=`pwd`/compiler/ppc386
+	make compiler_cycle
+	make rtl_clean rtl_smart PP=${NEWPP}
+	make fcl_smart PP=${NEWPP}
+	make api_smart PP=${NEWPP}
+	make packages_smart PP=${NEWPP}
+	make utils_all PP=${NEWPP}
+
+%install
+NEWPP=`pwd`/compiler/ppc386
+NEWPPUFILES=`pwd`/utils/ppufiles
+INSTALLOPTS="PP=${NEWPP} PPUFILES=${NEWPPUFILES} PREFIXINSTALLDIR=%{buildroot}/usr"
+	make compiler_install ${INSTALLOPTS}
+	make rtl_install ${INSTALLOPTS}
+	make fcl_install ${INSTALLOPTS}
+	make api_install ${INSTALLOPTS}
+	make packages_install ${INSTALLOPTS}
+	make utils_install ${INSTALLOPTS}
+
+	make fcl_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
+	make api_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
+	make packages_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
+
+	make demo_install ${INSTALLOPTS} SOURCEINSTALLDIR=%{builddocdir}
+	make doc_install ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
+	make man_install ${INSTALLOPTS}
+	
+%clean
+	make compiler_clean
+	make rtl_clean
+	make fcl_clean
+	make api_clean
+	make packages_clean
+	make utils_clean
+
+	rm -rf %{buildroot}
+	
+%post
+FPCDIR=%{fpcdir}
+
+# create link
+ln -sf $FPCDIR/ppc386 /usr/bin/ppc386
+
+# Create config
+$FPCDIR/samplecfg $FPCDIR
+
+# update ld.so cache
+#ldconfig
+
+
+%files
+/usr/bin/ppufiles
+/usr/bin/ppudump
+/usr/bin/ppumove
+/usr/bin/ppdep
+/usr/bin/ptop
+/usr/bin/rstconv
+/usr/bin/data2inc
+/usr/bin/bin2obj
+/usr/bin/delp
+/usr/bin/plex
+/usr/bin/pyacc
+/usr/bin/h2pas
+/usr/bin/postw32
+/usr/bin/fpcmake
+/usr/bin/fprcp
+%{fpcdir}
+/usr/lib/fpc/lexyacc/yylex.cod 
+/usr/lib/fpc/lexyacc/yyparse.cod
+/usr/man/man1/delp.1
+/usr/man/man1/ppdep.1
+/usr/man/man1/ppumove.1
+/usr/man/man1/ppudump.1
+/usr/man/man1/ppufiles.1
+/usr/man/man1/fpcmake.1
+/usr/man/man1/ptop.1
+/usr/man/man1/h2pas.1
+/usr/man/man1/plex.1
+/usr/man/man1/pyacc.1
+/usr/man/man1/ppc386.1
+/usr/man/man5/ppc386.cfg.5
+/usr/man/man5/fpcmake.5
+/usr/man/man5/ptop.cfg.5
+%{docdir}/examples
+%{docdir}/README
+%{docdir}/NEWS
+%{docdir}/faq.html
+%{docdir}/faq.txt