]> git.pld-linux.org Git - packages/avr_simulator.git/blame - avr_simulator.spec
- xpm path patch
[packages/avr_simulator.git] / avr_simulator.spec
CommitLineData
54518591
MP
1#
2# Conditional build:
3%bcond_with tests # build with tests
4%bcond_without tests # build without tests
5#
6Summary: avr simulator
7Name: avr_simulator
8Version: 1.3.0
a9e90e83 9Release: 0.3
54518591
MP
10License: GPL v2+
11Group: Applications
12Source0: http://dl.sourceforge.net/avr/%{name}-%{version}.tar.gz
13# Source0-md5: 2a73a98db3bf97013acc75324eb005f7
14Patch0: %{name}-quick.patch
15Patch1: %{name}-DESTDIR.patch
16Patch2: %{name}-install.patch
a9e90e83 17Patch3: %{name}-xpm.patch
54518591
MP
18URL: http://sourceforge.net/projects/avr/
19BuildRequires: motif-devel
20#BuildRequires: autoconf
21#BuildRequires: automake
22#BuildRequires: intltool
23#BuildRequires: libtool
24#Requires(postun): -
25#Requires(pre,post): -
26#Requires(preun): -
27#Requires: -
28#Provides: -
29#Provides: group(foo)
30#Provides: user(foo)
31#Obsoletes: -
32#Conflicts: -
33#BuildArch: noarch
34#ExclusiveArch: %{ix86}
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38
39%prep
40%setup -q -n %{name}
41%patch0 -p1
42%patch1 -p1
43%patch2 -p1
a9e90e83 44%patch3 -p1
54518591
MP
45
46# undos the source
47#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
48
49# remove CVS control files
50#find -name CVS -print0 | xargs -0 rm -rf
51
52# you'll need this if you cp -a complete dir in source
53# cleanup backups after patching
54find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
55
56%build
57# if ac/am/* rebuilding is necessary, do it in this order and add
58# appropriate BuildRequires
59#%%{__intltoolize}
60#%%{__gettextize}
61#%%{__libtoolize}
62#%%{__aclocal}
63#%%{__autoconf}
64#%%{__autoheader}
65#%%{__automake}
66# if not running libtool or automake, but config.sub is too old:
67#cp -f /usr/share/automake/config.sub .
68#%%configure
69%{__make} \
70 CFLAGS="%{rpmcflags}" \
71 LDFLAGS="%{rpmldflags}"
72
73%install
74rm -rf $RPM_BUILD_ROOT
75# create directories if necessary
76#install -d $RPM_BUILD_ROOT
77#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78install -d $RPM_BUILD_ROOT%{_bindir}
79install -d $RPM_BUILD_ROOT%{_datadir}
80
81%{__make} install \
82 DESTDIR=$RPM_BUILD_ROOT
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%files
88%defattr(644,root,root,755)
89%doc README doc/*
90%attr(755,root,root) %{_bindir}/%{name}
91%{_datadir}/%{name}
92
93#%{_examplesdir}/%{name}-%{version}
This page took 0.333875 seconds and 4 git commands to generate.