-
Notifications
You must be signed in to change notification settings - Fork 1
/
metamorphose.spec
95 lines (69 loc) · 2.69 KB
/
metamorphose.spec
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
Name: metamorphose
Version: 1.1.1
Release: 1%{?dist}
Summary: A cross platform file and folder mass renamer
Summary(fr): Un renommeur massif pour fichiers et dossiers
Group: Applications/File
License: GPLv3
URL: http://sourceforge.net/projects/file-folder-ren/
Source0: http://downloads.sourceforge.net/file-folder-ren/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python desktop-file-utils gettext
Requires: wxPython wxGTK
%description
A cross platform file and folder mass renamer, allows many different
renaming operations in a GUI. Features include search and replace (with RE),
insert, numbering, date/time, id3 & EXIF tag read, change length, get all
files in sub-dirs, undo/redo, etc.
%prep
%setup -q -n %{name}-%{version}
iconv -f ISO-8859-1 -t UTF-8 -o metamorphose.1.temp metamorphose.1
mv metamorphose.1.temp metamorphose.1
sed -i -e 's|Version=1.0.6||' %{name}.desktop
chmod +x EXIF.py
%build
%install
rm -rf $RPM_BUILD_ROOT
make %{?_smp_mflags} build DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/man/man1/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p $RPM_BUILD_ROOT%{_bindir}
sed -i -e 's/\r$//' readme_en.html
sed -i -e 's/\r$//' readme_fr.html
sed -i -e 's/\r$//' readme_pl.html
sed -i -e 's/\r$//' translations.html
make install DESTDIR=$RPM_BUILD_ROOT
#chmod +x $RPM_BUILD_ROOT%{_datadir}/%{name}/generate_pot.sh
desktop-file-install --vendor="fedora" \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
metamorphose.desktop
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/metamorphose.desktop
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc %{_datadir}/doc/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/fedora-metamorphose.desktop
%{_bindir}/%{name}
%changelog
* Mon May 05 2008 Pingou <[email protected]> 1.1.1-1
- Update to version 1.1.1
* Fri Oct 19 2007 Pingou <[email protected]> 1.1.0-1
- Update to version 1.1.0
* Mon Oct 08 2007 Pingou <[email protected]> 1.0.6-1
- Update to version 1.0.6
* Mon Jul 30 2007 Pingou <[email protected]> 1.0.5-4
- Add the desktop install section
* Thu Jul 12 2007 Pingou <[email protected]> 1.0.5-3
- Changse in the requires
* Wed Jul 11 2007 Pingou <[email protected]> 1.0.5-2
- Add the BR
- Changes in the file section to avoid the conflicts
* Wed Jul 11 2007 Pingou <[email protected]> 1.0.5-1
- initial package for Fedora