]>
Commit | Line | Data |
---|---|---|
5e85ded7 | 1 | # |
2 | # Conditional build: | |
33362814 | 3 | %bcond_without tests # unit tests |
5e85ded7 | 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 |
33362814 JB |
10 | Version: 12.65 |
11 | Release: 1 | |
5e85ded7 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
33362814 JB |
15 | Source0: https://exiftool.org/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: 1f5a1368313cb3ab76933e45dd7b3f5b | |
17 | URL: https://exiftool.org/ | |
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 | |
33362814 | 49 | Summary(pl.UTF-8): Program do odczytu i zapisu metadanych Exif |
26233e41 ER |
50 | Group: Applications/Graphics |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description -n exiftool | |
54 | ExifTool is an application for reading and writing meta information in | |
55 | a wide variety of files, including the maker note information of many | |
56 | digital cameras by various manufacturers such as Canon, Casio, | |
57 | FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, | |
58 | Nikon, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Reconyx, Ricoh, | |
59 | Samsung, Sanyo, Sigma/Foveon and Sony. | |
60 | ||
33362814 JB |
61 | %description -n exiftool -l pl.UTF-8 |
62 | ExifTool to aplikacja do odczytu i zapisu metadanych w szerokoej gamie | |
63 | rodzajów plików, w tym informacji dodatkowych o zdjęciach, | |
64 | zapisywanych przez aparaty cyfrowe takich firm, jak Canon, Casio, | |
65 | FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, | |
66 | Nikon, Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Reconyx, Ricoh, | |
67 | Samsung, Sanyo, Sigma/Foveon i Sony. | |
68 | ||
5e85ded7 | 69 | %prep |
70 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
71 | ||
72 | %build | |
73 | %{__perl} Makefile.PL \ | |
74 | INSTALLDIRS=vendor \ | |
75 | destdir=$RPM_BUILD_ROOT | |
1107f3b9 | 76 | %{__make} |
5e85ded7 | 77 | |
78 | %{?with_tests:%{__make} test} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
7769ebc6 JB |
86 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/File/RandomAccess.pod \ |
87 | $RPM_BUILD_ROOT%{perl_vendorlib}/Image/ExifTool{,/*}.pod \ | |
88 | $RPM_BUILD_ROOT%{perl_vendorlib}/Image/ExifTool/README | |
89 | ||
5e85ded7 | 90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc README Changes html | |
96 | %{perl_vendorlib}/File/RandomAccess.pm | |
97 | %{perl_vendorlib}/Image/ExifTool.pm | |
98 | %dir %{perl_vendorlib}/Image/ExifTool | |
4ead9003 | 99 | %{perl_vendorlib}/Image/ExifTool/*.p[lm] |
fd614643 | 100 | %dir %{perl_vendorlib}/Image/ExifTool/Charset |
546ed769 | 101 | %{perl_vendorlib}/Image/ExifTool/Charset/*.pm |
adf558d2 | 102 | %dir %{perl_vendorlib}/Image/ExifTool/Lang |
0e541aaf | 103 | %lang(cs) %{perl_vendorlib}/Image/ExifTool/Lang/cs.pm |
adf558d2 JB |
104 | %lang(de) %{perl_vendorlib}/Image/ExifTool/Lang/de.pm |
105 | %lang(en_CA) %{perl_vendorlib}/Image/ExifTool/Lang/en_ca.pm | |
106 | %lang(en_GB) %{perl_vendorlib}/Image/ExifTool/Lang/en_gb.pm | |
107 | %lang(es) %{perl_vendorlib}/Image/ExifTool/Lang/es.pm | |
2c8acca8 | 108 | %lang(fi) %{perl_vendorlib}/Image/ExifTool/Lang/fi.pm |
adf558d2 JB |
109 | %lang(fr) %{perl_vendorlib}/Image/ExifTool/Lang/fr.pm |
110 | %lang(it) %{perl_vendorlib}/Image/ExifTool/Lang/it.pm | |
0e541aaf | 111 | %lang(ja) %{perl_vendorlib}/Image/ExifTool/Lang/ja.pm |
112 | %lang(ko) %{perl_vendorlib}/Image/ExifTool/Lang/ko.pm | |
adf558d2 JB |
113 | %lang(nl) %{perl_vendorlib}/Image/ExifTool/Lang/nl.pm |
114 | %lang(pl) %{perl_vendorlib}/Image/ExifTool/Lang/pl.pm | |
0e541aaf | 115 | %lang(ru) %{perl_vendorlib}/Image/ExifTool/Lang/ru.pm |
33362814 | 116 | %lang(sk) %{perl_vendorlib}/Image/ExifTool/Lang/sk.pm |
0e541aaf | 117 | %lang(sv) %{perl_vendorlib}/Image/ExifTool/Lang/sv.pm |
118 | %lang(tr) %{perl_vendorlib}/Image/ExifTool/Lang/tr.pm | |
119 | %lang(zh_CN) %{perl_vendorlib}/Image/ExifTool/Lang/zh_cn.pm | |
120 | %lang(zh_TW) %{perl_vendorlib}/Image/ExifTool/Lang/zh_tw.pm | |
adf558d2 JB |
121 | %{_mandir}/man3/File::RandomAccess.3pm* |
122 | %{_mandir}/man3/Image::ExifTool*.3pm* | |
26233e41 ER |
123 | |
124 | %files -n exiftool | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_bindir}/exiftool | |
127 | %{_mandir}/man1/exiftool.1p* |