From 5a767dcbdd7846696e966af68455cf99b3d5dfa6 Mon Sep 17 00:00:00 2001 From: ZiyangZhang Date: Tue, 11 Apr 2023 15:24:33 +0800 Subject: [PATCH] Optimise spec file and add abi/api files Signed-off-by: ZiyangZhang --- libexif.spec | 63 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/libexif.spec b/libexif.spec index 2164656..6572761 100644 --- a/libexif.spec +++ b/libexif.spec @@ -1,38 +1,40 @@ -%define anolis_release 2 -Summary: Library for extracting extra information from image files +%define anolis_release 3 Name: libexif Version: 0.6.24 Release: %{anolis_release}%{?dist} License: LGPLv2+ +Summary: Library for extracting extra information from image files URL: https://libexif.github.io/ -Source0: https://github.com/libexif/libexif/releases/download/v%{version}/libexif-%{version}.tar.bz2 +Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2 + -BuildRequires: autoconf -BuildRequires: automake +BuildRequires: autoconf automake libtool make pkgconfig gettext-devel BuildRequires: doxygen -BuildRequires: gettext-devel -BuildRequires: libtool -BuildRequires: make -BuildRequires: pkgconfig %description -Most digital cameras produce EXIF files, which are JPEG files with -extra tags that contain information about the image. The EXIF library -allows you to parse an EXIF file and read the data from those tags. +libexif is a library for parsing, editing, and saving EXIF data. It is +intended to replace lots of redundant implementations in command-line +utilities and programs with GUIs. + +libexif supports parsing, editing and saving of EXIF data. In addition, it +has gettext support. All EXIF tags described in EXIF standard 2.1 (and most +from 2.2) are supported. Many maker notes from Canon, Casio, Epson, +Fuji, Nikon, Olympus, Pentax and Sanyo cameras are also supported. %package devel -Summary: Files needed for libexif application development +Summary: Files needed for %{name} application development Requires: %{name} = %{version}-%{release} + %description devel -The libexif-devel package contains the libraries and header files -for writing programs that use libexif. +Libraries and header files for writing programs that use %{name}. %package doc -Summary: The EXIF Library API documentation +Summary: API Documentation of The EXIF Library Requires: %{name} = %{version}-%{release} -%description doc -API Documentation for programmers wishing to use libexif in their programs. +BuildArch: noarch +%description doc +Documentation files for %{name}. %prep %autosetup -p1 @@ -41,8 +43,7 @@ API Documentation for programmers wishing to use libexif in their programs. %build autoreconf -fiv -%configure \ - --disable-static +%configure --disable-static %make_build @@ -52,11 +53,13 @@ autoreconf -fiv rm -fv %{buildroot}%{_libdir}/lib*.la -rm -rf %{buildroot}%{_datadir}/doc/libexif -cp -R doc/doxygen-output/libexif-api.html . -iconv -f latin1 -t utf-8 < COPYING > COPYING.utf8; cp COPYING.utf8 COPYING -iconv -f latin1 -t utf-8 < README > README.utf8; cp README.utf8 README -%find_lang libexif-12 +rm -rf %{buildroot}%{_datadir}/doc/%{name} +cp -R doc/doxygen-output/%{name}-api.html . +iconv -f latin1 -t utf-8 < COPYING > COPYING.utf8 +cp COPYING.utf8 COPYING +iconv -f latin1 -t utf-8 < README > README.utf8 +cp README.utf8 README +%find_lang %{name}-12 %check @@ -65,10 +68,13 @@ iconv -f latin1 -t utf-8 < README > README.utf8; cp README.utf8 README %ldconfig_scriptlets +%generate_compatibility_deps + %files -f libexif-12.lang -%doc README NEWS %license COPYING +%dir %{abidir} %{_libdir}/libexif.so.12* +%{abidir}/libexif.dump %files devel %{_includedir}/libexif @@ -76,10 +82,13 @@ iconv -f latin1 -t utf-8 < README > README.utf8; cp README.utf8 README %{_libdir}/pkgconfig/libexif.pc %files doc -%doc libexif-api.html +%doc libexif-api.html README NEWS %changelog +* Tue Apr 11 2023 Ziyang Zhang -0.6.24-3 +- Optimise spec file and add abi/api files + * Mon Feb 13 2023 Kun(llfl) - 0.6.24-2 - Optimize the spec -- Gitee