]> git.pld-linux.org Git - packages/testdisk.git/blob - testdisk.spec
ntfs-3g rebuild
[packages/testdisk.git] / testdisk.spec
1 #
2 # Conditional build:
3 %bcond_without  qt      # Qt4 qphotorec application
4 #
5 Summary:        Tool to check and undelete partition
6 Summary(fr.UTF-8):      Outil pour vérifier et restorer des partitions
7 Summary(pl.UTF-8):      Narzędzie sprawdzające i odzyskujące partycje
8 Summary(ru.UTF-8):      Программа для проверки и восстановления разделов диска
9 Name:           testdisk
10 Version:        7.1
11 Release:        2
12 License:        GPL v2+
13 Group:          Applications/System
14 #Source0Download: https://www.cgsecurity.org/wiki/TestDisk_Download
15 Source0:        https://www.cgsecurity.org/%{name}-%{version}.tar.bz2
16 # Source0-md5:  57d78ffee1c076ef4cf541a74f8d52d4
17 URL:            https://www.cgsecurity.org/wiki/TestDisk
18 %if %{with qt}
19 BuildRequires:  Qt5Gui-devel >= 5.0.0
20 BuildRequires:  Qt5Widgets-devel >= 5.0.0
21 %endif
22 BuildRequires:  autoconf >= 2.59
23 BuildRequires:  automake
24 BuildRequires:  e2fsprogs-devel
25 BuildRequires:  libcom_err-devel
26 BuildRequires:  libewf-devel
27 BuildRequires:  libjpeg-devel
28 %{?with_qt:BuildRequires:       libstdc++-devel}
29 BuildRequires:  libuuid-devel
30 BuildRequires:  ncurses-devel >= 5.2
31 BuildRequires:  ntfs-3g-devel
32 BuildRequires:  openssl-devel
33 BuildRequires:  pkgconfig
34 BuildRequires:  progsreiserfs-devel >= 0.3.1-1.rc8.1
35 %{?with_qt:BuildRequires:       qt5-build >= 5.0.0}
36 BuildRequires:  zlib-devel
37 Requires:       uname(release) >= 2.6.18
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Tool to check and undelete partition. Works with the following
42 partitions:
43 - BeFS (BeOS)
44 - BSD disklabel (FreeBSD/OpenBSD/NetBSD)
45 - CramFS, Compressed File System
46 - DOS/Windows FAT12, FAT16 and FAT32
47 - Windows exFAT
48 - HFS, HFS+ and HFSX, Hierarchical File System
49 - JFS, IBM's Journaled File System
50 - Linux ext2/ext3/ext4
51 - Linux LUKS encrypted partition
52 - Linux RAID md 0.9/1.0/1.1/1.2 o RAID 1: mirroring o RAID 4: striped
53   array with parity device o RAID 5: striped array with distributed
54   parity information o RAID 6: striped array with distributed dual
55   redundancy information
56 - Linux Swap (versions 1 and 2)
57 - LVM and LVM2, Linux Logical Volume Manager
58 - Mac partition map
59 - Novell Storage Services NSS
60 - NTFS (Windows NT/2000/XP/2003/Vista/2008 )
61 - ReiserFS 3.5, 3.6 and 4
62 - Sun Solaris i386 disklabel
63 - Unix File System UFS and UFS2 (Sun/BSD/...)
64 - XFS, SGI's Journaled File System
65
66 %description -l fr.UTF-8
67 Outil pour vérifier et restorer des partitions. Fonctionne avec les
68 partitions suivantes:
69 - BeFS (BeOS)
70 - BSD disklabel (FreeBSD/OpenBSD/NetBSD)
71 - CramFS, Compressed File System
72 - DOS/Windows FAT12, FAT16 and FAT32
73 - Windows exFAT
74 - HFS, HFS+ and HFSX, Hierarchical File System
75 - JFS, IBM's Journaled File System
76 - Linux ext2/ext3/ext4
77 - Linux LUKS encrypted partition
78 - Linux RAID md 0.9/1.0/1.1/1.2 o RAID 1: mirroring o RAID 4: striped
79   array with parity device o RAID 5: striped array with distributed
80   parity information o RAID 6: striped array with distributed dual
81   redundancy information
82 - Linux Swap (versions 1 and 2)
83 - LVM and LVM2, Linux Logical Volume Manager
84 - Mac partition map
85 - Novell Storage Services NSS
86 - NTFS (Windows NT/2000/XP/2003/Vista/2008)
87 - ReiserFS 3.5, 3.6 and 4
88 - Sun Solaris i386 disklabel
89 - Unix File System UFS and UFS2 (Sun/BSD/...)
90 - XFS, SGI's Journaled File System
91
92 %description -l pl.UTF-8
93 Narzędzie sprawdzające i odzyskujące partycje. Pracuje z partycjami:
94 - BeFS (BeOS)
95 - BSD disklabel (FreeBSD/OpenBSD/NetBSD)
96 - CramFS, Compressed File System
97 - DOS/Windows FAT12, FAT16 and FAT32
98 - Windows exFAT
99 - HFS, HFS+ and HFSX, Hierarchical File System
100 - JFS, IBM's Journaled File System
101 - Linux ext2/ext3/ext4
102 - Linux LUKS encrypted partition
103 - Linux RAID md 0.9/1.0/1.1/1.2 o RAID 1: mirroring o RAID 4: striped
104   array with parity device o RAID 5: striped array with distributed
105   parity information o RAID 6: striped array with distributed dual
106   redundancy information
107 - Linux Swap (versions 1 and 2)
108 - LVM and LVM2, Linux Logical Volume Manager
109 - Mac partition map
110 - Novell Storage Services NSS
111 - NTFS (Windows NT/2000/XP/2003/Vista/2008)
112 - ReiserFS 3.5, 3.6 and 4
113 - Sun Solaris i386 disklabel
114 - Unix File System UFS and UFS2 (Sun/BSD/...)
115 - XFS, SGI's Journaled File System
116
117 %description -l ru.UTF-8
118 Программа для проверки и восстановления разделов диска. Поддерживает
119 следующие типы разделов:
120 - BeFS (BeOS)
121 - BSD disklabel (FreeBSD/OpenBSD/NetBSD)
122 - CramFS, Compressed File System
123 - DOS/Windows FAT12, FAT16 and FAT32
124 - Windows exFAT
125 - HFS, HFS+ and HFSX, Hierarchical File System
126 - JFS, IBM's Journaled File System
127 - Linux ext2/ext3/ext4
128 - Linux LUKS encrypted partition
129 - Linux RAID md 0.9/1.0/1.1/1.2 o RAID 1: mirroring o RAID 4: striped
130   array with parity device o RAID 5: striped array with distributed
131   parity information o RAID 6: striped array with distributed dual
132   redundancy information
133 - Linux Swap (versions 1 and 2)
134 - LVM and LVM2, Linux Logical Volume Manager
135 - Mac partition map
136 - Novell Storage Services NSS
137 - NTFS (Windows NT/2000/XP/2003/Vista/2008)
138 - ReiserFS 3.5, 3.6 and 4
139 - Sun Solaris i386 disklabel
140 - Unix File System UFS and UFS2 (Sun/BSD/...)
141 - XFS, SGI's Journaled File System
142
143 %package gui
144 Summary:        QPhotoRec graphical user interface
145 Summary(pl.UTF-8):      Graficzny interfejs użytkownika QPhotoRec
146 Group:          X11/Applications
147 Requires:       %{name} = %{version}-%{release}
148 Requires:       QtGui >= 4.0.1
149
150 %description gui
151 QPhotoRec graphical user interface.
152
153 %description gui -l pl.UTF-8
154 Graficzny interfejs użytkownika QPhotoRec.
155
156 %prep
157 %setup -q
158
159 %build
160 %{__aclocal}
161 %{__autoconf}
162 %{__autoheader}
163 %{__automake}
164 %configure \
165         --bindir=%{_sbindir} \
166         %{?__enable_disable qt} \
167         --disable-silent-rules
168 %{__make}
169
170 %install
171 rm -rf $RPM_BUILD_ROOT
172
173 %{__make} install \
174         DESTDIR=$RPM_BUILD_ROOT
175
176 # packaged as %doc
177 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
178
179 %clean
180 rm -rf $RPM_BUILD_ROOT
181
182 %files
183 %defattr(644,root,root,755)
184 %doc AUTHORS ChangeLog INFO NEWS README.md THANKS *.html
185 %attr(755,root,root) %{_sbindir}/fidentify
186 %attr(755,root,root) %{_sbindir}/photorec
187 %attr(755,root,root) %{_sbindir}/testdisk
188 %{_mandir}/man8/fidentify.8*
189 %{_mandir}/man8/photorec.8*
190 %{_mandir}/man8/testdisk.8*
191 %lang(zh_CN) %{_mandir}/zh_CN/man8/fidentify.8*
192 %lang(zh_CN) %{_mandir}/zh_CN/man8/photorec.8*
193 %lang(zh_CN) %{_mandir}/zh_CN/man8/testdisk.8*
194
195 %if %{with qt}
196 %files gui
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_sbindir}/qphotorec
199 %{_desktopdir}/qphotorec.desktop
200 %{_iconsdir}/hicolor/48x48/apps/qphotorec.png
201 %{_iconsdir}/hicolor/scalable/apps/qphotorec.svg
202 %{_mandir}/man8/qphotorec.8*
203 %lang(zh_CN) %{_mandir}/zh_CN/man8/qphotorec.8*
204 %endif
This page took 0.700124 seconds and 3 git commands to generate.