| 62 |
%endif |
%endif |
| 63 |
Requires: avr-gcc >= 3.4.3 |
Requires: avr-gcc >= 3.4.3 |
| 64 |
|
|
| 65 |
%define docdir %{_defaultdocdir}/%{name} |
%define ourdocdir %{_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 |
| 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 |
|
# Move/copy files to appropriate directory to workaround the fact that the doc |
| 99 |
|
# directive will delete files that are already installed. |
| 100 |
|
%if ! %{_with_docs} |
| 101 |
|
mkdir -p $RPM_BUILD_ROOT%{ourdocdir} |
| 102 |
|
%endif |
| 103 |
|
cp AUTHORS ChangeLog* INSTALL LICENSE NEWS README $RPM_BUILD_ROOT%{ourdocdir} |
| 104 |
|
cp --parents doc/INSTALL doc/TODO $RPM_BUILD_ROOT%{ourdocdir} |
| 105 |
|
cp --parents doc/examples/demo/Makefile $RPM_BUILD_ROOT%{ourdocdir} |
| 106 |
|
cp --parents doc/examples/demo/demo.c $RPM_BUILD_ROOT%{ourdocdir} |
| 107 |
|
cp --parents doc/examples/demo/demo.fig $RPM_BUILD_ROOT%{ourdocdir} |
| 108 |
|
|
| 109 |
%if %{_with_docs} |
%if %{_with_docs} |
| 110 |
gzip -9 ${RPM_BUILD_ROOT}%{docdir}/man/man3/*.3 |
gzip -9 ${RPM_BUILD_ROOT}%{ourdocdir}/man/man3/*.3 |
| 111 |
%else |
%else |
| 112 |
## Don't need man script if we aren't installing man pages. |
## Don't need man script if we aren't installing man pages. |
| 113 |
rm ${RPM_BUILD_ROOT}%{_bindir}/avr-man |
rm ${RPM_BUILD_ROOT}%{_bindir}/avr-man |
| 118 |
|
|
| 119 |
%files |
%files |
| 120 |
%defattr(-,root,root) |
%defattr(-,root,root) |
| 121 |
%doc AUTHORS ChangeLog INSTALL LICENSE NEWS README |
%docdir %{ourdocdir} |
| 122 |
%doc doc/CHANGES.old doc/ChangeLog doc/INSTALL doc/TODO |
%{ourdocdir}/AUTHORS |
| 123 |
%doc doc/examples/demo/Makefile doc/examples/demo/demo.c |
%{ourdocdir}/ChangeLog* |
| 124 |
%doc doc/examples/demo/demo.fig |
%{ourdocdir}/INSTALL |
| 125 |
|
%{ourdocdir}/LICENSE |
| 126 |
|
%{ourdocdir}/NEWS |
| 127 |
|
%{ourdocdir}/README |
| 128 |
|
%{ourdocdir}/doc |
| 129 |
%dir %{_prefix}/avr |
%dir %{_prefix}/avr |
| 130 |
%dir %{_prefix}/avr/lib |
%dir %{_prefix}/avr/lib |
| 131 |
%dir %{_prefix}/avr/lib/avr3 |
%dir %{_prefix}/avr/lib/avr3 |
| 157 |
%files docs |
%files docs |
| 158 |
%defattr(-,root,root) |
%defattr(-,root,root) |
| 159 |
%{_bindir}/avr-man |
%{_bindir}/avr-man |
| 160 |
%doc %{docdir}/avr-libc-user-manual |
%doc %{ourdocdir}/avr-libc-user-manual |
| 161 |
%doc %{docdir}/avr-libc-user-manual.ps |
%doc %{ourdocdir}/avr-libc-user-manual.ps |
| 162 |
%doc %{docdir}/avr-libc-user-manual.pdf |
%doc %{ourdocdir}/avr-libc-user-manual.pdf |
| 163 |
%doc %{docdir}/man |
%doc %{ourdocdir}/man |
| 164 |
%endif |
%endif |
| 165 |
|
|
| 166 |
%changelog |
%changelog |