/[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.11 by troth, Tue Nov 2 16:01:29 2004 UTC revision 1.11.2.1 by joerg_wunsch, Sat Nov 19 21:52:58 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.gz
58  Buildroot: /var/tmp/avr-libc-%{version}-root  Buildroot: /var/tmp/avr-libc-%{version}-root
59  BuildRequires: gzip avr-gcc >= 3.3  BuildRequires: gzip avr-gcc >= 3.3
60  %if %{_with_docs}  %if %{_with_docs}
61  BuildRequires: doxygen >= 1.3.4 tetex  BuildRequires: doxygen >= 1.3.4 tetex transfig
62  %endif  %endif
63  Requires: avr-gcc >= 3.3  Requires: avr-gcc >= 3.3
64    
65    %define ourdocdir %{_docdir}/%{name}-%{version}
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 98  cd obj-%{_target_platform} Line 100  cd obj-%{_target_platform}
100  make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \  make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
101          infodir=$RPM_BUILD_ROOT%{_infodir} install          infodir=$RPM_BUILD_ROOT%{_infodir} install
102    
103    # Move/copy files to appropriate directory to workaround the fact that the doc
104    # directive will delete files that are already installed.
105    cd ..
106    %if ! %{_with_docs}
107    mkdir -p $RPM_BUILD_ROOT%{ourdocdir}
108    %endif
109    cp AUTHORS ChangeLog* INSTALL LICENSE NEWS README $RPM_BUILD_ROOT%{ourdocdir}
110    cp --parents doc/INSTALL doc/TODO $RPM_BUILD_ROOT%{ourdocdir}
111    cp --parents doc/examples/demo/Makefile $RPM_BUILD_ROOT%{ourdocdir}
112    cp --parents doc/examples/demo/demo.c $RPM_BUILD_ROOT%{ourdocdir}
113    cp --parents doc/examples/demo/demo.fig $RPM_BUILD_ROOT%{ourdocdir}
114    
115  %if %{_with_docs}  %if %{_with_docs}
116  gzip -9 doc/api/*.ps  # Try to remove bogus man pages.
117  gzip -9 doc/api/*.pdf  rm -f ${RPM_BUILD_ROOT}%{ourdocdir}/man/man3/*_BUILD_*.3
118    gzip -9 ${RPM_BUILD_ROOT}%{ourdocdir}/man/man3/*.3
119    %else
120    ## Don't need man script if we aren't installing man pages.
121    rm ${RPM_BUILD_ROOT}%{_bindir}/avr-man
122  %endif  %endif
123    
124  %clean  %clean
# Line 108  rm -rf ${RPM_BUILD_ROOT} Line 126  rm -rf ${RPM_BUILD_ROOT}
126    
127  %files  %files
128  %defattr(-,root,root)  %defattr(-,root,root)
129  %doc AUTHORS ChangeLog INSTALL LICENSE NEWS README  %docdir %{ourdocdir}
130  %doc doc/CHANGES.old doc/ChangeLog doc/INSTALL doc/TODO  %{ourdocdir}/AUTHORS
131  %doc doc/avr-libc-reference.html  %{ourdocdir}/ChangeLog*
132  #%doc doc/examples/*.c doc/examples/*.h doc/examples/*.s doc/examples/prg  %{ourdocdir}/INSTALL
133  %doc doc/examples/demo/Makefile doc/examples/demo/demo.c  %{ourdocdir}/LICENSE
134  %doc doc/examples/demo/demo.fig  %{ourdocdir}/NEWS
135    %{ourdocdir}/README
136    %{ourdocdir}/doc
137  %dir %{_prefix}/avr  %dir %{_prefix}/avr
138  %dir %{_prefix}/avr/lib  %dir %{_prefix}/avr/lib
139  %dir %{_prefix}/avr/lib/avr3  %dir %{_prefix}/avr/lib/avr3
# Line 121  rm -rf ${RPM_BUILD_ROOT} Line 141  rm -rf ${RPM_BUILD_ROOT}
141  %dir %{_prefix}/avr/lib/avr5  %dir %{_prefix}/avr/lib/avr5
142  %dir %{_prefix}/avr/include  %dir %{_prefix}/avr/include
143  %dir %{_prefix}/avr/include/avr  %dir %{_prefix}/avr/include/avr
144    %dir %{_prefix}/avr/include/compat
145  %{_prefix}/avr/lib/lib*  %{_prefix}/avr/lib/lib*
146  %{_prefix}/avr/lib/crt*  %{_prefix}/avr/lib/crt*
147  %{_prefix}/avr/lib/avr3/lib*  %{_prefix}/avr/lib/avr3/lib*
# Line 131  rm -rf ${RPM_BUILD_ROOT} Line 152  rm -rf ${RPM_BUILD_ROOT}
152  %{_prefix}/avr/lib/avr5/crt*  %{_prefix}/avr/lib/avr5/crt*
153  %{_prefix}/avr/include/*.h  %{_prefix}/avr/include/*.h
154  %{_prefix}/avr/include/avr/*.h  %{_prefix}/avr/include/avr/*.h
155    %{_prefix}/avr/include/compat/*.h
156    
157  ## TRoth/20021013: Argh! Why does the fscking %doc directive remove the doc  ## TRoth/20021013: Argh! Why does the fscking %doc directive remove the doc
158  ## 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 162  rm -rf ${RPM_BUILD_ROOT}
162  %if %{_with_docs}  %if %{_with_docs}
163  %files docs  %files docs
164  %defattr(-,root,root)  %defattr(-,root,root)
165  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual  %{_bindir}/avr-man
166  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual.ps.gz  %doc %{ourdocdir}/avr-libc-user-manual
167  %doc obj-%{_target_platform}/doc/api/avr-libc-user-manual.pdf.gz  %doc %{ourdocdir}/avr-libc-user-manual.ps
168    %doc %{ourdocdir}/avr-libc-user-manual.pdf
169    %doc %{ourdocdir}/man
170  %endif  %endif
171    
172  %changelog  %changelog
173    * Mon Nov 14 2005 Galen Seitz <galens@seitzassoc.com>
174    - Updated to work with latest tools and build procedure.
175    
176  * Tue Oct 21 2003 Theodore Roth <troth@openavr.org>  * Tue Oct 21 2003 Theodore Roth <troth@openavr.org>
177  - Allow disabling build of docs sub-package with "--without docs".  - Allow disabling build of docs sub-package with "--without docs".
178    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.11.2.1

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