1 Summary: swap endianess of a cram filesystem (cramfs)
7 Source0: http://ftp.debian.org/debian/pool/main/c/cramfsswap/%{name}_%{version}.tar.xz
8 # Source0-md5: f7813518fe788ae2e4fa6fd1a019c9e1
9 URL: http://kju.de/projekte/cramfsswap/
10 BuildRequires: zlib-devel
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 cramfs is a highly compressed and size optimized Linux filesystem
15 which is mainly used for embedded applications. The problem with
16 cramfs is that it is endianness sensitive, meaning you can't mount a
17 cramfs for a big endian target on a little endian machine and vice
18 versa. This is often especially a problem in the development phase.
20 cramfsswap solves that problem by allowing you to swap to endianness
21 of a cramfs filesystem.
27 %{__make} cramfsswap \
29 CPPFLAGS="%{rpmcppflags}" \
31 LDFLAGS="%{rpmldflags}"
34 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
39 DESTDIR=$RPM_BUILD_ROOT
41 cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %attr(755,root,root) %{_bindir}/%{name}
50 %{_mandir}/man1/%{name}.1*