mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 00:09:23 +02:00
Merged revisions 79 via svnmerge from
/trunk git-svn-id: branches/fixes_2_0@80 -
This commit is contained in:
parent
9fad75e59c
commit
8b2d841c05
15
Makefile
15
Makefile
@ -2605,6 +2605,11 @@ RPMDIR=$(BUILDDIR)/rpm
|
|||||||
RPMSPECFILE:=$(RPMDIR)/SPECS/fpc-$(PACKAGE_VERSION).spec
|
RPMSPECFILE:=$(RPMDIR)/SPECS/fpc-$(PACKAGE_VERSION).spec
|
||||||
RPMSOURCEFILE:=$(RPMDIR)/SOURCES/fpc-$(PACKAGE_VERSION)-src.tar.gz
|
RPMSOURCEFILE:=$(RPMDIR)/SOURCES/fpc-$(PACKAGE_VERSION)-src.tar.gz
|
||||||
RPMSRCDIR:=$(RPMDIR)/SOURCES/fpc
|
RPMSRCDIR:=$(RPMDIR)/SOURCES/fpc
|
||||||
|
RPMDEFINES=--define "_topdir $(RPMDIR)" \
|
||||||
|
--define "_sourcedir $(RPMDIR)/SOURCES" \
|
||||||
|
--define "_builddir $(RPMDIR)/BUILD" \
|
||||||
|
--define "_rpmdir $(RPMDIR)/RPMS" \
|
||||||
|
--define "_srcrpmdir $(RPMDIR)/SRPMS"
|
||||||
rpmcopy: distclean
|
rpmcopy: distclean
|
||||||
false || [ -d $(RPMDIR) ] || install -d $(RPMDIR)
|
false || [ -d $(RPMDIR) ] || install -d $(RPMDIR)
|
||||||
false || [ -d $(RPMDIR)/BUILD ] || install -d $(RPMDIR)/BUILD
|
false || [ -d $(RPMDIR)/BUILD ] || install -d $(RPMDIR)/BUILD
|
||||||
@ -2613,12 +2618,7 @@ rpmcopy: distclean
|
|||||||
false || [ -d $(RPMDIR)/RPMS ] || install -d $(RPMDIR)/RPMS
|
false || [ -d $(RPMDIR)/RPMS ] || install -d $(RPMDIR)/RPMS
|
||||||
false || [ -d $(RPMDIR)/SRPMS ] || install -d $(RPMDIR)/SRPMS
|
false || [ -d $(RPMDIR)/SRPMS ] || install -d $(RPMDIR)/SRPMS
|
||||||
rm -rf $(RPMSRCDIR)
|
rm -rf $(RPMSRCDIR)
|
||||||
echo "%define _topdir $(RPMDIR)" > $(RPMSPECFILE)
|
sed "s+%FPCVERSION%+$(PACKAGE_VERSION)+" $(CVSINSTALL)/fpc.spec > $(RPMSPECFILE)
|
||||||
echo "%define _sourcedir $(RPMDIR)/SOURCES" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _builddir $(RPMDIR)/BUILD" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _rpmdir $(RPMDIR)/RPMS" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _srcrpmdir $(RPMDIR)/SRPMS" >> $(RPMSPECFILE)
|
|
||||||
sed "s+%FPCVERSION%+$(PACKAGE_VERSION)+" $(CVSINSTALL)/fpc.spec >> $(RPMSPECFILE)
|
|
||||||
ifndef NODOCS
|
ifndef NODOCS
|
||||||
cat $(CVSINSTALL)/fpcdoc.spec >> $(RPMSPECFILE)
|
cat $(CVSINSTALL)/fpcdoc.spec >> $(RPMSPECFILE)
|
||||||
endif
|
endif
|
||||||
@ -2631,7 +2631,6 @@ endif
|
|||||||
$(COPYTREE) packages $(RPMSRCDIR)
|
$(COPYTREE) packages $(RPMSRCDIR)
|
||||||
$(COPYTREE) utils $(RPMSRCDIR)
|
$(COPYTREE) utils $(RPMSRCDIR)
|
||||||
$(COPYTREE) demo $(RPMSRCDIR)
|
$(COPYTREE) demo $(RPMSRCDIR)
|
||||||
$(COPYTREE) logs $(RPMSRCDIR)
|
|
||||||
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
||||||
@ -2644,7 +2643,7 @@ endif
|
|||||||
cd $(RPMSRCDIR) ; tar cfvz $(RPMSOURCEFILE) *
|
cd $(RPMSRCDIR) ; tar cfvz $(RPMSOURCEFILE) *
|
||||||
rm -rf $(RPMSRCDIR)
|
rm -rf $(RPMSRCDIR)
|
||||||
rpmbuild: checkfpcdir
|
rpmbuild: checkfpcdir
|
||||||
$(RPMBUILD) --nodeps -ba $(RPMSPECFILE)
|
$(RPMBUILD) $(RPMDEFINES) --nodeps -ba $(RPMSPECFILE)
|
||||||
mv `find $(RPMDIR)/RPMS/ -name '*.rpm'` .
|
mv `find $(RPMDIR)/RPMS/ -name '*.rpm'` .
|
||||||
mv `find $(RPMDIR)/SRPMS/ -name '*.rpm'` .
|
mv `find $(RPMDIR)/SRPMS/ -name '*.rpm'` .
|
||||||
rpmclean:
|
rpmclean:
|
||||||
|
17
Makefile.fpc
17
Makefile.fpc
@ -608,6 +608,11 @@ RPMDIR=$(BUILDDIR)/rpm
|
|||||||
RPMSPECFILE:=$(RPMDIR)/SPECS/fpc-$(PACKAGE_VERSION).spec
|
RPMSPECFILE:=$(RPMDIR)/SPECS/fpc-$(PACKAGE_VERSION).spec
|
||||||
RPMSOURCEFILE:=$(RPMDIR)/SOURCES/fpc-$(PACKAGE_VERSION)-src.tar.gz
|
RPMSOURCEFILE:=$(RPMDIR)/SOURCES/fpc-$(PACKAGE_VERSION)-src.tar.gz
|
||||||
RPMSRCDIR:=$(RPMDIR)/SOURCES/fpc
|
RPMSRCDIR:=$(RPMDIR)/SOURCES/fpc
|
||||||
|
RPMDEFINES=--define "_topdir $(RPMDIR)" \
|
||||||
|
--define "_sourcedir $(RPMDIR)/SOURCES" \
|
||||||
|
--define "_builddir $(RPMDIR)/BUILD" \
|
||||||
|
--define "_rpmdir $(RPMDIR)/RPMS" \
|
||||||
|
--define "_srcrpmdir $(RPMDIR)/SRPMS"
|
||||||
rpmcopy: distclean
|
rpmcopy: distclean
|
||||||
# false || is needed to workaround fpcmake sections
|
# false || is needed to workaround fpcmake sections
|
||||||
false || [ -d $(RPMDIR) ] || install -d $(RPMDIR)
|
false || [ -d $(RPMDIR) ] || install -d $(RPMDIR)
|
||||||
@ -617,13 +622,7 @@ rpmcopy: distclean
|
|||||||
false || [ -d $(RPMDIR)/RPMS ] || install -d $(RPMDIR)/RPMS
|
false || [ -d $(RPMDIR)/RPMS ] || install -d $(RPMDIR)/RPMS
|
||||||
false || [ -d $(RPMDIR)/SRPMS ] || install -d $(RPMDIR)/SRPMS
|
false || [ -d $(RPMDIR)/SRPMS ] || install -d $(RPMDIR)/SRPMS
|
||||||
rm -rf $(RPMSRCDIR)
|
rm -rf $(RPMSRCDIR)
|
||||||
# Create fpc.spec, include our own builddir
|
sed "s+%FPCVERSION%+$(PACKAGE_VERSION)+" $(CVSINSTALL)/fpc.spec > $(RPMSPECFILE)
|
||||||
echo "%define _topdir $(RPMDIR)" > $(RPMSPECFILE)
|
|
||||||
echo "%define _sourcedir $(RPMDIR)/SOURCES" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _builddir $(RPMDIR)/BUILD" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _rpmdir $(RPMDIR)/RPMS" >> $(RPMSPECFILE)
|
|
||||||
echo "%define _srcrpmdir $(RPMDIR)/SRPMS" >> $(RPMSPECFILE)
|
|
||||||
sed "s+%FPCVERSION%+$(PACKAGE_VERSION)+" $(CVSINSTALL)/fpc.spec >> $(RPMSPECFILE)
|
|
||||||
ifndef NODOCS
|
ifndef NODOCS
|
||||||
cat $(CVSINSTALL)/fpcdoc.spec >> $(RPMSPECFILE)
|
cat $(CVSINSTALL)/fpcdoc.spec >> $(RPMSPECFILE)
|
||||||
endif
|
endif
|
||||||
@ -637,7 +636,7 @@ endif
|
|||||||
$(COPYTREE) packages $(RPMSRCDIR)
|
$(COPYTREE) packages $(RPMSRCDIR)
|
||||||
$(COPYTREE) utils $(RPMSRCDIR)
|
$(COPYTREE) utils $(RPMSRCDIR)
|
||||||
$(COPYTREE) demo $(RPMSRCDIR)
|
$(COPYTREE) demo $(RPMSRCDIR)
|
||||||
$(COPYTREE) logs $(RPMSRCDIR)
|
# $(COPYTREE) logs $(RPMSRCDIR)
|
||||||
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
||||||
@ -651,7 +650,7 @@ endif
|
|||||||
rm -rf $(RPMSRCDIR)
|
rm -rf $(RPMSRCDIR)
|
||||||
|
|
||||||
rpmbuild: checkfpcdir
|
rpmbuild: checkfpcdir
|
||||||
$(RPMBUILD) --nodeps -ba $(RPMSPECFILE)
|
$(RPMBUILD) $(RPMDEFINES) --nodeps -ba $(RPMSPECFILE)
|
||||||
mv `find $(RPMDIR)/RPMS/ -name '*.rpm'` .
|
mv `find $(RPMDIR)/RPMS/ -name '*.rpm'` .
|
||||||
mv `find $(RPMDIR)/SRPMS/ -name '*.rpm'` .
|
mv `find $(RPMDIR)/SRPMS/ -name '*.rpm'` .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user