rpms/ghdl/devel ghdl-0.21-infodirentry.patch, NONE, 1.1 ghdl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thomas M. Sailer (sailer) fedora-extras-commits at redhat.com
Tue Nov 29 11:19:31 UTC 2005


Author: sailer

Update of /cvs/extras/rpms/ghdl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5777/devel

Modified Files:
	.cvsignore sources 
Added Files:
	ghdl-0.21-infodirentry.patch ghdl.spec 
Log Message:
auto-import ghdl-0.21-0.24svn.1 on branch devel from ghdl-0.21-0.24svn.1.src.rpm

ghdl-0.21-infodirentry.patch:

--- NEW FILE ghdl-0.21-infodirentry.patch ---
--- gcc/vhdl/ghdl.texi	2005-11-17 13:49:33.872773651 +0000
+++ gcc/vhdl/ghdl.texi	2005-11-17 13:50:58.268876360 +0000
@@ -4,6 +4,10 @@
 @settitle GHDL guide
 @c %**end of header
 
+ at direntry
+* ghdl: (ghdl).         VHDL compiler.
+ at end direntry
+
 @titlepage
 @title GHDL guide
 @subtitle GHDL, a VHDL compiler


--- NEW FILE ghdl.spec ---
%define gccver 4.0.2
%define versuffix dev

Summary: A VHDL simulator, using the GCC technology
Name: ghdl
Version: 0.21
Release: 0.24svn.1
License: GPL
Group: Development/Languages
URL: http://ghdl.free.fr/
# HOWTO create source files from ghdl SVN at https://gna.org/projects/ghdl/
# check out the SVN repo
# cd translate/gcc/
# ./dist.sh sources
Source0: http://ghdl.free.fr/ghdl-%{version}%{versuffix}.tar.bz2
Source1: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{gccver}/gcc-core-%{gccver}.tar.bz2
Patch0: ghdl-0.21-infodirentry.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gnat >= 4.0.0-0.40, texinfo
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info

# Make sure we don't use clashing namespaces
%define _vendor fedora_ghdl

%define _gnu %{nil}
%ifarch sparc
%define gcc_target_platform sparc64-%{_vendor}-%{_target_os}
%endif
%ifarch ppc
%define gcc_target_platform ppc64-%{_vendor}-%{_target_os}
%endif
%ifnarch sparc ppc
%define gcc_target_platform %{_target_platform}
%endif

%description
GHDL is a VHDL simulator, using the GCC technology. VHDL is a language
standardized by the IEEE, intended for developing electronic systems. GHDL
implements the VHDL language according to the IEEE 1076-1987 or the IEEE
1076-1993 standard. It compiles VHDL files and creates a binary that simulates
(or executes) your design. GHDL does not do synthesis: it cannot translate your
design into a netlist.

Since GHDL is a compiler (i.e., it generates object files), you can call
functions or procedures written in a foreign language, such as C, C++, or
Ada95.

%prep
%setup -q -n gcc-%{gccver} -T -b 1 -a 0
%{__mv} ghdl-%{version}%{versuffix}/vhdl gcc/
%patch0 -p0

%build
%{__mkdir} obj-%{gcc_target_platform}
pushd obj-%{gcc_target_platform}

# Flag settings cribbed from gcc package
OPT_FLAGS=$(echo %{optflags} | %{__sed} \
	-e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g' \
	-e 's/-m64//g;s/-m32//g;s/-m31//g' \
%ifarch sparc sparc64
	-e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g' \
%endif
	-e 's/[[:blank:]]\+/ /g')

# These compiler flags in rawhide seem to break the build, so get rid of them
OPT_FLAGS=$(echo $OPT_FLAGS | %{__sed} \
	-e 's/-fstack-protector//g ' \
	-e 's/--param=ssp-buffer-size=[0-9]*//g')

