Package gtorrentviewer: 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 | Group: Networking/WWW # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install /usr/bin/glib-gettextize # END SourceDeps(oneline) %define fedora 37 # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: gtorrentviewer Version: 0.2b Release: alt4_49 Summary: A GTK2-based viewer and editor for BitTorrent meta files License: GPL+ URL: http://gtorrentviewer.sourceforge.net/ Source0: http://downloads.sf.net/gtorrentviewer/GTorrentViewer-%{version}.tar.gz Patch0: gtorrentviewer-0.2b-desktop.patch Patch1: gtorrentviewer-0.2b-dso-linking.patch Patch2: GTorrentViewer-0.2b-tracker-details-refresh.patch Patch3: gtorrentviewer-0.2b-trackerdetails.patch Patch4: GTorrentViewer-0.2b-curl-types.patch Patch5: GTorrentViewer-0.2b-format.patch Patch6: GTorrentViewer-0.2b-missing-tracker.patch Patch7: gtorrentviewer-configure-c99.patch BuildRequires: coreutils BuildRequires: gcc BuildRequires: gtk-builder-convert gtk-demo libgail-devel libgtk+2-devel BuildRequires: desktop-file-utils BuildRequires: gettext gettext-tools BuildRequires: intltool BuildRequires: libcurl-devel # Scriptlets replaced by File Triggers from Fedora 26 onwards %if 0%{?fedora} < 26 && 0%{?rhel} < 8 Requires(post): desktop-file-utils Requires(postun): desktop-file-utils %endif Source44: import.info %description GTorrentViewer gives you the ability to see and modify all the possible information from .torrent files without having to start downloading, and the ability to see in real time the current number of seeds and peers on the torrent, so you will always know the status before starting the download. %prep %setup -q -n GTorrentViewer-%{version} # Let drag and drop work with URIs as well as files (#206262) # Also drop ".png" suffix from icon filename, as per Icon Theme spec %patch0 # mainwindow.c requires ceil() from libm (#564928) %patch1 -p1 # Fix crash due to use of uninitialized GValue (#542502, #572806) %patch2 -p1 # Improve tracker support (#674726) %patch3 -p1 # <curl/types.h> went away in curl 7.22.0 %patch4 -p1 # Add missing format strings in g_warning() invocations %patch5 # Avoid segfault when dealing with torrent that has no tracker (#1178062) %patch6 # C99 compatibility issues. %patch7 -p1 # curl/types.h are no more; was true for 0.2b-22. sed -i 's,#include <curl/types.h>,,' src/main.c %build # This package includes its own implementation of SHA1, but with LTO # on it wants to use openssl's version instead, which we don't link against # and isn't the same as the local version %define _lto_cflags %{nil} %configure %make_build %install make install DESTDIR=%{buildroot} INSTALL="install -p" rm -f %{buildroot}%{_datadir}/GTorrentViewer/README desktop-file-install \ --vendor "" \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/gtorrentviewer.desktop desktop-file-install --dir %buildroot%_desktopdir \ --add-category=FileTransfer \ --add-category=P2P \ %buildroot%_desktopdir/gtorrentviewer.desktop # Scriptlets replaced by File Triggers from Fedora 26 onwards %files %doc --no-dereference COPYING %doc AUTHORS ChangeLog README %{_bindir}/gtorrentviewer %{_datadir}/GTorrentViewer %{_datadir}/applications/gtorrentviewer.desktop %{_datadir}/pixmaps/gtorrentviewer.png %{_datadir}/pixmaps/gtorrentviewer.xpm %{_mandir}/man1/gtorrentviewer.1* %changelog * Sat Dec 24 2022 Igor Vlasenko <viy@altlinux.org> 0.2b-alt4_49 - update to new release by fcimport * Sat Feb 27 2021 Igor Vlasenko <viy@altlinux.org> 0.2b-alt4_45 - update to new release by fcimport * Tue Nov 24 2020 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_43 - updated buildrequires * Wed Mar 07 2018 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_38 - update to new release by fcimport * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_36 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_34 - update to new release by fcimport * Tue Jul 26 2016 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_33 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_32 - update to new release by fcimport * Tue Apr 07 2015 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_31 - update to new release by fcimport * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_30 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_29 - update to new release by fcimport * Fri Nov 29 2013 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_28 - update to new release by fcimport * Tue Aug 20 2013 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_27 - fc update * Fri Feb 15 2013 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_26 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_25 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt4_24 - rebuild to get rid of #27020 * Wed Jan 11 2012 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt3_24 - update to new release by fcimport * Mon Nov 07 2011 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt3_23 - update to new release by fcimport * Tue Jul 05 2011 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt3_22 - fixed build * Tue Jun 07 2011 Repocop Q. A. Robot <repocop@altlinux.org> 0.2b-alt2_22.qa1 - NMU (by repocop). See http://www.altlinux.org/Tools/Repocop - applied repocop fixes: * freedesktop-desktop-file-proposed-patch for gtorrentviewer * postclean-03-private-rpm-macros for the spec file * Wed May 25 2011 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt2_22 - fixed scripts * Sat May 21 2011 Igor Vlasenko <viy@altlinux.ru> 0.2b-alt1_22 - initial release by fcimport |