summaryrefslogtreecommitdiffstats
path: root/mingw-testdisk-copr.spec
blob: e6858172fbf37b8c8aa64f33f8dba98cd2fbe0af (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
%{?mingw_package_header}

Name:		mingw-testdisk
Version:	{{{ git_dir_version }}}
Release:	0%{?dist}
Summary:	TestDisk checks and undeletes partitions, PhotoRec recovers lost files
Summary(pl.UTF8):	Narzędzie sprawdzające i odzyskujące partycje
Summary(fr.UTF8):	Outil pour vérifier et restaurer des partitions
Summary(ru_RU.UTF8): Программа для проверки и восстановления разделов диска
License:	GPLv2+
Group:		Applications/System
URL:		https://www.cgsecurity.org/wiki/TestDisk
VCS:		{{{ git_dir_vcs }}}
Source0:	{{{ git_dir_pack name=mingw-testdisk }}}

BuildArch:	noarch
BuildRequires:	libtool autoconf automake
BuildRequires:	make

BuildRequires:	mingw32-filesystem >= 95
BuildRequires:	mingw32-binutils
BuildRequires:	mingw32-gcc
BuildRequires:	mingw32-gcc-c++
BuildRequires:	mingw32-gettext
BuildRequires:	mingw32-libewf
BuildRequires:	mingw32-libjpeg-turbo
BuildRequires:	mingw32-libjpeg-turbo-static
BuildRequires:	mingw32-ntfsprogs
BuildRequires:	mingw32-openssl
BuildRequires:	mingw32-pdcurses
BuildRequires:	mingw32-qt5-qtbase-devel
BuildRequires:	mingw32-qt5-qttools-tools
BuildRequires:	mingw32-win-iconv
BuildRequires:	mingw32-zlib

BuildRequires:	mingw64-binutils
BuildRequires:	mingw64-filesystem >= 95
BuildRequires:	mingw64-gcc
BuildRequires:	mingw64-gcc-c++
BuildRequires:	mingw64-gettext
BuildRequires:	mingw64-libewf
BuildRequires:	mingw64-libjpeg-turbo
BuildRequires:	mingw64-ntfsprogs
BuildRequires:	mingw64-openssl
BuildRequires:	mingw64-pdcurses
BuildRequires:	mingw64-qt5-qtbase-devel
BuildRequires:	mingw64-qt5-qttools-tools
BuildRequires:	mingw64-win-iconv
BuildRequires:	mingw64-zlib

%description
MinGW compiled testdisk.

%package -n mingw32-testdisk
Summary:       MinGW compiled testdisk for the Win32 target.

%description -n mingw32-testdisk
Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap,
LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%description -n mingw32-testdisk -l pl.UTF8
Narzędzie sprawdzające i odzyskujące partycje. Pracuje z partycjami:
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%description -n mingw32-testdisk -l fr.UTF8
TestDisk vérifie et récupère les partitions. Fonctionne avec
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec utilise un mécanisme de signature pour récupérer des fichiers perdus.
Il gère plus d'une centaine de formats de fichiers dont les JPEG,
les documents MSOffice ou OpenOffice.

%description -n mingw32-testdisk -l ru_RU.UTF8
Программа для проверки и восстановления разделов диска.
Поддерживает следующие типы разделов:
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%package -n mingw64-testdisk
Summary:       MinGW compiled testdisk for the Win64 target.

%description -n mingw64-testdisk
Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap,
LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%description -n mingw64-testdisk -l pl.UTF8
Narzędzie sprawdzające i odzyskujące partycje. Pracuje z partycjami:
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%description -n mingw64-testdisk -l fr.UTF8
TestDisk vérifie et récupère les partitions. Fonctionne avec
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec utilise un mécanisme de signature pour récupérer des fichiers perdus.
Il gère plus d'une centaine de formats de fichiers dont les JPEG,
les documents MSOffice ou OpenOffice.

%description -n mingw64-testdisk -l ru_RU.UTF8
Программа для проверки и восстановления разделов диска.
Поддерживает следующие типы разделов:
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, BeFS, CramFS, HFS, JFS,
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
PhotoRec is a signature based file recovery utility. It handles more than
200 file formats including JPG, MSOffice, OpenOffice documents.

%{?mingw_debug_package}

%prep
{{{ git_dir_setup_macro }}}

%build
autoreconf -vif -I config -W all
%mingw_configure --enable-missing-uuid-ok
%mingw_make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%mingw_make install DESTDIR=$RPM_BUILD_ROOT

%files -n mingw32-testdisk
%{mingw32_docdir}/testdisk/AUTHORS
%{mingw32_docdir}/testdisk/ChangeLog
%{mingw32_docdir}/testdisk/NEWS
%{mingw32_docdir}/testdisk/README.md
%{mingw32_docdir}/testdisk/THANKS
%{mingw32_docdir}/testdisk/documentation.html
%{mingw32_mandir}/man8/*-fidentify.8*
%{mingw32_mandir}/man8/*-photorec.8*
%{mingw32_mandir}/man8/*-qphotorec.8*
%{mingw32_mandir}/man8/*-testdisk.8*
%{mingw32_mandir}/zh_CN/man8/*-fidentify.8*
%{mingw32_mandir}/zh_CN/man8/*-photorec.8*
%{mingw32_mandir}/zh_CN/man8/*-qphotorec.8*
%{mingw32_mandir}/zh_CN/man8/*-testdisk.8*
%{mingw32_datadir}/applications/qphotorec.desktop
%{mingw32_datadir}/icons/hicolor/48x48/apps/qphotorec.png
%{mingw32_datadir}/icons/hicolor/scalable/apps/qphotorec.svg
%attr(755,root,root) %{mingw32_bindir}/*-fidentify.exe
%attr(755,root,root) %{mingw32_bindir}/*-photorec.exe
%attr(755,root,root) %{mingw32_bindir}/*-qphotorec.exe
%attr(755,root,root) %{mingw32_bindir}/*-testdisk.exe

%files -n mingw64-testdisk
%{mingw64_docdir}/testdisk/AUTHORS
%{mingw64_docdir}/testdisk/ChangeLog
%{mingw64_docdir}/testdisk/NEWS
%{mingw64_docdir}/testdisk/README.md
%{mingw64_docdir}/testdisk/THANKS
%{mingw64_docdir}/testdisk/documentation.html
%{mingw64_mandir}/man8/*-fidentify.8*
%{mingw64_mandir}/man8/*-photorec.8*
%{mingw64_mandir}/man8/*-qphotorec.8*
%{mingw64_mandir}/man8/*-testdisk.8*
%{mingw64_mandir}/zh_CN/man8/*-fidentify.8*
%{mingw64_mandir}/zh_CN/man8/*-photorec.8*
%{mingw64_mandir}/zh_CN/man8/*-qphotorec.8*
%{mingw64_mandir}/zh_CN/man8/*-testdisk.8*
%{mingw64_datadir}/applications/qphotorec.desktop
%{mingw64_datadir}/icons/hicolor/48x48/apps/qphotorec.png
%{mingw64_datadir}/icons/hicolor/scalable/apps/qphotorec.svg
%attr(755,root,root) %{mingw64_bindir}/*-fidentify.exe
%attr(755,root,root) %{mingw64_bindir}/*-photorec.exe
%attr(755,root,root) %{mingw64_bindir}/*-qphotorec.exe
%attr(755,root,root) %{mingw64_bindir}/*-testdisk.exe

%changelog
* Thu Jul 17 2008 Christophe Grenier <grenier@cgsecurity.org> 6.10-1
- 6.10

* Sun Jan 4 2004 Christophe Grenier <grenier@cgsecurity.org> 5.0
- 5.0

* Wed Oct 1 2003 Christophe Grenier <grenier@cgsecurity.org> 4.5
- 4.5

* Wed Apr 23 2003 Christophe Grenier <grenier@cgsecurity.org> 4.4-2

* Sat Mar 29 2003 Pascal Terjan <CMoi@tuxfamily.org> 4.4-1mdk
- 4.4

* Fri Dec 27 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-2mdk
- rebuild for rpm and glibc

* Sun Oct 06 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-1mdk
- 4.2

* Mon Sep 02 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.1-1mdk
- By Pascal Terjan <pascal.terjan@free.fr>
	- first mdk release, adapted from PLD.
	- gz to bz2 compression.
- fix %%tmppath
- %%make instead %%{__make}