rpms/avr-libc/F-7 avr-libc-1.4.6-documentation-encoding.patch, NONE, 1.1 avr-libc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Wed Jul 18 08:59:48 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/avr-libc/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14122

Modified Files:
	.cvsignore sources 
Added Files:
	avr-libc-1.4.6-documentation-encoding.patch avr-libc.spec 
Log Message:
* Tue Jul 17 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.6-4
- Gzip manpages
- Make manpages %doc
- Install -docs documentation in same dir as the main package docs
- Change License field from GPL to BSD (oops)


avr-libc-1.4.6-documentation-encoding.patch:

--- NEW FILE avr-libc-1.4.6-documentation-encoding.patch ---
diff -upr avr-libc-1.4.6/doc/api/doxygen.config.in avr-libc-1.4.6_new/doc/api/doxygen.config.in
--- avr-libc-1.4.6/doc/api/doxygen.config.in	2007-04-21 22:09:47.000000000 +0200
+++ avr-libc-1.4.6_new/doc/api/doxygen.config.in	2007-05-24 22:49:35.000000000 +0200
@@ -843,7 +843,7 @@ USE_PDFLATEX           = NO
 # running if errors occur, instead of asking the user for help. 
 # This option is also used when generating formulas in HTML.
 
-LATEX_BATCHMODE        = YES
+LATEX_BATCHMODE        = NO
 
 # If LATEX_HIDE_INDICES is set to YES then doxygen will not 
 # include the index chapters (such as File Index, Compound Index, etc.) 
diff -upr avr-libc-1.4.6/include/stdio.h avr-libc-1.4.6_new/include/stdio.h
--- avr-libc-1.4.6/include/stdio.h	2007-01-23 16:34:58.000000000 +0100
+++ avr-libc-1.4.6_new/include/stdio.h	2007-05-24 22:39:12.000000000 +0200
@@ -494,7 +494,7 @@ extern int	fclose(FILE *__stream);
       
    -   An optional decimal digit string specifying a minimum field width.
        If the converted value has fewer characters than the field width, it
-       will be padded with spaces on the left (or right, if the left-adjust­
+       will be padded with spaces on the left (or right, if the left-adjust-
        ment flag has been given) to fill out the field width.
    -   An optional precision, in the form of a period . followed by an
        optional digit string.  If the digit string is omitted, the


--- NEW FILE avr-libc.spec ---
Name:           avr-libc
Version:        1.4.6
Release:        4%{?dist}
Summary:        C library for use with GCC on Atmel AVR microcontrollers
Group:          Development/Tools
License:        BSD
URL:            http://www.nongnu.org/avr-libc/
Source0:        http://download.savannah.gnu.org/releases/avr-libc/avr-libc-%{version}.tar.bz2
Patch0:         avr-libc-1.4.6-documentation-encoding.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
BuildRequires:  avr-gcc doxygen transfig netpbm-progs tetex-latex
BuildArch:      noarch

%description
AVR Libc is a Free Software project whose goal is to provide a high quality C
library for use with GCC on Atmel AVR microcontrollers.

AVR Libc is licensed under a single unified license. This so-called modified
Berkeley license is intented to be compatible with most Free Software licenses
like the GPL, yet impose as little restrictions for the use of the library in
closed-source commercial applications as possible.


%package docs
Summary:        AVR C library docs in html and pdf format
Group:          Development/Tools
Requires:       %{name} = %{version}-%{release}

%description docs
This package contains the AVR C library docs in html and pdf format, the main
package already contains the docs in man-page format (use "avr-man xxxx" to
access these).


%prep
%setup -q
%patch0 -p1
for i in doc/api/faq.dox doc/api/overview.dox include/stdio.h include/stdlib.h;
  do
    iconv -f CP1252 -t UTF8 $i > tmp
    mv tmp $i
done
sed -i 's|@DOC_INST_DIR@/man|%{_prefix}/avr/share/man|' scripts/avr-man.in


%build
# The ps doc ways in at 7Mb versus 2.5 for the pdf and has little added value
./configure --prefix=%{_prefix} --host=avr --build=`./config.guess` \
  --enable-doc --disable-ps-doc
# don't use %{?_smp_mflags}, it breaks the build
make


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

# put the man-pages in the FHS mandir and gzip them
mkdir -p $RPM_BUILD_ROOT%{_prefix}/avr/share
mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/man \
  $RPM_BUILD_ROOT%{_prefix}/avr/share
gzip $RPM_BUILD_ROOT%{_prefix}/avr/share/man/man3/*

# we only want to use %doc with an absolute path to avoid rpmbuild from erasing
# %{_docdir}/%{name}-%{version}
install -p -m 644 doc/TODO doc/CHANGES.old AUTHORS ChangeLog* LICENSE NEWS \
  README $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

# despite us being noarch redhat-rpm-config insists on stripping our files
%define __os_install_post /usr/lib/rpm/redhat/brp-compress


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%dir %{_prefix}/avr
%dir %{_prefix}/avr/share
%doc %{_prefix}/avr/share/man
%doc %{_docdir}/%{name}-%{version}/AUTHORS
%doc %{_docdir}/%{name}-%{version}/C*
%doc %{_docdir}/%{name}-%{version}/LICENSE
%doc %{_docdir}/%{name}-%{version}/NEWS
%doc %{_docdir}/%{name}-%{version}/README
%doc %{_docdir}/%{name}-%{version}/TODO
%doc %{_docdir}/%{name}-%{version}/examples
%{_prefix}/avr/include
%{_prefix}/avr/lib
%{_bindir}/avr-man

%files docs
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}-%{version}/%{name}-user-manual-%{version}*


%changelog
* Tue Jul 17 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.6-4
- Gzip manpages
- Make manpages %%doc
- Install -docs documentation in same dir as the main package docs
- Change License field from GPL to BSD (oops)

* Sun Jun  8 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.6-3
- Move man pages to /usr/avr/share/man

* Fri May 25 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.6-2
- Add patch from Trond Danielsen (trond.danielsen at gmail.com) to fix pdf doc
  generation
- Put html and pdf docs in a seperate -docs subpackage

* Thu May 24 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.6-1
- Initial Fedora package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/avr-libc/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	17 Jul 2007 22:10:40 -0000	1.1
+++ .cvsignore	18 Jul 2007 08:59:16 -0000	1.2
@@ -0,0 +1 @@
+avr-libc-1.4.6.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/avr-libc/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	17 Jul 2007 22:10:40 -0000	1.1
+++ sources	18 Jul 2007 08:59:16 -0000	1.2
@@ -0,0 +1 @@
+504b5e3beefc0d500ff94ea88391f71d  avr-libc-1.4.6.tar.bz2




More information about the scm-commits mailing list