blob: 181bf98741d99f611284ff6a7b5144fb079e2272 (
plain)
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
|
#
# Conditional build:
#%bcond_with tests # build with tests
#%bcond_without tests # build without tests
#
Summary: urjtag
Name: urjtag
Version: 0.9
Release: 0.1
License: GPL v2
Group: Applications
Source0: http://dl.sourceforge.net/urjtag/%{name}-%{version}.tar.bz2
# Source0-md5: 684fc54354e1e600102244c0e7bf6643
URL: http://urjtag.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext
BuildRequires: libusb-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Nodesc
%prep
%setup -q
#%setup -q -c -T
#%setup -q -n %{name}
#%setup -q -n %{name}-%{version}.orig -a 1
#%patch0 -p1
# undos the source
#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
# remove CVS control files
#find -name CVS -print0 | xargs -0 rm -rf
# you'll need this if you cp -a complete dir in source
# cleanup backups after patching
find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
%{__gettextize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
# create directories if necessary
#install -d $RPM_BUILD_ROOT
#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%if %{with ldconfig}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS doc/UrJTAG.txt doc/README.ejtag doc/howto_add_support_for_more_flash.txt
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*1.gz
|