]>
Commit | Line | Data |
---|---|---|
5e85ded7 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5e85ded7 | 5 | %define pdir Image |
6 | %define pnam ExifTool | |
7 | Summary: Perl module for reading and writing image metadata | |
3dbbfbf5 | 8 | Summary(pl.UTF-8): Moduł Perla do czytania i zapisywania metadanych w plikach graficznych |
5e85ded7 | 9 | Name: perl-Image-ExifTool |
fad44e28 | 10 | Version: 12.29 |
26233e41 | 11 | Release: 2 |
5e85ded7 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
0e541aaf | 15 | Source0: http://www.sno.phy.queensu.ca/~phil/exiftool/%{pdir}-%{pnam}-%{version}.tar.gz |
fad44e28 | 16 | # Source0-md5: d10e84ec0eeba85f959d71417f23a68b |
0e541aaf | 17 | URL: http://www.sno.phy.queensu.ca/~phil/exiftool/ |
5e85ded7 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
ebd31683 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
1107f3b9 | 21 | %if %{with tests} |
22 | BuildRequires: perl-Archive-Zip | |
23 | BuildRequires: perl-Digest-MD5 | |
24 | BuildRequires: perl-Encode | |
25 | %endif | |
26 | Requires: perl-Encode | |
5e85ded7 | 27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
26233e41 ER |
31 | ExifTool is a customizable set of Perl modules for reading and writing |
32 | meta information in a wide variety of files, including the maker note | |
33 | information of many digital cameras by various manufacturers such as | |
34 | Canon, Casio, FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, | |
35 | Minolta/Konica-Minolta, Nikon, Olympus/Epson, Panasonic/Leica, | |
36 | Pentax/Asahi, Reconyx, Ricoh, Samsung, Sanyo, Sigma/Foveon and Sony. | |
5e85ded7 | 37 | |
b6f3f2c4 | 38 | %description -l pl.UTF-8 |
4a5e207b | 39 | ExifTool to dostosowywalny zestaw modułów perlowych oraz aplikacja do |
40 | czytania i zapisywania metadanych w szerokiej gamie rodzajów plików. | |
41 | ExifTool odczytuje również informacje dodatkowe o zdjęciach zapisywane | |
42 | przez aparaty cyfrowe takich firm jak Canon, Casio, FujiFilm, GE, HP, | |
43 | JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Olympus/Epson, | |
44 | Panasonic/Leica, Pentax/Asahi, Reconyx, Ricoh, Samsung, Sanyo, | |
45 | Sigma/Foveon i Sony. | |
5e85ded7 | 46 | |
26233e41 ER |
47 | %package -n exiftool |
48 | Summary: Program for reading and writing EXIF metadata | |
49 | Group: Applications/Graphics | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description -n exiftool | |
53 | ExifTool is an application for reading and writing meta information in | |
54 | a wide variety of files, including the maker note information of many | |
55 | digital cameras by various manufacturers such as Canon, Casio, | |
56 | FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, | |
57 | Nikon, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Reconyx, Ricoh, | |
58 | Samsung, Sanyo, Sigma/Foveon and Sony. | |
59 | ||
5e85ded7 | 60 | %prep |
61 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
62 | ||
63 | %build | |
64 | %{__perl} Makefile.PL \ | |
65 | INSTALLDIRS=vendor \ | |
66 | destdir=$RPM_BUILD_ROOT | |
1107f3b9 | 67 | %{__make} |
5e85ded7 | 68 | |
69 | %{?with_tests:%{__make} test} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
7769ebc6 JB |
77 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/File/RandomAccess.pod \ |
78 | $RPM_BUILD_ROOT%{perl_vendorlib}/Image/ExifTool{,/*}.pod \ | |
79 | $RPM_BUILD_ROOT%{perl_vendorlib}/Image/ExifTool/README | |
80 | ||
5e85ded7 | 81 | %clean |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc README Changes html | |
87 | %{perl_vendorlib}/File/RandomAccess.pm | |
88 | %{perl_vendorlib}/Image/ExifTool.pm | |
89 | %dir %{perl_vendorlib}/Image/ExifTool | |
4ead9003 | 90 | %{perl_vendorlib}/Image/ExifTool/*.p[lm] |
fd614643 | 91 | %dir %{perl_vendorlib}/Image/ExifTool/Charset |
546ed769 | 92 | %{perl_vendorlib}/Image/ExifTool/Charset/*.pm |
adf558d2 | 93 | %dir %{perl_vendorlib}/Image/ExifTool/Lang |
0e541aaf | 94 | %lang(cs) %{perl_vendorlib}/Image/ExifTool/Lang/cs.pm |
adf558d2 JB |
95 | %lang(de) %{perl_vendorlib}/Image/ExifTool/Lang/de.pm |
96 | %lang(en_CA) %{perl_vendorlib}/Image/ExifTool/Lang/en_ca.pm | |
97 | %lang(en_GB) %{perl_vendorlib}/Image/ExifTool/Lang/en_gb.pm | |
98 | %lang(es) %{perl_vendorlib}/Image/ExifTool/Lang/es.pm | |
2c8acca8 | 99 | %lang(fi) %{perl_vendorlib}/Image/ExifTool/Lang/fi.pm |
adf558d2 JB |
100 | %lang(fr) %{perl_vendorlib}/Image/ExifTool/Lang/fr.pm |
101 | %lang(it) %{perl_vendorlib}/Image/ExifTool/Lang/it.pm | |
0e541aaf | 102 | %lang(ja) %{perl_vendorlib}/Image/ExifTool/Lang/ja.pm |
103 | %lang(ko) %{perl_vendorlib}/Image/ExifTool/Lang/ko.pm | |
adf558d2 JB |
104 | %lang(nl) %{perl_vendorlib}/Image/ExifTool/Lang/nl.pm |
105 | %lang(pl) %{perl_vendorlib}/Image/ExifTool/Lang/pl.pm | |
0e541aaf | 106 | %lang(ru) %{perl_vendorlib}/Image/ExifTool/Lang/ru.pm |
107 | %lang(sv) %{perl_vendorlib}/Image/ExifTool/Lang/sv.pm | |
108 | %lang(tr) %{perl_vendorlib}/Image/ExifTool/Lang/tr.pm | |
109 | %lang(zh_CN) %{perl_vendorlib}/Image/ExifTool/Lang/zh_cn.pm | |
110 | %lang(zh_TW) %{perl_vendorlib}/Image/ExifTool/Lang/zh_tw.pm | |
adf558d2 JB |
111 | %{_mandir}/man3/File::RandomAccess.3pm* |
112 | %{_mandir}/man3/Image::ExifTool*.3pm* | |
26233e41 ER |
113 | |
114 | %files -n exiftool | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_bindir}/exiftool | |
117 | %{_mandir}/man1/exiftool.1p* |