- updated to 2.1.2
[packages/mtd-utils.git] / mtd-utils.spec
1 Summary:        MTD (Memory Technology Devices) utilities
2 Summary(pl.UTF-8):      Narzędzia MTD (Memory Technology Devices)
3 Name:           mtd-utils
4 Version:        2.1.2
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        ftp://ftp.infradead.org/pub/mtd-utils/%{name}-%{version}.tar.bz2
9 # Source0-md5:  19191bc0195a779c0bd1284c886084ab
10 URL:            http://www.linux-mtd.infradead.org/
11 BuildRequires:  acl-devel
12 # for tests
13 #BuildRequires: cmocka-devel
14 BuildRequires:  libselinux-devel
15 BuildRequires:  libuuid-devel
16 BuildRequires:  lzo-devel >= 2
17 BuildRequires:  openssl-devel
18 BuildRequires:  pkgconfig
19 BuildRequires:  zlib-devel
20 BuildRequires:  zstd-devel
21 Obsoletes:      mtd < 20050701
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 MTD are utilities for jffs (Journalling Flash File System), like
26 mkfs.jffs2 and NAND Flash devices.
27
28 %description -l pl.UTF-8
29 Programy MTD zawierają narzędzia do jffs (Journalling Flash File
30 System), jak mkfs.jffs2 oraz urządzeń NAND Flash.
31
32 %package devel
33 Summary:        Header files for MTD utilities
34 Summary(pl.UTF-8):      Pliki nagłówkowe dla narzędzi MTD
35 Group:          Development/Libraries
36
37 %description devel
38 Header files for MTD utilities.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe dla narzędzi MTD.
42
43 %prep
44 %setup -q
45
46 %build
47 %configure \
48         --disable-silent-rules
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 cp -pr include/mtd $RPM_BUILD_ROOT%{_includedir}
60 cp -p libmtd.a $RPM_BUILD_ROOT%{_libdir}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc jffsX-utils/device_table.txt lib/LICENSE.libiniparser ubifs-utils/mkfs.ubifs/README
68 %attr(755,root,root) %{_sbindir}/doc_loadbios
69 %attr(755,root,root) %{_sbindir}/docfdisk
70 %attr(755,root,root) %{_sbindir}/flash_erase
71 %attr(755,root,root) %{_sbindir}/flash_eraseall
72 %attr(755,root,root) %{_sbindir}/flash_lock
73 %attr(755,root,root) %{_sbindir}/flash_otp_dump
74 %attr(755,root,root) %{_sbindir}/flash_otp_info
75 %attr(755,root,root) %{_sbindir}/flash_otp_lock
76 %attr(755,root,root) %{_sbindir}/flash_otp_write
77 %attr(755,root,root) %{_sbindir}/flash_unlock
78 %attr(755,root,root) %{_sbindir}/flashcp
79 %attr(755,root,root) %{_sbindir}/ftl_check
80 %attr(755,root,root) %{_sbindir}/ftl_format
81 %attr(755,root,root) %{_sbindir}/jffs2dump
82 %attr(755,root,root) %{_sbindir}/jffs2reader
83 %attr(755,root,root) %{_sbindir}/lsmtd
84 %attr(755,root,root) %{_sbindir}/mkfs.jffs2
85 %attr(755,root,root) %{_sbindir}/mkfs.ubifs
86 %attr(755,root,root) %{_sbindir}/mtd_debug
87 %attr(755,root,root) %{_sbindir}/mtdinfo
88 %attr(755,root,root) %{_sbindir}/mtdpart
89 %attr(755,root,root) %{_sbindir}/nanddump
90 %attr(755,root,root) %{_sbindir}/nandtest
91 %attr(755,root,root) %{_sbindir}/nandwrite
92 %attr(755,root,root) %{_sbindir}/nftl_format
93 %attr(755,root,root) %{_sbindir}/nftldump
94 %attr(755,root,root) %{_sbindir}/recv_image
95 %attr(755,root,root) %{_sbindir}/rfddump
96 %attr(755,root,root) %{_sbindir}/rfdformat
97 %attr(755,root,root) %{_sbindir}/serve_image
98 %attr(755,root,root) %{_sbindir}/sumtool
99 %attr(755,root,root) %{_sbindir}/ubi*
100 %{_mandir}/man1/mkfs.jffs2.1*
101 %{_mandir}/man8/lsmtd.8*
102 %{_mandir}/man8/ubinize.8*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %{_libdir}/libmtd.a
107 %{_includedir}/mtd
This page took 0.126987 seconds and 3 git commands to generate.