diff --git a/exiv2-0.27.5.tar.gz b/exiv2-0.27.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0712df17c98e9e09ecc41b8781ee3dc046a92d6e Binary files /dev/null and b/exiv2-0.27.5.tar.gz differ diff --git a/exiv2.spec b/exiv2.spec new file mode 100644 index 0000000000000000000000000000000000000000..af8fbce60f4fe220b504b76db5d7cd54a8c2e8a4 --- /dev/null +++ b/exiv2.spec @@ -0,0 +1,113 @@ +%define anolis_release 1 + +%undefine __cmake_in_source_build + +Summary: Exif and Iptc metadata manipulation library +Name: exiv2 +Version: 0.27.5 +%global internal_ver %{version} +Release: %{anolis_release}%{dist} + +License: GPLv2+ +URL: http://www.exiv2.org/ +Source0: http://exiv2.org/builds/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: expat-devel +BuildRequires: gcc-c++ +BuildRequires: gettext +BuildRequires: pkgconfig +BuildRequires: zlib-devel +# docs +BuildRequires: doxygen graphviz libxslt + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description +A command line utility to access image metadata, allowing one to: +* print the Exif metadata of Jpeg images as summary info, interpreted values, + or the plain data for each tag +* print the Iptc metadata of Jpeg images +* print the Jpeg comment of Jpeg images +* set, add and delete Exif and Iptc metadata of Jpeg images +* adjust the Exif timestamp (that's how it all started...) +* rename Exif image files according to the Exif timestamp +* extract, insert and delete Exif metadata (including thumbnails), + Iptc metadata and Jpeg comments + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +%description devel +%{summary}. + +%package libs +Summary: Exif and Iptc metadata manipulation library +Recommends: %{name} = %{version}-%{release} +%description libs +A C++ library to access image metadata, supporting full read and write access +to the Exif and Iptc metadata, Exif MakerNote support, extract and delete +methods for Exif thumbnails, classes to access Ifd and so on. + +%package doc +Summary: Api documentation for %{name} +BuildArch: noarch +%description doc +%{summary}. + + +%prep +%autosetup -n %{name}-%{version} -p1 + + +%build +%cmake \ + -DCMAKE_INSTALL_DOCDIR="%{_pkgdocdir}" \ + -DEXIV2_BUILD_DOC:BOOL=ON \ + -DEXIV2_ENABLE_NLS:BOOL=ON \ + -DEXIV2_BUILD_SAMPLES:BOOL=OFF + +%cmake_build +%cmake_build --target doc + + +%install +%cmake_install + +%find_lang exiv2 --with-man + + +%check +export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}" +test "$(pkg-config --modversion exiv2)" = "%{internal_ver}" +test "$(pkg-config --variable=libdir exiv2)" = "%{_libdir}" +test -x %{buildroot}%{_libdir}/libexiv2.so + + +%files -f exiv2.lang +%license COPYING +%doc doc/ChangeLog + +%{_bindir}/exiv2 +%{_mandir}/man1/exiv2*.1* + +%ldconfig_scriptlets libs + +%files libs +%{_libdir}/libexiv2.so.27* +%{_libdir}/libexiv2.so.%{internal_ver} + +%files devel +%{_includedir}/exiv2/ +%{_libdir}/libexiv2.so +%{_libdir}/pkgconfig/exiv2.pc +%{_libdir}/cmake/exiv2/ +%{_libdir}/libexiv2-xmp.a + +%files doc +%{_pkgdocdir}/ + + +%changelog +* Wed Apr 13 2022 Zhongling He 0.27.5-1 +- Init package from upstream v0.27.5