rpms/sdcc/devel README.fedora, NONE, 1.1 sdcc-2.6.0-configure.diff, NONE, 1.1 sdcc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Trond Danielsen (trondd) fedora-extras-commits at redhat.com
Fri Mar 2 16:08:51 UTC 2007


Author: trondd

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

Modified Files:
	.cvsignore sources 
Added Files:
	README.fedora sdcc-2.6.0-configure.diff sdcc.spec 
Log Message:
auto-import sdcc-2.6.0-8 on branch devel from sdcc-2.6.0-8.src.rpm


--- NEW FILE README.fedora ---
Many of the executables in SDCC have very generic names. Therefore the binaries
are installed into $PREFIX/libexec/sdcc/, and symlinks with prefix sdcc- are
created in $PREFIX/bin. If this is a problem for you, you can add
$PREFIX/libexec/sdcc/ to you path.

sdcc-2.6.0-configure.diff:

--- NEW FILE sdcc-2.6.0-configure.diff ---
diff -ur sdcc.orig/configure sdcc/configure
--- sdcc.orig/configure	2006-07-25 14:56:37.000000000 +0200
+++ sdcc/configure	2007-02-06 10:34:36.000000000 +0100
@@ -4523,7 +4523,7 @@
 echo "${ECHO_T}$sdcc_cv_CCggdb" >&6
 
 if test "$sdcc_cv_CCggdb" = "yes"; then
-  CFLAGS="-ggdb ${CFLAGS}"
+:  CFLAGS="-ggdb ${CFLAGS}"
 fi
 
 
diff -ur sdcc.orig/configure.in sdcc/configure.in
--- sdcc.orig/configure.in	2006-07-25 14:56:37.000000000 +0200
+++ sdcc/configure.in	2007-02-06 10:33:56.000000000 +0100
@@ -327,7 +327,7 @@
 # This is the first time when CFLAGS are set/modified!!
 adl_DD_COPT(CC, ggdb)
 if test "$sdcc_cv_CCggdb" = "yes"; then
-  CFLAGS="-ggdb ${CFLAGS}"
+:  CFLAGS="-ggdb ${CFLAGS}"
 fi
 
 adl_DD_COPT(CC, pipe)
diff -ur sdcc.orig/sim/ucsim/configure sdcc/sim/ucsim/configure
--- sdcc.orig/sim/ucsim/configure	2006-06-18 23:08:05.000000000 +0200
+++ sdcc/sim/ucsim/configure	2007-02-06 10:36:13.000000000 +0100
@@ -11816,11 +11816,11 @@
 echo "${ECHO_T}$ucsim_cv_CXXgstabs" >&6
 
 if test "$ucsim_cv_CXXgstabs" = "yes"; then
-   gopt="-gstabs+ -g3"
+:   gopt="-gstabs+ -g3"
 elif test "$ucsim_cv_CXXggdb" = "yes"; then
-     gopt="-ggdb -g3"
+:     gopt="-ggdb -g3"
 else
-     gopt="-g"
+:     gopt="-g"
 fi
 if test "$CXXFLAGS"x = x ;then
 	CXXFLAGS="$gopt"
diff -ur sdcc.orig/sim/ucsim/configure.in sdcc/sim/ucsim/configure.in
--- sdcc.orig/sim/ucsim/configure.in	2006-06-18 23:08:05.000000000 +0200
+++ sdcc/sim/ucsim/configure.in	2007-02-06 10:35:38.000000000 +0100
@@ -387,11 +387,11 @@
 DD_COPT(CXX, ggdb)
 DD_COPT(CXX, gstabs)
 if test "$ucsim_cv_CXXgstabs" = "yes"; then
-   gopt="-gstabs+ -g3"
+:   gopt="-gstabs+ -g3"
 elif test "$ucsim_cv_CXXggdb" = "yes"; then
-     gopt="-ggdb -g3"
+:     gopt="-ggdb -g3"
 else 
-     gopt="-g"
+:     gopt="-g"
 fi
 if test "$CXXFLAGS"x = x ;then
 	CXXFLAGS="$gopt"


--- NEW FILE sdcc.spec ---
Name:           sdcc
Version:        2.6.0
Release:        8%{?dist}
Summary:        Small Device C Compiler

