3 %bcond_with tests # build with tests
4 %bcond_without tests # build without tests
12 Source0: http://dl.sourceforge.net/avr/%{name}-%{version}.tar.gz
13 # Source0-md5: 2a73a98db3bf97013acc75324eb005f7
14 Patch0: %{name}-quick.patch
15 Patch1: %{name}-DESTDIR.patch
16 Patch2: %{name}-install.patch
17 URL: http://sourceforge.net/projects/avr/
18 BuildRequires: motif-devel
19 #BuildRequires: autoconf
20 #BuildRequires: automake
21 #BuildRequires: intltool
22 #BuildRequires: libtool
24 #Requires(pre,post): -
33 #ExclusiveArch: %{ix86}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
47 # remove CVS control files
48 #find -name CVS -print0 | xargs -0 rm -rf
50 # you'll need this if you cp -a complete dir in source
51 # cleanup backups after patching
52 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
55 # if ac/am/* rebuilding is necessary, do it in this order and add
56 # appropriate BuildRequires
64 # if not running libtool or automake, but config.sub is too old:
65 #cp -f /usr/share/automake/config.sub .
68 CFLAGS="%{rpmcflags}" \
69 LDFLAGS="%{rpmldflags}"
72 rm -rf $RPM_BUILD_ROOT
73 # create directories if necessary
74 #install -d $RPM_BUILD_ROOT
75 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
76 install -d $RPM_BUILD_ROOT%{_bindir}
77 install -d $RPM_BUILD_ROOT%{_datadir}
80 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/%{name}
91 #%{_examplesdir}/%{name}-%{version}