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 Patch3: %{name}-xpm.patch
18 URL: http://sourceforge.net/projects/avr/
19 BuildRequires: motif-devel
20 #BuildRequires: autoconf
21 #BuildRequires: automake
22 #BuildRequires: intltool
23 #BuildRequires: libtool
25 #Requires(pre,post): -
34 #ExclusiveArch: %{ix86}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
49 # remove CVS control files
50 #find -name CVS -print0 | xargs -0 rm -rf
52 # you'll need this if you cp -a complete dir in source
53 # cleanup backups after patching
54 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
57 # if ac/am/* rebuilding is necessary, do it in this order and add
58 # appropriate BuildRequires
66 # if not running libtool or automake, but config.sub is too old:
67 #cp -f /usr/share/automake/config.sub .
70 CFLAGS="%{rpmcflags}" \
71 LDFLAGS="%{rpmldflags}"
74 rm -rf $RPM_BUILD_ROOT
75 # create directories if necessary
76 #install -d $RPM_BUILD_ROOT
77 #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78 install -d $RPM_BUILD_ROOT%{_bindir}
79 install -d $RPM_BUILD_ROOT%{_datadir}
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/%{name}
93 #%{_examplesdir}/%{name}-%{version}