Group:          Applications/Engineering
License:        GPL
URL:            http://sdcc.sourceforge.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.gz
Source1:        README.fedora
Patch0:         sdcc-2.6.0-configure.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  flex
BuildRequires:  bison
BuildRequires:  lyx
BuildRequires:  latex2html
BuildRequires:  gc-devel


%description
SDCC is a C compiler for 8051 class and similar microcontrollers.
The package includes the compiler, assemblers and linkers, a device
simulator and a core library. The processors supported (to a varying
degree) include the 8051, ds390, z80, hc08, and PIC.


%package libc-sources
Summary:        Small Device C Compiler
Group:          Applications/Engineering
License:        GPL
Requires:       sdcc = %{version}-%{release}

%description libc-sources
SDCC is a C compiler for 8051 class and similar microcontrollers.
This package includes the sources for the C library, and is only neccessary
if you want to modify the C library or as reference of how it works.

%prep
%setup -q -n sdcc
%patch -p1
find -name '*.[ch]' -exec chmod -x '{}' \;

# Extract %%__os_install_post into os_install_post~
cat << \EOF > os_install_post~
%__os_install_post
EOF

# Generate customized brp-*scripts
cat os_install_post~ | while read a x y; do
case $a in
# Prevent brp-strip* from trying to handle foreign binaries
*/brp-strip*)
  b=$(basename $a)
  sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
  chmod a+x $b
  ;;
esac
done

sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
< os_install_post~ > os_install_post 


%build
%configure --enable-doc --enable-libgc STRIP=:
make %{?_smp_mflags} Q=


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT Q=
mv $RPM_BUILD_ROOT/%{_datadir}/%{name}/doc installed-docs
install -m 644 %SOURCE1 installed-docs
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
mv $RPM_BUILD_ROOT/%{_bindir}/*.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
find $RPM_BUILD_ROOT -type f -name \*.c -exec chmod a-x '{}' \;
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/sdcc
mv $RPM_BUILD_ROOT/%{_bindir}/* $RPM_BUILD_ROOT/%{_libexecdir}/sdcc
pushd $RPM_BUILD_ROOT/%{_bindir}
for x in ../libexec/sdcc/*; do ln -s $x sdcc-$(basename $x); done
popd

%define __os_install_post . ./os_install_post

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc installed-docs/*
%{_bindir}/*
%{_libexecdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/emacs
%exclude %{_datadir}/%{name}/lib/src
%exclude %{_datadir}/%{name}/lib/*/*.asm


%files libc-sources
%defattr(-,root,root,-)
%{_datadir}/%{name}/lib/src
%{_datadir}/%{name}/lib/*/*.asm

%changelog
* Thu Feb 29 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-8
- Added Fedora specific README file.
- Corrected permissions on files in debuginfo package.

* Wed Feb 28 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-7
- Updated requirement for libc-source to include version and release number.

* Wed Feb 28 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-6
- Renamed source code package to libc-sources.
- Change BuildRequire from byacc to bison.
- Added "Require: sdcc" to libc-sources package.
- Empty %doc entry removed.
- Updated description of libc-sources package.

* Tue Feb 27 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-5
- Source URL updated.
- Separate src package created.
- Disabling stripping of binaries to get proper debuginfo package.

* Mon Feb 26 2007 Ralf Corsépius <rc040203 at freenet.de> - 2.6.0-4
- Add sdcc-2.6.0-configure.diff.
- Pass Q= to make to make building verbose.
- Add __os_install_post post-hacks to prevent brp-strip from processing 
  foreign binaries.

* Mon Feb 26 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-3
- Broken symlinks fixed.

* Mon Feb 5 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-2
- Emacs scripts moved to the correct folder.
- Moved binaries to /urs/libexec/sdcc, added symlinks with sdcc- prefix in /usr/bin.
- Various rpmlint errors fixed. 

* Thu Feb 1 2007 Trond Danielsen <trond.danielsen at gmail.com> - 2.6.0-1
- Initial version.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/sdcc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	2 Mar 2007 12:52:46 -0000	1.1
+++ .cvsignore	2 Mar 2007 16:08:20 -0000	1.2
@@ -0,0 +1 @@
+sdcc-src-2.6.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/sdcc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Mar 2007 12:52:46 -0000	1.1
+++ sources	2 Mar 2007 16:08:20 -0000	1.2
@@ -0,0 +1 @@
+70d6036226d852995237f30c5cb50960  sdcc-src-2.6.0.tar.gz




More information about the fedora-extras-commits mailing list