lazarus/tools/install/fpcsrc-patch
mattias 9b21e012eb fixed create fpc rpm
git-svn-id: trunk@2722 -
2002-08-18 04:56:58 +00:00

41 lines
1.0 KiB
Plaintext

diff -rc old_11_rpm/fpc/install/fpc.spec 11_rpm/fpc/install/fpc.spec
*** old_11_rpm/fpc/install/fpc.spec 2003-05-29 18:55:30.000000000 +0200
--- 11_rpm/fpc/install/fpc.spec 2003-06-07 17:50:21.000000000 +0200
***************
*** 72,77 ****
--- 72,88 ----
# create link
ln -sf %{fpcdir}/ppc386 %{buildroot}%{_bindir}/ppc386
+ # Workaround:
+ # fpcmake creates a Makefile, that always creates things in /usr/doc
+ # Save the real doc directory, delete /usr/doc and restore
+ mv %{buildroot}%{_docdir} %{buildroot}/tmpdoc
+ rm -rf %{buildroot}/usr/doc
+ mv %{buildroot}/tmpdoc %{buildroot}%{_docdir}
+
+ # Workaround:
+ # delete lexyacc
+ rm -rf %{buildroot}/usr/lib/fpc/lexyacc
+
%clean
make compiler_clean
***************
*** 87,93 ****
%post
# Create config
! %{fpcdir}/samplecfg %{fpcdir}
%files
%defattr(-, root, root)
--- 98,104 ----
%post
# Create config
! %{fpcdir}/samplecfg %{_libdir}/fpc/\$version
%files
%defattr(-, root, root)