Package apitrace: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | # Upstream issue: https://github.com/apitrace/apitrace/issues/258 # Fedora # Filter GLIBC_PRIVATE Requires, see wrappers/dlsym.cpp #define __filter_GLIBC_PRIVATE 1 # ROSA # Exclude libc.so.6(GLIBC_PRIVATE) because it's not provided. #define __noautoreq '(.*)GLIBC_PRIVATE(.*)' # ALT as in http://www.sisyphus.ru/en/srpm/Sisyphus/gcc7/spec # Allow use __libc_dlsym and __libc_dlopen_mode %filter_from_requires /^libc.so.6(GLIBC_PRIVATE)/d Name: apitrace Version: 10.0 Release: alt1 Summary: Tools for tracing OpenGL License: MIT Group: Graphics Url: http://apitrace.github.io/ Packager: Vitaly Lipatov <lav@altlinux.ru> Source: https://github.com/apitrace/apitrace/archive/%version/apitrace-%version.tar Source1: qapitrace.desktop Source2: qapitrace.appdata.xml # Unbundle gtest Patch: apitrace-7.1_gtest.patch Patch1: apitrace-unbundle-brotli.patch Patch2: apitrace-gcc10.patch # due https://bugzilla.altlinux.org/show_bug.cgi?id=35067 %remove_optflags -O2 %add_optflags -O1 # internal %add_python3_req_skip highlight BuildRequires: cmake ctest rpm-macros-cmake BuildRequires: libpng-devel libbrotli-devel BuildRequires: libsnappy-devel BuildRequires: desktop-file-utils #BuildRequires: libappstream-glib BuildRequires: libgtest-devel BuildRequires: libdwarf-devel libprocps-devel # for gui tools BuildRequires: libX11-devel BuildRequires: qt5-base-devel BuildRequires(pre): rpm-build-python3 #Requires: %name-libs = %version-%release # scripts/snapdiff.py #Requires: python-module-pillow # See http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Packages_granted_exceptions #Provides: bundled(md5-plumb) # See https://fedorahosted.org/fpc/ticket/429 #Provides: bundled(libbacktrace) %description apitrace consists of a set of tools to: * trace OpenGL and OpenGL ES APIs calls to a file; * replay OpenGL and OpenGL ES calls from a file * inspect OpenGL state at any call while retracing * visualize and edit trace files %package -n lib%name Summary: Libraries used by apitrace Requires: %name = %version-%release Group: Graphics %description -n lib%name Libraries used by apitrace %package gui Summary: Graphical frontend for apitrace Requires: %name = %version-%release Group: Graphics %description gui This package contains qapitrace, the Graphical frontend for apitrace. %prep %setup %patch1 -p1 #patch2 -p1 # fix WRAPPER_DIR %__subst "s|dpkg-architecture|no-dpkg-architecture|" CMakeLists.txt # https://bugzilla.redhat.com/show_bug.cgi?id=1507659 # Remove bundled libraries, except khronos headers and libbacktrace rm -rf `ls -1d thirdparty/* | grep -Ev "(khronos|md5|libbacktrace|crc32c)"` # Fix spurious-executable-perm chmod -x retrace/glretrace_main.cpp sed -i '1i #!/usr/bin/env python3' scripts/highlight.py %build %cmake_insource -DENABLE_STATIC_SNAPPY=OFF -DENABLE_STATIC_LIBSTDCXX=OFF -DENABLE_STATIC_LIBGCC=OFF %make_build %install %makeinstall_std # Install doc through %%doc rm -rf %buildroot%_docdir/ # Install desktop file desktop-file-install --dir=%buildroot%_desktopdir/ %SOURCE1 # Install appdata file install -Dpm 0644 %SOURCE2 %buildroot%_datadir/appdata/qapitrace.appdata.xml #%_bindir/appstream-util validate-relax --nonet %buildroot%_datadir/appdata/qapitrace.appdata.xml # highlight.py is not a script #chmod 0644 %buildroot%_libdir/%name/scripts/highlight.py %check make check #post gui #_bindir/update-desktop-database &> /dev/null || : #postun gui #_bindir/update-desktop-database &> /dev/null || : %files %doc LICENSE %doc README.markdown docs/* %_bindir/apitrace %_bindir/eglretrace %_bindir/glretrace #files -n lib%name %_libdir/%name/ %files gui %_bindir/qapitrace %_desktopdir/qapitrace.desktop %_datadir/appdata/qapitrace.appdata.xml %changelog * Fri Jul 09 2021 Vitaly Lipatov <lav@altlinux.ru> 10.0-alt1 - new version 10.0 (with rpmrb script) * Wed Mar 11 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 9.0-alt4 - Updated build dependencies. * Wed Feb 19 2020 Andrey Bychkov <mrdrew@altlinux.org> 9.0-alt3 - py2 -> py3 in highlight module. * Fri Jan 24 2020 Vitaly Lipatov <lav@altlinux.ru> 9.0-alt2 - fix build, drop thirdparty dirs - build with system brotli * Thu Dec 12 2019 Vitaly Lipatov <lav@altlinux.ru> 9.0-alt1 - new version 9.0 (with rpmrb script) - switch to python3 * Thu Jun 21 2018 Vitaly Lipatov <lav@altlinux.ru> 7.1-alt2 - fix build with eat memory bug in gcc * Mon Oct 30 2017 Vitaly Lipatov <lav@altlinux.ru> 7.1-alt1 - initial build for ALT Sisyphus - restore dlsym hack * Mon Aug 07 2017 Sandro Mani <manisandro@gmail.com> - 7.1-7 - Don't add -nn to the moc options * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 25 2015 Sandro Mani <manisandro@gmail.com> - 7.1-1 - Update to 7.1 * Wed Sep 16 2015 Richard Hughes <rhughes@redhat.com> - 7.0-2 - Fix the AppData file to actually validate * Thu Jul 23 2015 Sandro Mani <manisandro@gmail.com> - 7.0-1 - Update to 7.0 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 6.1-4 - Rebuilt for GCC 5 C++11 ABI change * Mon Mar 02 2015 Sandro Mani <manisandro@gmail.com> - 6.1-3 - Remove dlsym hack, use %%define __filter_GLIBC_PRIVATE 1 * Fri Jan 16 2015 Sandro Mani <manisandro@gmail.com> - 6.1-2 - Fix appdata file * Fri Jan 16 2015 Sandro Mani <manisandro@gmail.com> - 6.1-1 - Update to 6.1 * Tue Jan 06 2015 Sandro Mani <manisandro@gmail.com> - 6.0-2 - Re-introduce dlsym hack * Mon Jan 05 2015 Sandro Mani <manisandro@gmail.com> - 6.0-1 - Update to 6.0 - Ship appdata file * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jun 11 2014 Adam Jackson <ajax@redhat.com> 5.0-3 - Fix dlsym hack to work on arm (and probably others) * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue May 13 2014 Sandro Mani <manisandro@gmail.com> - 5.0-1 - Update to 5.0 * Fri Mar 07 2014 Sandro Mani <manisandro@gmail.com> - 4.0-5 - Split off libs package - Allow tracing 32bit binaries on 64bit * Mon Nov 18 2013 Sandro Mani <manisandro@gmail.com> - 4.0-4 - chmod 0644 scripts/highlight.py - Fix all python shebangs according to fedora guidelines - Use BR: python2-devel - Split off qapitrace into subpackage * Sat Nov 16 2013 Sandro Mani <manisandro@gmail.com> - 4.0-3 - Fix desktop-file-install syntax * Sat Nov 16 2013 Sandro Mani <manisandro@gmail.com> - 4.0-2 - Fix %%{_buildroot} -> %%{buildroot} typo - Remove explicit BRs which are implicit * Wed Nov 13 2013 Sandro Mani <manisandro@gmail.com> - 4.0-1 - Initial package |