export CFLAGS="$OPT_FLAGS"
export XCFLAGS="$OPT_FLAGS"
export TCFLAGS="$OPT_FLAGS"
#configure --enable-languages=vhdl
../configure \
	--program-prefix=%{?_program_prefix} \
	--prefix=%{_prefix} \
	--exec-prefix=%{_exec_prefix} \
	--bindir=%{_bindir} \
	--sbindir=%{_sbindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--includedir=%{_includedir} \
	--libdir=%{_libdir} \
	--libexecdir=%{_libexecdir} \
	--localstatedir=%{_localstatedir} \
	--sharedstatedir=%{_sharedstatedir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--enable-languages=vhdl \
%ifarch sparc
	--host=%{gcc_target_platform} \
	--build=%{gcc_target_platform} \
	--target=%{gcc_target_platform} \
	--with-cpu=v7
%endif
%ifarch ppc
	--host=%{gcc_target_platform} \
	--build=%{gcc_target_platform} \
	--target=%{gcc_target_platform} \
	--with-cpu=default32
%endif
%ifnarch sparc ppc
	--host=%{gcc_target_platform}
%endif

# Parallel make doesn't work, so not using %{?_smp_mflags}
%{__make}

popd

%install
%{__rm} -rf %{buildroot}
%{__make} -C obj-%{gcc_target_platform} DESTDIR=%{buildroot} install

# Add additional libraries to link
(
echo "-lm"
%ifarch x86_64
echo "-ldl"
%endif
) >> %{buildroot}%{_libdir}/gcc/%{gcc_target_platform}/%{gccver}/vhdl/lib/grt.lst

# Remove files not to be packaged
pushd %{buildroot}
%{__rm} -f \
	.%{_bindir}/{cpp,gcc,gccbug,gcov} \
	.%{_bindir}/%{gcc_target_platform}-gcc{,-%{gccver}} \
	.%{_includedir}/mf-runtime.h \
	.%{_libdir}/lib* \
	.%{_infodir}/dir \
	.%{_infodir}/{cpp,cppinternals,gcc,gccinstall,gccint}.info* \
	.%{_datadir}/locale/*/LC_MESSAGES/{gcc,cpplib}.mo \
	.%{_mandir}/man1/{cpp,gcc,gcov}.1* \
	.%{_mandir}/man7/{fsf-funding,gfdl,gpl}.7* \
	.%{_exec_prefix}/lib/libgcc_s.* \
	.%{_exec_prefix}/lib/libmudflap.* \
	.%{_exec_prefix}/lib/libmudflapth.* \
	.%{_libdir}/32/libiberty.a

# Remove directory hierarchies not to be packaged
%{__rm} -rf \
	.%{_libdir}/gcc/%{gcc_target_platform}/%{gccver}/{include,install-tools} \
	.%{_libexecdir}/gcc/%{gcc_target_platform}/%{gccver}/install-tools

popd

%clean
%{__rm} -rf %{buildroot}

%post
[ -f %{_infodir}/ghdl.info.gz ] && \
	/sbin/install-info %{_infodir}/ghdl.info.gz %{_infodir}/dir || :

%preun
[ -f %{_infodir}/ghdl.info.gz ] && [ $1 = 0 ] && \
	/sbin/install-info --delete %{_infodir}/ghdl.info.gz %{_infodir}/dir || :

%files
%defattr(-,root,root,-)
%doc ghdl-%{version}%{versuffix}/COPYING
%{_bindir}/ghdl
%{_infodir}/ghdl.info.gz
# Need to own directory %{_libdir}/gcc even though we only want the
# %{gcc_target_platform}/%{gccver} subdirectory
%{_libdir}/gcc/
# Need to own directory %{_libexecdir}/gcc even though we only want the
# %{gcc_target_platform}/%{gccver} subdirectory
%{_libexecdir}/gcc/

%changelog
* Fri Nov 25 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.21-0.24svn.1
- update to SVN rev 24
- remove additional files to fix x86_64 build

* Tue Nov 22 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.21-0.23svn.1
- update to SVN rev 23

* Mon Nov 14 2005 Paul Howarth <paul at city-fan.org> - 0.21-0.21.1
- spec file cosmetic cleanups
- incorporate some architecture tweaks from gcc package
- remove files we don't want packaged so that we can turn the unpackaged file
  check back on
- use fedora_ghdl as the machine vendor name to avoid namespace clashes with
  other packages
- own {%%{_libdir},%%{_libexecdir}}/gcc directories since this package does not
  depend on gcc
- add buildreq texinfo, needed to make info file
- don't include README, which is aimed at building ghdl rather than using it
- remove install-tools and munged header files, not needed for ghdl
- only run install-info if the info file is installed
- patch ghdl.texi to include info dir entry

* Fri Nov 11 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.21-0.21
- update to 0.21pre, svn rev 21
- incorporate changes from Paul Howarth

* Sat Mar 12 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.18-1
- update to 0.18

* Sat Feb 26 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.17-1
- update to 0.17

* Tue Feb  8 2005 Thomas Sailer <t.sailer at alumni.ethz.ch> - 0.16-1
- Initial build.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ghdl/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	29 Nov 2005 11:04:54 -0000	1.1
+++ .cvsignore	29 Nov 2005 11:19:29 -0000	1.2
@@ -0,0 +1,2 @@
+gcc-core-4.0.2.tar.bz2
+ghdl-0.21dev.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ghdl/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Nov 2005 11:04:54 -0000	1.1
+++ sources	29 Nov 2005 11:19:29 -0000	1.2
@@ -0,0 +1,2 @@
+f7781398ada62ba255486673e6274b26  gcc-core-4.0.2.tar.bz2
+93d0d169eaca9119fa2eb3302f1a7ecc  ghdl-0.21dev.tar.bz2




More information about the fedora-extras-commits mailing list