]>
Commit | Line | Data |
---|---|---|
cb5efecf JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with curl # enable webready with HTTP support via curl | |
4 | %bcond_with libssh # enable webready with SSH support via libssh | |
5 | ||
01db93bd ER |
6 | Summary: EXIF and IPTC metadata manipulation tools |
7 | Summary(pl.UTF-8): Narzędzia do obróbki metadanych EXIF i IPTC | |
2ed429b9 | 8 | Name: exiv2 |
897df3dd | 9 | Version: 0.26 |
cb5efecf | 10 | Release: 1 |
193c9aa0 | 11 | License: GPL v2+ |
8e00bd9d | 12 | Group: Applications/Graphics |
92a2a169 | 13 | #Source0Download: http://www.exiv2.org/download.html |
897df3dd AM |
14 | Source0: http://www.exiv2.org/builds/%{name}-%{version}-trunk.tar.gz |
15 | # Source0-md5: 5399e3b570d7f9205f0e76d47582da4c | |
4ac2cd63 | 16 | Patch0: %{name}-mkinstalldirs.patch |
769b1cb6 | 17 | Patch1: %{name}-png_support.patch |
21ff7476 | 18 | URL: http://www.exiv2.org/ |
f8b7c239 | 19 | BuildRequires: autoconf >= 2.61 |
193c9aa0 | 20 | BuildRequires: automake |
cb5efecf | 21 | %{?with_curl:BuildRequires: curl-devel} |
c18eedaa | 22 | BuildRequires: expat-devel |
a07acf56 | 23 | BuildRequires: gettext-tools |
cb5efecf | 24 | %{?with_libssh:BuildRequires: libssh-devel} |
2ed429b9 | 25 | BuildRequires: libstdc++-devel |
47a48176 | 26 | BuildRequires: libtool >= 2:2.0 |
193c9aa0 | 27 | BuildRequires: zlib-devel |
e630c462 | 28 | Requires: %{name}-libs = %{version}-%{release} |
2ed429b9 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
01db93bd | 32 | EXIF and IPTC metadata manipulation tools. |
ebce9581 | 33 | |
d4ecc369 | 34 | %description -l pl.UTF-8 |
01db93bd | 35 | Narzędzia do obróbki metadanych EXIF i IPTC. |
2ed429b9 | 36 | |
37 | %package libs | |
01db93bd ER |
38 | Summary: EXIF and IPTC metadata manipulation library |
39 | Summary(pl.UTF-8): Biblioteka do obróbki metadanych EXIF i IPTC | |
2ed429b9 | 40 | Group: Libraries |
41 | ||
42 | %description libs | |
01db93bd | 43 | EXIF and IPTC metadata manipulation library. |
2ed429b9 | 44 | |
d4ecc369 | 45 | %description libs -l pl.UTF-8 |
01db93bd | 46 | Biblioteka do obróbki metadanych EXIF i IPTC. |
ebce9581 | 47 | |
2ed429b9 | 48 | %package devel |
01db93bd ER |
49 | Summary: EXIF and IPTC metadata manipulation library development files |
50 | Summary(pl.UTF-8): Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC | |
2ed429b9 | 51 | Group: Development/Libraries |
e630c462 | 52 | Requires: %{name}-libs = %{version}-%{release} |
cb5efecf JB |
53 | %{?with_curl:Requires: curl-devel} |
54 | Requires: expat-devel | |
55 | %{?with_libssh:Requires: libssh-devel} | |
e630c462 | 56 | Requires: libstdc++-devel |
193c9aa0 | 57 | Requires: zlib-devel |
2ed429b9 | 58 | |
59 | %description devel | |
01db93bd | 60 | EXIF and IPTC metadata manipulation library development files. |
2ed429b9 | 61 | |
d4ecc369 | 62 | %description devel -l pl.UTF-8 |
01db93bd | 63 | Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC. |
ebce9581 | 64 | |
2ed429b9 | 65 | %package static |
01db93bd ER |
66 | Summary: EXIF and IPTC metadata manipulation static library |
67 | Summary(pl.UTF-8): Statyczna biblioteka do obróbki metadanych EXIF i IPTC | |
2ed429b9 | 68 | Group: Development/Libraries |
e630c462 | 69 | Requires: %{name}-devel = %{version}-%{release} |
2ed429b9 | 70 | |
71 | %description static | |
01db93bd | 72 | EXIF and IPTC metadata manipulation static library. |
2ed429b9 | 73 | |
d4ecc369 | 74 | %description static -l pl.UTF-8 |
01db93bd | 75 | Statyczna biblioteka do obróbki metadanych EXIF i IPTC. |
ebce9581 | 76 | |
2ed429b9 | 77 | %prep |
897df3dd | 78 | %setup -q -n %{name}-trunk |
4ac2cd63 | 79 | %patch0 -p0 |
769b1cb6 | 80 | %patch1 -p1 |
2ed429b9 | 81 | |
193c9aa0 JB |
82 | ln -s config/configure.ac . |
83 | ||
cb5efecf | 84 | # AX_CXX_CHECK_FLAG from old autoconf-archive, missing in acinclude or separate file |
3a86f705 JB |
85 | tail -n +10113 config/aclocal.m4 >> acinclude.m4 |
86 | ||
2ed429b9 | 87 | %build |
2c521f16 | 88 | %{__libtoolize} --install |
193c9aa0 JB |
89 | %{__aclocal} |
90 | %{__autoconf} | |
e4e253d9 | 91 | # don't touch autoheader, config.h.in has been manually modified |
cb5efecf JB |
92 | %configure \ |
93 | --enable-video \ | |
94 | %if %{with curl} || %{with libssh} | |
95 | --enable-webready \ | |
96 | %{!?with_curl:--without-curl} \ | |
97 | %{!?with_libssh:--without-ssh} | |
98 | %endif | |
e4e253d9 | 99 | |
e630c462 JB |
100 | %{__make} \ |
101 | CFLAGS="%{rpmcflags} -Wall" \ | |
102 | CXXFLAGS="%{rpmcxxflags} -Wall" | |
2ed429b9 | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
7fda263c | 108 | incdir=%{_includedir}/exiv2 \ |
109 | libdir=%{_libdir} \ | |
110 | bindir=%{_bindir} \ | |
2ed429b9 | 111 | DESTDIR=$RPM_BUILD_ROOT |
112 | ||
cb5efecf JB |
113 | # obsoleted by pkg-config |
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexiv2.la | |
115 | # let rpm autodetect dependencies | |
116 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/libexiv2.so* | |
8e976261 JB |
117 | # samples (exifprint, exiv2json) are not installed, so don't package man |
118 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/exiv2samples.1 | |
cb5efecf | 119 | |
99f68a7f RT |
120 | %find_lang %{name} |
121 | ||
2ed429b9 | 122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
69953bc2 ER |
125 | %post libs -p /sbin/ldconfig |
126 | %postun libs -p /sbin/ldconfig | |
127 | ||
99f68a7f | 128 | %files -f %{name}.lang |
2ed429b9 | 129 | %defattr(644,root,root,755) |
130 | %doc doc/ChangeLog README | |
50bae65e | 131 | %attr(755,root,root) %{_bindir}/%{name} |
0fc8fa4b | 132 | %{_mandir}/man1/exiv2.1* |
2ed429b9 | 133 | |
134 | %files libs | |
135 | %defattr(644,root,root,755) | |
69953bc2 | 136 | %attr(755,root,root) %{_libdir}/libexiv2.so.*.*.* |
897df3dd | 137 | %attr(755,root,root) %ghost %{_libdir}/libexiv2.so.26 |
2ed429b9 | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
e630c462 | 141 | %attr(755,root,root) %{_libdir}/libexiv2.so |
ebce9581 | 142 | %{_includedir}/%{name} |
e4e253d9 | 143 | %{_pkgconfigdir}/exiv2.pc |
2ed429b9 | 144 | |
145 | %files static | |
146 | %defattr(644,root,root,755) | |
e630c462 | 147 | %{_libdir}/libexiv2.a |