Use universal macro installation for both RPM 4 and RPM 5

%%install_macro has been added to the RPM 4 package,
%%install_macro and %%_rpmacrodir will be added to RPM 5.
This commit is contained in:
Mikhail Novosyolov 2020-01-09 23:20:19 +03:00
parent 366b1ad5a0
commit 483f793363

View file

@ -1,7 +1,7 @@
Summary: Base macros for Qt 5
Name: qt5-macros
Version: 5.6.0
Release: 4
Release: 5
License: LGPLv3+
Group: Development/KDE and Qt
Url: http://qt-project.org/
@ -12,7 +12,7 @@ BuildArch: noarch
Base macros for Qt 5.
%files
%{_sysconfdir}/rpm/macros.d/qt5.macros
%{_rpmmacrodir}/*qt5*
#----------------------------------------------------------------------------
@ -21,7 +21,4 @@ Base macros for Qt 5.
%build
%install
# Install rpm macros
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d
install -m 0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/rpm/macros.d
%install_macro qt5 %{SOURCE0}