]> git.pld-linux.org Git - packages/fakeuname.git/blob - fakeuname.spec
- new
[packages/fakeuname.git] / fakeuname.spec
1 Summary:        Set the value reported for a network card MAC address
2 Name:           fakeuname
3 Version:        0.1
4 Release:        0.1
5 License:        ?
6 Group:          Libraries
7 Source0:        ftp://ftp.slackware.pl/pub/armedslack/armedslack-devtools/slackkit/%{name}.c
8 # Source0-md5:  6d814c9f2c4710b7aa4a6fd3cf322b23
9 URL:            http://www.chiark.greenend.org.uk/~peterb/linux/fakeif/
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11
12 %description
13 This is so that we can build software that does not know the names of more
14 recent ARM architectures such as armv5, and also fake host names and MAC
15 addresses for some particularly weird stuff ;-)
16
17 %prep
18 %setup -qcT
19 cp -p %{SOURCE0} .
20
21 %build
22 %{__cc} %{rpmcflags} %{rpmcppflags} -c -fPIC -Wall %{name}.c
23 %{__cc}  -W1,export-dynamic -shared -fPIC -o lib%{name}.so %{rpmldflags} -ldl %{name}.o
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT%{_libdir}
28 install -p lib%{name}.so $RPM_BUILD_ROOT%{_libdir}
29
30 %clean
31 rm -rf $RPM_BUILD_ROOT
32
33 %files
34 %defattr(644,root,root,755)
35 %attr(755,root,root) %{_libdir}/libfakeuname.so
This page took 0.133056 seconds and 3 git commands to generate.