avatar
mikhailnov has added 483f793363
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.

view file @ 483f793363
... ... --- a/qt5-macros.spec
... ... +++ b/qt5-macros.spec
... ... @@ -1,7 +1,7 @@
1 1
Summary:	Base macros for Qt 5
2 2
Name:		qt5-macros
3 3
Version:	5.6.0
4
Release:	4
4
Release:	5
5 5
License:	LGPLv3+
6 6
Group:		Development/KDE and Qt
7 7
Url:		http://qt-project.org/
... ... @@ -12,7 +12,7 @@ BuildArch: noarch
12 12
Base macros for Qt 5.
13 13
14 14
%files
15
%{_sysconfdir}/rpm/macros.d/qt5.macros
15
%{_rpmmacrodir}/*qt5*
16 16
17 17
#----------------------------------------------------------------------------
18 18
... ... @@ -21,7 +21,4 @@ Base macros for Qt 5.
21 21
%build
22 22
23 23
%install
24
25
# Install rpm macros
26
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d
27
install -m 0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/rpm/macros.d
24
%install_macro qt5 %{SOURCE0}

Comments