]>
Commit | Line | Data |
---|---|---|
cb5efecf JB |
1 | # |
2 | # Conditional build: | |
d7f72c81 | 3 | %bcond_without apidocs # API documentation |
fc5e6f22 | 4 | %bcond_with curl # enable webready with HTTP support via curl |
cb5efecf | 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 |
7621c1ab | 9 | Version: 0.28.2 |
424f4566 | 10 | Release: 1 |
193c9aa0 | 11 | License: GPL v2+ |
8e00bd9d | 12 | Group: Applications/Graphics |
7621c1ab | 13 | #Source0Download: https://github.com/Exiv2/exiv2/releases |
ecf2a3cf | 14 | Source0: https://github.com/Exiv2/exiv2/archive/v%{version}/%{name}-%{version}.tar.gz |
7621c1ab JB |
15 | # Source0-md5: 75a8766216a15ad104f09ab4a0eab7ca |
16 | URL: https://github.com/Exiv2/exiv2 | |
fcce7b93 | 17 | BuildRequires: cmake >= 3.11.0 |
cb5efecf | 18 | %{?with_curl:BuildRequires: curl-devel} |
d7f72c81 | 19 | %{?with_apidocs:BuildRequires: doxygen} |
c18eedaa | 20 | BuildRequires: expat-devel |
a07acf56 | 21 | BuildRequires: gettext-tools |
4b505354 | 22 | BuildRequires: inih-c++-devel |
fcce7b93 JP |
23 | BuildRequires: libbrotli-devel |
24 | BuildRequires: libstdc++-devel >= 6:8 | |
d7f72c81 JB |
25 | BuildRequires: rpm-build >= 4.6 |
26 | BuildRequires: rpmbuild(macros) >= 1.605 | |
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 | |
4b505354 | 55 | Requires: inih-c++-devel |
e630c462 | 56 | Requires: libstdc++-devel |
193c9aa0 | 57 | Requires: zlib-devel |
fa5b1de7 | 58 | Obsoletes: exiv2-static < 0.27.0a-3 |
2ed429b9 | 59 | |
60 | %description devel | |
01db93bd | 61 | EXIF and IPTC metadata manipulation library development files. |
2ed429b9 | 62 | |
d4ecc369 | 63 | %description devel -l pl.UTF-8 |
01db93bd | 64 | Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC. |
ebce9581 | 65 | |
d7f72c81 JB |
66 | %package apidocs |
67 | Summary: API documentation for exiv2 library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki exiv2 | |
69 | Group: Documentation | |
70 | BuildArch: noarch | |
71 | ||
72 | %description apidocs | |
73 | API documentation for exiv2 library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki exiv2. | |
77 | ||
2ed429b9 | 78 | %prep |
ecf2a3cf | 79 | %setup -q |
2ed429b9 | 80 | |
fc5e6f22 | 81 | %build |
49cad502 JR |
82 | install -d build |
83 | cd build | |
fc5e6f22 | 84 | %cmake .. \ |
d7f72c81 JB |
85 | -DCMAKE_INSTALL_DOCDIR=%{_docdir}/exiv2 \ |
86 | %{?with_apidocs:-DEXIV2_BUILD_DOC=ON} \ | |
fc5e6f22 | 87 | -DEXIV2_BUILD_SAMPLES=OFF \ |
e6738789 | 88 | -DEXIV2_ENABLE_BMFF=ON \ |
fc5e6f22 | 89 | %{?with_curl:-DEXIV2_ENABLE_CURL=ON} \ |
7629f866 | 90 | -DEXIV2_ENABLE_NLS=ON \ |
fc5e6f22 | 91 | -DEXIV2_ENABLE_VIDEO=ON \ |
fcce7b93 | 92 | %{?with_curl:-DEXIV2_ENABLE_WEBREADY=ON} |
193c9aa0 | 93 | |
fc5e6f22 | 94 | %{__make} |
e4e253d9 | 95 | |
d7f72c81 JB |
96 | %if %{with apidocs} |
97 | %{__make} doc | |
98 | %endif | |
99 | ||
2ed429b9 | 100 | %install |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
fc5e6f22 | 103 | %{__make} -C build install \ |
2ed429b9 | 104 | DESTDIR=$RPM_BUILD_ROOT |
105 | ||
99f68a7f RT |
106 | %find_lang %{name} |
107 | ||
2ed429b9 | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
69953bc2 ER |
111 | %post libs -p /sbin/ldconfig |
112 | %postun libs -p /sbin/ldconfig | |
113 | ||
99f68a7f | 114 | %files -f %{name}.lang |
2ed429b9 | 115 | %defattr(644,root,root,755) |
fc5e6f22 JB |
116 | %doc README.md doc/ChangeLog doc/cmd.txt |
117 | %attr(755,root,root) %{_bindir}/exiv2 | |
0fc8fa4b | 118 | %{_mandir}/man1/exiv2.1* |
2ed429b9 | 119 | |
120 | %files libs | |
121 | %defattr(644,root,root,755) | |
69953bc2 | 122 | %attr(755,root,root) %{_libdir}/libexiv2.so.*.*.* |
4b505354 | 123 | %attr(755,root,root) %ghost %{_libdir}/libexiv2.so.28 |
2ed429b9 | 124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
e630c462 | 127 | %attr(755,root,root) %{_libdir}/libexiv2.so |
fc5e6f22 | 128 | %{_includedir}/exiv2 |
e4e253d9 | 129 | %{_pkgconfigdir}/exiv2.pc |
7621c1ab | 130 | %{_libdir}/cmake/exiv2 |
d7f72c81 JB |
131 | |
132 | %if %{with apidocs} | |
133 | %files apidocs | |
134 | %defattr(644,root,root,755) | |
135 | %{_docdir}/exiv2 | |
136 | %endif |