Changeset 1746 for spec/trunk/SPECS
- Timestamp:
- Jan 12, 2021, 10:10:15 PM (5 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 1 added
- 1 edited
-
hearts.spec (added)
-
iqpuzzle.spec (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/iqpuzzle.spec
r1693 r1746 19 19 Name: iqpuzzle 20 20 Summary: Challenging pentomino puzzle 21 Version: 1.2. 022 Release: 221 Version: 1.2.1 22 Release: 1 23 23 URL: https://github.com/ElTh0r0/iqpuzzle 24 #Source: %{name}-%{version}.tar.gz 24 %if !0%{?os2_version} 25 Source: %{name}-%{version}.tar.gz 26 %else 25 27 %scm_source github https://github.com/ElTh0r0/iqpuzzle master 28 %endif 26 29 27 # Fedora, RHEL, or CentOS30 # Fedora, RHEL, OS2, or CentOS 28 31 #-------------------------------------------------------------------- 29 32 %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?os2_version} 33 30 34 License: GPLv3+ 31 35 32 %if 036 %if !0%{?os2_version} 33 37 BuildRequires: desktop-file-utils 34 38 %endif 35 39 BuildRequires: gcc 36 %if 040 %if !0%{?os2_version} 37 41 BuildRequires: hicolor-icon-theme 38 42 %endif … … 71 75 72 76 %prep 73 #%setup -q -n %{name}-%{version} 77 %if !0%{?os2_version} 78 %setup -q -n %{name}-%{version} 79 %else 74 80 %scm_setup 81 %endif 75 82 76 83 # Fedora, RHEL, or CentOS … … 79 86 %build 80 87 # Create qmake cache file to add rpm optflags. 81 cat > .qmake.cache <<EOF 82 QMAKE_CXXFLAGS += %{optflags} 83 EOF 84 qmake-qt5 PREFIX=%{_prefix} 88 #cat > .qmake.cache <<EOF 89 #QMAKE_CXXFLAGS += %{optflags} 90 #EOF 91 export QMAKE_SH=$SHELL 92 export FAST_BUILD=1 93 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 94 95 qmake-qt5 "CONFIG+=release" PREFIX=%{_prefix} 85 96 make %{?_smp_mflags} 86 97 87 98 %install 88 99 %make_install INSTALL_ROOT=%{buildroot} 89 %if 0%{?os2_version} 100 mkdir -p %{buildroot}%{_bindir} 101 mkdir -p %{buildroot}%{_libdir} 102 mkdir -p %{buildroot}%{_datadir}/pixmaps 103 mkdir -p %{buildroot}%{_datadir}/%{name} 104 mkdir -p %{buildroot}%{_datadir}/misc 105 %endif 106 107 %if !0%{?os2_version} 90 108 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop 91 109 rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/%{name}.appdata.xml … … 93 111 94 112 %check 95 %if 0113 %if !0%{?os2_version} 96 114 desktop-file-validate %{buildroot}/%{_datadir}/%{name}.desktop || : 97 115 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/res/%{name}.appdata.xml || : 98 %endif99 116 %endif 100 117 #-------------------------------------------------------------------- … … 134 151 %{_bindir}/%{name}.exe 135 152 %{_datadir}/%{name} 136 %if 0153 %if !0%{?os2_version} 137 154 %{_datadir}/applications/%{name}.desktop 138 155 %endif … … 140 157 %{_datadir}/pixmaps/%{name}_64x64.png 141 158 %{_datadir}/pixmaps/%{name}.xpm 142 %if 0159 %if !0%{?os2_version} 143 160 %{_datadir}/metainfo/%{name}.appdata.xml 144 161 %endif … … 147 164 148 165 %changelog 166 * Mon Nov 30 2020 Elbert Pol <elbert.pol@gmail.com> 1.2.1-1 167 - Updated to latest version 168 149 169 * Wed Mar 18 2020 Elbert Pol <elbert.pol@gmail.com> 1.2.0-2 150 170 - Add version to os2 define
Note:
See TracChangeset
for help on using the changeset viewer.
