Spec file cleanup
This commit is contained in:
parent
451337cc4e
commit
9de591da36
@ -13,7 +13,7 @@ Source2: gpgkey-44BC9FD0D688EB007C4DD029E9CBDFC0ABC0A854.gpg
|
|||||||
Patch0: libisofs-0.6.16-multilib.patch
|
Patch0: libisofs-0.6.16-multilib.patch
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
BuildRequires: gcc, libacl-devel, zlib-devel
|
BuildRequires: gcc, libacl-devel, zlib-devel
|
||||||
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 8
|
%if 0%{?rhel} && "%{name}" != "%{pkgname}"
|
||||||
BuildRequires: autoconf, automake, libtool
|
BuildRequires: autoconf, automake, libtool
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
|
|||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%if 0%{!?_without_doc:1}
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -43,14 +44,15 @@ BuildRequires: doxygen, graphviz
|
|||||||
Libisofs is a library to create an ISO-9660 filesystem and supports
|
Libisofs is a library to create an ISO-9660 filesystem and supports
|
||||||
extensions like RockRidge or Joliet. This package contains the API
|
extensions like RockRidge or Joliet. This package contains the API
|
||||||
documentation for developing applications that use %{name}.
|
documentation for developing applications that use %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
%setup -q -n %{pkgname}-%{version}
|
%setup -q -n %{pkgname}-%{version}
|
||||||
%patch0 -p1 -b .multilib
|
%patch0 -p1 -b .multilib
|
||||||
|
|
||||||
# Rename from libisofs to libisofs1 for RHEL >= 6
|
# Rename from libisofs to libisofs1 for EPEL
|
||||||
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 8
|
%if 0%{?rhel} && "%{name}" != "%{pkgname}"
|
||||||
sed -e 's@libisofs_libisofs@libisofs_libisofs1@g' \
|
sed -e 's@libisofs_libisofs@libisofs_libisofs1@g' \
|
||||||
-e 's@libisofs/libisofs.la@libisofs/libisofs1.la@g' \
|
-e 's@libisofs/libisofs.la@libisofs/libisofs1.la@g' \
|
||||||
-e 's@(includedir)/libisofs@(includedir)/libisofs1@g' \
|
-e 's@(includedir)/libisofs@(includedir)/libisofs1@g' \
|
||||||
@ -65,7 +67,7 @@ autoreconf --force --install
|
|||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
%make_build
|
%make_build
|
||||||
doxygen doc/doxygen.conf
|
%{!?_without_doc:doxygen doc/doxygen.conf}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -88,8 +90,10 @@ rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
|
|||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}*.pc
|
%{_libdir}/pkgconfig/%{name}*.pc
|
||||||
|
|
||||||
|
%if 0%{!?_without_doc:1}
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/html/
|
%doc doc/html/
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
|
||||||
|
Loading…
Reference in New Issue
Block a user