File: simulavr.spec.in

package info (click to toggle)
simulavr 0.1.2.2-6.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,760 kB
  • ctags: 3,179
  • sloc: ansic: 19,986; sh: 3,623; python: 3,528; makefile: 406; asm: 308; yacc: 145; lex: 48
file content (106 lines) | stat: -rw-r--r-- 2,888 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
## -*- mode: rpm-spec; -*-
##
## $Id: simulavr.spec.in,v 1.9 2003/08/28 06:18:58 troth Exp $
##
## @configure_input@
##

%define debug_package %{nil}

%define SimulavrVersion      @VERSION@

Summary: A simulator for Atmel's AVR family of microcontrollers
Name: simulavr
Version: %{SimulavrVersion}
Release: 1
License: GPL
Group: Development/Debuggers
Source: http://savannah.nongnu.org/download/simulavr/simulavr-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: ncurses-devel, glibc-devel, gcc, make, gzip, texinfo, doxygen
Requires: avr-gdb >= 5.3
Prereq: info
%description
Simulavr is a simulator for the Atmel AVR family of microcontrollers.
Simulavr can be used either standalone or as a remote target for gdb.  When
used as a remote target for gdb, the simulator is used as a backend to gdb
such that gdb can be used as a source level debugger.

## The simulavr-docs subpackage
%package docs
Summary: Documentation for Simulavr.
Group: Documentation
%description docs
Documentation for simulavr in html, postscript and pdf formats.

%prep
%setup -q

%build

export CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer -finline-functions -Wall"

./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
	--infodir=/usr/share/info --disable-tests --enable-ps

make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall infodir=$RPM_BUILD_ROOT%{_infodir} \
  prefix=$RPM_BUILD_ROOT%{_prefix}

rm -f $RPM_BUILD_ROOT%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%post
[ -f %{_infodir}/simulavr.info ] && \
	/sbin/install-info %{_infodir}/simulavr.info %{_infodir}/dir || :
[ -f %{_infodir}/simulavr.info.gz ] && \
	/sbin/install-info %{_infodir}/simulavr.info.gz %{_infodir}/dir || :

%preun
if [ $1 = 0 ]; then
	[ -f %{_infodir}/avr-gdb.info ] && \
		/sbin/install-info --delete %{_infodir}/simulavr.info %{_infodir}/dir  || :
	[ -f %{_infodir}/avr-gdb.info.gz ] && \
		/sbin/install-info --delete %{_infodir}/simulavr.info.gz %{_infodir}/dir  || :
fi

%files
%defattr(-,root,root)
/usr/bin/*
%{_mandir}/man1/simulavr*
%{_infodir}/*info*
%doc AUTHORS ChangeLog COPYING INSTALL ProjSummary 
%doc README README.gdb README.opcodes TODO

%files docs
%doc doc/html/*.html
%doc doc/internals_html/*.html
%doc doc/simulavr.ps
#%doc doc/simulavr.pdf
%doc doc/simulavr-internals.ps
#%doc doc/simulavr-internals.pdf

%changelog
* Wed Aug 27 2003 Theodore A. Roth <troth@openavr.org>
- Fix broken rpmbuild on RedHat-9.

* Fri Jun 20 2003 Theodore A. Roth <troth@openavr.org>
- Bump avr-gdb requirement to 5.3.

* Sat Oct 12 2002 Theodore A. Roth <troth@openavr.org>
- Add man pages.

* Thu Sep 05 2002 Theodore A. Roth <troth@openavr.org>
- Require gdb-5.2.1.
- Don't build pdf dox.

* Sun Feb 10 2002 Theodore A. Roth <troth@openavr.org>
- Moved documentation into simulavr-docs subpackage.

* Thu Feb 07 2002 Theodore A. Roth <troth@openavr.org>
- Initial spec file.