Package perl-Coro: 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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | Epoch: 2 Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-perl rpm-macros-fedora-compat BuildRequires: perl(AnyEvent/AIO.pm) perl(AnyEvent/BDB.pm) perl(BDB.pm) perl(IO/AIO.pm) perl(LWP/Simple.pm) perl(Net/Config.pm) perl(Net/FTP.pm) perl(Net/HTTP.pm) perl(Net/NNTP.pm) perl(Term/ReadLine.pm) perl-podlators # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global cpan_version 6.57 Name: perl-Coro Version: 6.570 Release: alt4_1 Summary: The only real threads in perl # Coro/libcoro: GPLv2 or BSD # Rest of package: GPL+ or Artistic License: (GPL+ or Artistic) and (GPLv2 or BSD) URL: https://metacpan.org/release/Coro Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Coro-%{cpan_version}.tar.gz Patch0: %{name}-5.25-ucontext-default.patch # Do not disable hardening Patch1: Coro-6.512-Disable-disabling-FORTIFY_SOURCE.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: libecb-static BuildRequires: perl-devel BuildRequires: perl-devel BuildRequires: rpm-build-perl BuildRequires: perl(Canary/Stability.pm) BuildRequires: perl(Config.pm) BuildRequires: perl(EV.pm) BuildRequires: perl(EV/MakeMaker.pm) BuildRequires: perl(Event.pm) BuildRequires: perl(Event/MakeMaker.pm) BuildRequires: perl(ExtUtils/MakeMaker.pm) BuildRequires: perl(strict.pm) BuildRequires: sed # Run-time: BuildRequires: perl(AnyEvent.pm) # AnyEvent::AIO >= 1 not used at tests # AnyEvent::BDB >= 1 not used at tests # AnyEvent::DNS not used at tests BuildRequires: perl(AnyEvent/Socket.pm) BuildRequires: perl(AnyEvent/Util.pm) BuildRequires: perl(base.pm) # BDB not used at tests BuildRequires: perl(Carp.pm) BuildRequires: perl(common/sense.pm) BuildRequires: perl(Errno.pm) BuildRequires: perl(Exporter.pm) BuildRequires: perl(Guard.pm) # IO::AIO >= 3.1 not used at tests BuildRequires: perl(IO/Socket/INET.pm) # Net::Config not used at tests # Net::FTP not used at tests # Net::HTTP not used at tests # Net::NNTP not used at tests BuildRequires: perl(overload.pm) BuildRequires: perl(Scalar/Util.pm) BuildRequires: perl(Socket.pm) BuildRequires: perl(Storable.pm) BuildRequires: perl(warnings.pm) BuildRequires: perl(XSLoader.pm) # Export correct required versions Requires: perl(AnyEvent.pm) >= 7 Requires: perl(AnyEvent/AIO.pm) >= 1 Requires: perl(AnyEvent/BDB.pm) >= 1 Requires: perl(EV.pm) >= 4 Requires: perl(Event.pm) >= 1.080 Requires: perl(Guard.pm) >= 0.500 Requires: perl(Storable.pm) >= 2.150 Requires: perl(warnings.pm) # Filter underspecified dependencies Source44: import.info Patch33: Coro-6.57-perl7.patch %filter_from_requires /:__requires_exclude\|}^perl(AnyEvent.pm)/d %filter_from_requires /^perl(AnyEvent\\) >= 4.800001$/d %filter_from_requires /^perl(AnyEvent.AIO.pm)/d %filter_from_requires /^perl(AnyEvent.BDB.pm)/d %filter_from_requires /^perl(EV.pm)/d %filter_from_requires /^perl(Event.pm)/d %filter_from_requires /^perl(Guard.pm)/d %filter_from_requires /^perl(Storable.pm)/d %filter_from_provides /:__provides_exclude\|}^perl(Coro.pm)/d %description This module collection manages continuations in general, most often in the form of cooperative threads (also called coros, or simply "coro" in the documentation). They are similar to kernel threads but don't (in general) run in parallel at the same time even on SMP machines. The specific flavor of thread offered by this module also guarantees you that it will not switch between threads unless necessary, at easily-identified points in your program, so locking and parallel access are rarely an issue, making thread programming much safer and easier than using other thread models. %prep %setup -q -n Coro-%{cpan_version} %ifnarch %{ix86} x86_64 %{arm} # use ucontext backend on non-x86 (setjmp didn't work on s390(x)) %patch0 -p1 -b .ucontext-default %endif %patch1 -p1 # Unbundle libecb rm Coro/ecb.h perl -i -lne 'print $_ unless m{\ACoro/ecb\.h\z}' MANIFEST perl -i -pe 's/ecb\.h//' Coro/Makefile.PL # Correct shebangs for F in Coro/jit-*.pl; do perl -i -ne 'print $_ unless m{\A#!}' "$F" chmod -x "$F" done %fix_shbang_line eg/myhttpd # no need; fixed by rebuild of perl-common-sense #patch33 -p1 %build # Disable FORTIFY_SOURCE on ARM as it breaks setjmp - RHBZ 750805 %ifarch %{arm} RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=0" %endif # Interactive configuration. Use default values. perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=1 NO_PERLLOCAL=1 \ OPTIMIZE="$RPM_OPT_FLAGS" </dev/null %{make_build} %install %{makeinstall_std} find %{buildroot} -type f -name '*.bs' -size 0 -delete # %{_fixperms} %{buildroot}/* %check %if 1 %{make_build} test %endif %files %doc --no-dereference COPYING %doc Changes README README.linux-glibc %doc doc/* eg %{perl_vendor_archlib}/auto/Coro %{perl_vendor_archlib}/Coro %{perl_vendor_archlib}/Coro.pm %changelog * Mon Jun 21 2021 Igor Vlasenko <viy@altlinux.org> 2:6.570-alt4_1 - restored tests - removed set_perl_req_method relaxed * Mon Jun 21 2021 Igor Vlasenko <viy@altlinux.org> 2:6.570-alt3_1 - partial perl7 patch * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 2:6.570-alt2_1 - prepared for rebuild with perl 5.32 * Wed Nov 18 2020 Igor Vlasenko <viy@altlinux.ru> 2:6.570-alt1_1 - update to new release by fcimport * Tue Sep 01 2020 Igor Vlasenko <viy@altlinux.ru> 2:6.57-alt1 - automated CPAN update * Wed Jul 31 2019 Igor Vlasenko <viy@altlinux.ru> 2:6.55-alt2_1 - automated CPAN update * Sat Feb 09 2019 Igor Vlasenko <viy@altlinux.ru> 1:6.540-alt1_1 - update to new release by fcimport * Thu Jan 24 2019 Igor Vlasenko <viy@altlinux.ru> 1:6.54-alt1.2 - rebuild with new perl 5.28.1 * Thu Jan 24 2019 Igor Vlasenko <viy@altlinux.ru> 1:6.54-alt1.1 - disabled tests for 6.54 + perl 5.28 * Mon Dec 17 2018 Igor Vlasenko <viy@altlinux.ru> 1:6.54-alt1 - automated CPAN update * Tue Aug 21 2018 Igor Vlasenko <viy@altlinux.ru> 1:6.52-alt1_4.1 - automated CPAN update * Sat Jul 14 2018 Igor Vlasenko <viy@altlinux.ru> 6.514-alt1_4 - update to new release by fcimport * Fri Dec 15 2017 Igor Vlasenko <viy@altlinux.ru> 6.514-alt1_1.1 - rebuild with new perl 5.26.1 * Mon Oct 02 2017 Igor Vlasenko <viy@altlinux.ru> 6.514-alt1_1 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 6.511-alt1_2 - update to new release by fcimport * Sun Feb 12 2017 Igor Vlasenko <viy@altlinux.ru> 6.511-alt1_1 - new release * Thu Jul 21 2016 Nikolay A. Fetisov <naf@altlinux.ru> 6.511-alt1 - New version * Wed Nov 25 2015 Igor Vlasenko <viy@altlinux.ru> 6.49-alt2.1 - rebuild with new perl 5.22.0 * Sun Nov 22 2015 Vladimir Lettiev <crux@altlinux.ru> 6.49-alt2 - Fixed build for perl 5.22 (based on patch from Reini Urban) * Sun Oct 25 2015 Nikolay A. Fetisov <naf@altlinux.ru> 6.49-alt1 - New version * Sun Jun 07 2015 Nikolay A. Fetisov <naf@altlinux.ru> 6.43-alt1 - New version * Sat May 30 2015 Nikolay A. Fetisov <naf@altlinux.ru> 6.42-alt1 - New version * Tue Dec 09 2014 Igor Vlasenko <viy@altlinux.ru> 6.41-alt1.1 - rebuild with new perl 5.20.1 * Sun Sep 14 2014 Nikolay A. Fetisov <naf@altlinux.ru> 6.41-alt1 - New version * Thu Feb 27 2014 Nikolay A. Fetisov <naf@altlinux.ru> 6.33-alt1 - New version * Thu Aug 29 2013 Vladimir Lettiev <crux@altlinux.ru> 6.31-alt2 - built for perl 5.18 * Tue Jun 11 2013 Nikolay A. Fetisov <naf@altlinux.ru> 6.31-alt1 - New version * Fri Mar 01 2013 Sergey Bolshakov <sbolshakov@altlinux.ru> 6.23-alt2 - explicitly select ucontext method on arm * Mon Jan 07 2013 Nikolay A. Fetisov <naf@altlinux.ru> 6.23-alt1 - New version * Thu Oct 18 2012 Nikolay A. Fetisov <naf@altlinux.ru> 6.10-alt1 - New version * Sun Sep 02 2012 Vladimir Lettiev <crux@altlinux.ru> 6.08-alt1 - 6.06 -> 6.08 - built for perl-5.16 * Wed Oct 19 2011 Alexey Tourbin <at@altlinux.ru> 6.06-alt2 - rebuilt for perl-5.14 * Thu Sep 22 2011 Igor Vlasenko <viy@altlinux.ru> 6.06-alt1 - automated CPAN update * Sat May 28 2011 Nikolay A. Fetisov <naf@altlinux.ru> 5.372-alt1 - New version - Fix tests to build with current libpthread * Sat Nov 27 2010 Nikolay A. Fetisov <naf@altlinux.ru> 5.25-alt1 - Initial build for ALT Linux Sisyphus |