]>
Commit | Line | Data |
---|---|---|
2ed429b9 | 1 | Summary: Exif and Iptc metadata manipulation tools |
143cc00f | 2 | Summary(pl.UTF-8): Narzędzia do obróbki metadanych Exif i Iptc |
2ed429b9 | 3 | Name: exiv2 |
e5da622b | 4 | Version: 0.18.2 |
5 | Release: 1 | |
193c9aa0 | 6 | License: GPL v2+ |
8e00bd9d | 7 | Group: Applications/Graphics |
7fda263c | 8 | Source0: http://www.exiv2.org/%{name}-%{version}.tar.gz |
e5da622b | 9 | # Source0-md5: 300cc55e098d7ff7560b4c6992282c53 |
4ac2cd63 | 10 | Patch0: %{name}-mkinstalldirs.patch |
769b1cb6 | 11 | Patch1: %{name}-png_support.patch |
5fa51292 | 12 | Patch2: gcc44.patch |
e5da622b | 13 | Patch3: %{name}-configure.patch |
21ff7476 | 14 | URL: http://www.exiv2.org/ |
193c9aa0 JB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake | |
c18eedaa | 17 | BuildRequires: expat-devel |
f7ca868a | 18 | BuildRequires: gettext-devel |
2ed429b9 | 19 | BuildRequires: libstdc++-devel |
47a48176 | 20 | BuildRequires: libtool >= 2:2.0 |
193c9aa0 | 21 | BuildRequires: zlib-devel |
e630c462 | 22 | Requires: %{name}-libs = %{version}-%{release} |
2ed429b9 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
ebce9581 JB |
26 | Exif and Iptc metadata manipulation tools. |
27 | ||
d4ecc369 JR |
28 | %description -l pl.UTF-8 |
29 | Narzędzia do obróbki metadanych Exif i Iptc. | |
2ed429b9 | 30 | |
31 | %package libs | |
32 | Summary: Exif and Iptc metadata manipulation library | |
143cc00f | 33 | Summary(pl.UTF-8): Biblioteka do obróbki metadanych Exif i Iptc |
2ed429b9 | 34 | Group: Libraries |
35 | ||
36 | %description libs | |
37 | Exif and Iptc metadata manipulation library. | |
38 | ||
d4ecc369 JR |
39 | %description libs -l pl.UTF-8 |
40 | Biblioteka do obróbki metadanych Exif i Iptc. | |
ebce9581 | 41 | |
2ed429b9 | 42 | %package devel |
43 | Summary: Exif and Iptc metadata manipulation library development files | |
143cc00f | 44 | Summary(pl.UTF-8): Pliki programistyczne biblioteki do obróbki metadanych Exif i Iptc |
2ed429b9 | 45 | Group: Development/Libraries |
e630c462 JB |
46 | Requires: %{name}-libs = %{version}-%{release} |
47 | Requires: libstdc++-devel | |
193c9aa0 | 48 | Requires: zlib-devel |
2ed429b9 | 49 | |
50 | %description devel | |
51 | Exif and Iptc metadata manipulation library development files. | |
52 | ||
d4ecc369 JR |
53 | %description devel -l pl.UTF-8 |
54 | Pliki programistyczne biblioteki do obróbki metadanych Exif i Iptc. | |
ebce9581 | 55 | |
2ed429b9 | 56 | %package static |
57 | Summary: Exif and Iptc metadata manipulation static library | |
143cc00f | 58 | Summary(pl.UTF-8): Statyczna biblioteka do obróbki metadanych Exif i Iptc |
2ed429b9 | 59 | Group: Development/Libraries |
e630c462 | 60 | Requires: %{name}-devel = %{version}-%{release} |
2ed429b9 | 61 | |
62 | %description static | |
63 | Exif and Iptc metadata manipulation static library. | |
64 | ||
d4ecc369 JR |
65 | %description static -l pl.UTF-8 |
66 | Statyczna biblioteka do obróbki metadanych Exif i Iptc. | |
ebce9581 | 67 | |
2ed429b9 | 68 | %prep |
69 | %setup -q | |
4ac2cd63 | 70 | %patch0 -p0 |
769b1cb6 | 71 | %patch1 -p1 |
5fa51292 | 72 | %patch2 -p1 |
e5da622b | 73 | %patch3 -p0 |
2ed429b9 | 74 | |
193c9aa0 JB |
75 | ln -s config/configure.ac . |
76 | ||
2ed429b9 | 77 | %build |
2c521f16 | 78 | %{__libtoolize} --install |
193c9aa0 JB |
79 | %{__aclocal} |
80 | %{__autoconf} | |
e4e253d9 | 81 | # don't touch autoheader, config.h.in has been manually modified |
2ed429b9 | 82 | %configure |
e4e253d9 | 83 | |
e630c462 JB |
84 | %{__make} \ |
85 | CFLAGS="%{rpmcflags} -Wall" \ | |
86 | CXXFLAGS="%{rpmcxxflags} -Wall" | |
2ed429b9 | 87 | |
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
7fda263c | 92 | incdir=%{_includedir}/exiv2 \ |
93 | libdir=%{_libdir} \ | |
94 | bindir=%{_bindir} \ | |
2ed429b9 | 95 | DESTDIR=$RPM_BUILD_ROOT |
96 | ||
99f68a7f RT |
97 | %find_lang %{name} |
98 | ||
2ed429b9 | 99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
99f68a7f | 102 | %files -f %{name}.lang |
2ed429b9 | 103 | %defattr(644,root,root,755) |
104 | %doc doc/ChangeLog README | |
50bae65e | 105 | %attr(755,root,root) %{_bindir}/%{name} |
0fc8fa4b | 106 | %{_mandir}/man1/exiv2.1* |
2ed429b9 | 107 | |
108 | %files libs | |
109 | %defattr(644,root,root,755) | |
4ac2cd63 | 110 | %attr(755,root,root) %{_libdir}/libexiv2.so.* |
2ed429b9 | 111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
e630c462 JB |
114 | %attr(755,root,root) %{_libdir}/libexiv2.so |
115 | %{_libdir}/libexiv2.la | |
ebce9581 | 116 | %{_includedir}/%{name} |
e4e253d9 | 117 | %{_pkgconfigdir}/exiv2.pc |
2ed429b9 | 118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
e630c462 | 121 | %{_libdir}/libexiv2.a |