/[avr-libc]/avr-libc/avr-libc.spec.in
ViewVC logotype

Diff of /avr-libc/avr-libc.spec.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by joerg_wunsch, Sun Aug 14 21:43:37 2005 UTC revision 1.13 by joerg_wunsch, Thu Nov 10 21:25:24 2005 UTC
# Line 51  Summary: AVR libc. Line 51  Summary: AVR libc.
51  Name: avr-libc  Name: avr-libc
52  Version: %{libc_version}  Version: %{libc_version}
53  Release: 1  Release: 1
54  Copyright: BSD  License: BSD
55  Group: Avr/Development/Tools  Group: Avr/Development/Tools
56  URL: http://savannah.gnu.org/projects/avr-libc  URL: http://savannah.gnu.org/projects/avr-libc
57  Source0: http://savannah.gnu.org/download/avr-libc/avr-libc-%{version}.tar.gz  Source0: http://savannah.gnu.org/download/avr-libc/avr-libc-%{version}.tar.bz2
58  Buildroot: /var/tmp/avr-libc-%{version}-root  Buildroot: /var/tmp/avr-libc-%{version}-root
59  BuildRequires: gzip avr-gcc >= 3.4.3  BuildRequires: gzip avr-gcc >= 3.4.3
60  %if %{_with_docs}  %if %{_with_docs}
61  BuildRequires: doxygen >= 1.4.1 tetex  BuildRequires: doxygen >= 1.4.1 tetex transfig
62  %endif  %endif
63  Requires: avr-gcc >= 3.4.3  Requires: avr-gcc >= 3.4.3
64    
65    %define docdir %{_defaultdocdir}/%{name}
66    
67  %description  %description
68  Avr-libc is a C library for developing applications for Atmel AVR  Avr-libc is a C library for developing applications for Atmel AVR
69  microcontrollers.  microcontrollers.
# Line 79  Documentation for avr-libc in html, post Line 81  Documentation for avr-libc in html, post
81  %setup -q  %setup -q
82    
83  %build  %build
84  rm -fr obj-%{_target_platform}  ./configure \
 mkdir obj-%{_target_platform}  
 cd obj-%{_target_platform}  
   
 ../configure \  
85  %if %{_with_docs}  %if %{_with_docs}
86          --enable-doc \          --enable-doc --disable-versioned-doc \
87  %endif  %endif
88            --host=avr --build=$(./config.guess) \
89          --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}          --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}
   
90  make  make
91    
92  %install  %install
93  rm -rf ${RPM_BUILD_ROOT}  rm -rf ${RPM_BUILD_ROOT}
94  mkdir -p ${RPM_BUILD_ROOT}%{_prefix}  mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
 cd obj-%{_target_platform}  
95  make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \  make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
96          infodir=$RPM_BUILD_ROOT%{_infodir} install          infodir=$RPM_BUILD_ROOT%{_infodir} install
97    
98  %if %{_with_docs}  %if %{_with_docs}
99  gzip -9 doc/api/*.ps  gzip -9 ${RPM_BUILD_ROOT}%{docdir}/man/man3/*.3
100  gzip -9 doc/api/*.pdf  %else
101    ## Don't need man script if we aren't installing man pages.
102    rm ${RPM_BUILD_ROOT}%{_bindir}/avr-man
103  %endif  %endif
104    
105  %clean  %clean
# Line 110  rm -rf ${RPM_BUILD_ROOT} Line 109  rm -rf ${RPM_BUILD_ROOT}
109  %defattr(-,root,root)  %defattr(-,root,root)
110  %doc AUTHORS ChangeLog INSTALL LICENSE NEWS README  %doc AUTHORS ChangeLog INSTALL LICENSE NEWS README
111  %doc doc/CHANGES.old doc/ChangeLog doc/INSTALL doc/TODO  %doc doc/CHANGES.old doc/ChangeLog doc/INSTALL doc/TODO
 %doc doc/avr-libc-reference.html  
 #%doc doc/examples/*.c doc/examples/*.h doc/examples/*.s doc/examples/prg  
112  %doc doc/examples/demo/Makefile doc/examples/demo/demo.c  %doc doc/examples/demo/Makefile doc/examples/demo/demo.c
113  %doc doc/examples/demo/demo.fig  %doc doc/examples/demo/demo.fig
114  %dir %{_prefix}/avr  %dir %{_prefix}/avr
# Line 121  rm -rf ${RPM_BUILD_ROOT} Line 118  rm -rf ${RPM_BUILD_ROOT}
118  %dir %{_prefix}/avr/lib/avr5  %dir %{_prefix}/avr/lib/avr5
119  %dir %{_prefix}/avr/include  %dir %{_prefix}/avr/include
120  %dir %{_prefix}/avr/include/avr  %dir %{_prefix}/avr/include/avr
121    %dir %{_prefix}/avr/include/compat
122    %dir %{_prefix}/avr/include/util
123  %{_prefix}/avr/lib/lib*  %{_prefix}/avr/lib/lib*
124  %{_prefix}/avr/lib/crt*  %{_prefix}/avr/lib/crt*
125  %{_prefix}/avr/lib/avr3/lib*  %{_prefix}/avr/lib/avr3/lib*
# Line 131  rm -rf ${RPM_BUILD_ROOT} Line 130  rm -rf ${RPM_BUILD_ROOT}
130  %{_prefix}/avr/lib/avr5/crt*  %{_prefix}/avr/lib/avr5/crt*
131  %{_prefix}/avr/include/*.h  %{_prefix}/avr/include/*.h
132  %{_prefix}/avr/include/avr/*.h  %{_prefix}/avr/include/avr/*.h
133    %{_prefix}/avr/include/compat/*.h
134    %{_prefix}/avr/include/util/*.h
135    
136  ## TRoth/20021013: Argh! Why does the fscking %doc directive remove the doc  ## TRoth/20021013: Argh! Why does the fscking %doc directive remove the doc
137  ## dir? That's absolutely stupid. We install things there _assuming_ they  ## dir? That's absolutely stupid. We install things there _assuming_ they
# Line 140  rm -rf ${RPM_BUILD_ROOT} Line 141  rm -rf ${RPM_BUILD_ROOT}
141  %if %{_with_docs}  %if %{_with_docs}
142  %files docs  %files docs
143  %defattr(-,root,root)  %defattr(-,root,root)
144  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual  %{_bindir}/avr-man
145  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual.ps.gz  %doc %{docdir}/avr-libc-user-manual
146  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual.pdf.gz  %doc %{docdir}/avr-libc-user-manual.ps
147    %doc %{docdir}/avr-libc-user-manual.pdf
148    %doc %{docdir}/man
149  %endif  %endif
150    
151  %changelog  %changelog
152    * Tue Nov 10 2005 Galen Seitz <galens@seitzassoc.com>
153    - Updated to work with latest tools and build procedure.
154    
155  * Tue Oct 21 2003 Theodore Roth <troth@openavr.org>  * Tue Oct 21 2003 Theodore Roth <troth@openavr.org>
156  - Allow disabling build of docs sub-package with "--without docs".  - Allow disabling build of docs sub-package with "--without docs".
157    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26