forked from pool/perl-Class-Data-Inheritable
		
	- updated to 0.100.0 (0.10)
see /usr/share/doc/packages/perl-Class-Data-Inheritable/Changes
  0.10  
      - don't use vars, use our (thanks haarg)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Data-Inheritable?expand=0&rev=19
			
			
This commit is contained in:
		
							
								
								
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | ## Default LFS | ||||||
|  | *.7z filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.bsp filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.bz2 filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.gem filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.gz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.jar filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.lz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.lzma filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.obscpio filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.oxt filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.pdf filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.png filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.rpm filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.tbz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.tbz2 filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.tgz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.ttf filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.txz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.whl filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.xz filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.zip filter=lfs diff=lfs merge=lfs -text | ||||||
|  | *.zst filter=lfs diff=lfs merge=lfs -text | ||||||
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | .osc | ||||||
							
								
								
									
										
											BIN
										
									
								
								Class-Data-Inheritable-0.09.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Class-Data-Inheritable-0.09.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Class-Data-Inheritable-0.10.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Class-Data-Inheritable-0.10.tar.gz
									 (Stored with Git LFS)
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										35
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | |||||||
|  | --- | ||||||
|  | #description_paragraphs: 3 | ||||||
|  | #description: |- | ||||||
|  | #  override description from CPAN | ||||||
|  | #summary: override summary from CPAN | ||||||
|  | #no_testing: broken upstream | ||||||
|  | #sources: | ||||||
|  | #  - source1 | ||||||
|  | #  - source2 | ||||||
|  | #patches: | ||||||
|  | #  foo.patch: -p1 | ||||||
|  | #  bar.patch: | ||||||
|  | #  baz.patch: PATCH-FIX-OPENSUSE | ||||||
|  | #preamble: |- | ||||||
|  | # BuildRequires:  gcc-c++ | ||||||
|  | #post_prep: |- | ||||||
|  | # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'` | ||||||
|  | # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL  | ||||||
|  | #post_build: |- | ||||||
|  | # rm unused.files | ||||||
|  | #post_install: |- | ||||||
|  | # sed on %{name}.files | ||||||
|  | #license: SUSE-NonFree | ||||||
|  | #skip_noarch: 1 | ||||||
|  | #custom_build: |- | ||||||
|  | #./Build build flags=%{?_smp_mflags} --myflag | ||||||
|  | #custom_test: |- | ||||||
|  | #startserver && make test | ||||||
|  | #ignore_requires: Bizarre::Module | ||||||
|  | #skip_doc: regexp_to_skip_for_doc.* | ||||||
|  | #add_doc: files to add to docs | ||||||
|  | #misc: |- | ||||||
|  | #anything else to be added to spec file | ||||||
|  | #follows directly after %files section, so it can contain new blocks or also | ||||||
|  | #changes to %files section | ||||||
							
								
								
									
										115
									
								
								perl-Class-Data-Inheritable.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								perl-Class-Data-Inheritable.changes
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,115 @@ | |||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Oct 24 05:32:14 UTC 2024 - Tina Müller <timueller+perl@suse.de> | ||||||
|  |  | ||||||
|  | - updated to 0.100.0 (0.10) | ||||||
|  |    see /usr/share/doc/packages/perl-Class-Data-Inheritable/Changes | ||||||
|  |  | ||||||
|  |   0.10  Thu Oct 24 01:40:24 UTC 2024 | ||||||
|  |       - don't use vars, use our (thanks haarg) | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Sat Jul 31 03:06:48 UTC 2021 - Tina Müller <timueller+perl@suse.de> | ||||||
|  |  | ||||||
|  | - updated to 0.09 | ||||||
|  |    see /usr/share/doc/packages/perl-Class-Data-Inheritable/Changes | ||||||
|  |  | ||||||
|  |   0.09  Fri Jul 30 22:42:00 UTC 2021 | ||||||
|  |       - Update spelling errors to resolve #83824 and #86563 | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Fri Nov 18 11:09:18 UTC 2011 - coolo@suse.com | ||||||
|  |  | ||||||
|  | - use original .tar.gz | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Nov 30 19:19:55 UTC 2010 - coolo@novell.com | ||||||
|  |  | ||||||
|  | - switch to perl_requires macro | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Nov 24 15:24:56 UTC 2010 - chris@computersalat.de | ||||||
|  |  | ||||||
|  | - recreated by cpanspec 1.78 | ||||||
|  |   o fix deps | ||||||
|  | - noarch pkg | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Oct 19 08:38:23 UTC 2010 - coolo@novell.com | ||||||
|  |  | ||||||
|  | - add perl as explicit buildrequire | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de | ||||||
|  |  | ||||||
|  | - enable parallel build | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Mon Jan 28 15:26:10 CET 2008 - anicka@suse.cz | ||||||
|  |  | ||||||
|  | - update to 0.08 | ||||||
|  |  * Fix 'perltooc' typo in Docs  | ||||||
|  |  * Relicense as dual AL/GPL | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Sep 20 18:35:07 CEST 2006 - anicka@suse.cz | ||||||
|  |  | ||||||
|  | - update to 0.06 | ||||||
|  |   * Sync the japanese docs  | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Sep 14 12:19:59 CEST 2006 - anicka@suse.cz | ||||||
|  |  | ||||||
|  | - update to 0.05 | ||||||
|  |   * Use correct bug reporting address (Jonathan Rockway) | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Jan 25 21:39:31 CET 2006 - mls@suse.de | ||||||
|  |  | ||||||
|  | - converted neededforbuild to BuildRequires | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Jan  3 14:02:09 CET 2006 - anicka@suse.cz | ||||||
|  |  | ||||||
|  | - update to 0.04  | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Sep 28 22:08:20 CEST 2005 - dmueller@suse.de | ||||||
|  |  | ||||||
|  |  - add norootforbuild | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Thu Jul  7 17:13:50 CEST 2005 - pth@suse.de | ||||||
|  |  | ||||||
|  | - Provide Class-Data-Inheritable | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Fri Aug 22 14:10:37 CEST 2003 - mjancar@suse.cz | ||||||
|  |  | ||||||
|  | - require the perl version we build with | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Jul 15 11:45:27 CEST 2003 - mjancar@suse.cz | ||||||
|  |  | ||||||
|  | - adapt to perl-5.8.1 | ||||||
|  | - use %perl_process_packlist | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Wed Jun 18 15:23:43 CEST 2003 - mjancar@suse.cz | ||||||
|  |  | ||||||
|  | - fix filelist | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue May 20 12:39:16 CEST 2003 - mjancar@suse.cz | ||||||
|  |  | ||||||
|  | - remove unpackaged files | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Tue Jul  2 17:40:06 MEST 2002 - mls@suse.de | ||||||
|  |  | ||||||
|  | - remove race in .packlist generation | ||||||
|  |  | ||||||
|  | ------------------------------------------------------------------- | ||||||
|  | Mon Aug 13 14:39:58 CEST 2001 - rvasice@suse.cz | ||||||
|  |  | ||||||
|  | - initial package release (version 0.02) | ||||||
|  |  | ||||||
							
								
								
									
										103
									
								
								perl-Class-Data-Inheritable.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										103
									
								
								perl-Class-Data-Inheritable.spec
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,103 @@ | |||||||
|  | # | ||||||
|  | # spec file for package perl-Class-Data-Inheritable | ||||||
|  | # | ||||||
|  | # Copyright (c) 2024 SUSE LLC | ||||||
|  | # | ||||||
|  | # All modifications and additions to the file contributed by third parties | ||||||
|  | # remain the property of their copyright owners, unless otherwise agreed | ||||||
|  | # upon. The license for this file, and modifications and additions to the | ||||||
|  | # file, is the same license as for the pristine package itself (unless the | ||||||
|  | # license for the pristine package is not an Open Source License, in which | ||||||
|  | # case the license is the MIT License). An "Open Source License" is a | ||||||
|  | # license that conforms to the Open Source Definition (Version 1.9) | ||||||
|  | # published by the Open Source Initiative. | ||||||
|  |  | ||||||
|  | # Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||||||
|  | # | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %define cpan_name Class-Data-Inheritable | ||||||
|  | Name:           perl-Class-Data-Inheritable | ||||||
|  | Version:        0.100.0 | ||||||
|  | Release:        0 | ||||||
|  | # 0.10 -> normalize -> 0.100.0 | ||||||
|  | %define cpan_version 0.10 | ||||||
|  | License:        Artistic-1.0 OR GPL-1.0-or-later | ||||||
|  | Summary:        Inheritable, overridable class data | ||||||
|  | URL:            https://metacpan.org/release/%{cpan_name} | ||||||
|  | Source0:        https://cpan.metacpan.org/authors/id/R/RS/RSHERER/%{cpan_name}-%{cpan_version}.tar.gz | ||||||
|  | Source1:        cpanspec.yml | ||||||
|  | BuildArch:      noarch | ||||||
|  | BuildRequires:  perl | ||||||
|  | BuildRequires:  perl-macros | ||||||
|  | Provides:       perl(Class::Data::Inheritable) = %{version} | ||||||
|  | %undefine       __perllib_provides | ||||||
|  | %{perl_requires} | ||||||
|  |  | ||||||
|  | %description | ||||||
|  | Class::Data::Inheritable is for creating accessor/mutators to class data. | ||||||
|  | That is, if you want to store something about your class as a whole | ||||||
|  | (instead of about a single object). This data is then inherited by your | ||||||
|  | subclasses and can be overridden. | ||||||
|  |  | ||||||
|  | For example: | ||||||
|  |  | ||||||
|  |   Pere::Ubu->mk_classdata('Suitcase'); | ||||||
|  |  | ||||||
|  | will generate the method Suitcase() in the class Pere::Ubu. | ||||||
|  |  | ||||||
|  | This new method can be used to get and set a piece of class data. | ||||||
|  |  | ||||||
|  |   Pere::Ubu->Suitcase('Red'); | ||||||
|  |   $suitcase = Pere::Ubu->Suitcase; | ||||||
|  |  | ||||||
|  | The interesting part happens when a class inherits from Pere::Ubu: | ||||||
|  |  | ||||||
|  |   package Raygun; | ||||||
|  |   use base qw(Pere::Ubu); | ||||||
|  |  | ||||||
|  |   # Raygun's suitcase is Red. | ||||||
|  |   $suitcase = Raygun->Suitcase; | ||||||
|  |  | ||||||
|  | Raygun inherits its Suitcase class data from Pere::Ubu. | ||||||
|  |  | ||||||
|  | Inheritance of class data works analogous to method inheritance. As long as | ||||||
|  | Raygun does not "override" its inherited class data (by using Suitcase() to | ||||||
|  | set a new value) it will continue to use whatever is set in Pere::Ubu and | ||||||
|  | inherit further changes: | ||||||
|  |  | ||||||
|  |   # Both Raygun's and Pere::Ubu's suitcases are now Blue | ||||||
|  |   Pere::Ubu->Suitcase('Blue'); | ||||||
|  |  | ||||||
|  | However, should Raygun decide to set its own Suitcase() it has now | ||||||
|  | "overridden" Pere::Ubu and is on its own, just like if it had overridden a | ||||||
|  | method: | ||||||
|  |  | ||||||
|  |   # Raygun has an orange suitcase, Pere::Ubu's is still Blue. | ||||||
|  |   Raygun->Suitcase('Orange'); | ||||||
|  |  | ||||||
|  | Now that Raygun has overridden Pere::Ubu further changes by Pere::Ubu no | ||||||
|  | longer effect Raygun. | ||||||
|  |  | ||||||
|  |   # Raygun still has an orange suitcase, but Pere::Ubu is using Samsonite. | ||||||
|  |   Pere::Ubu->Suitcase('Samsonite'); | ||||||
|  |  | ||||||
|  | %prep | ||||||
|  | %autosetup  -n %{cpan_name}-%{cpan_version} | ||||||
|  |  | ||||||
|  | %build | ||||||
|  | perl Makefile.PL INSTALLDIRS=vendor | ||||||
|  | %make_build | ||||||
|  |  | ||||||
|  | %check | ||||||
|  | make test | ||||||
|  |  | ||||||
|  | %install | ||||||
|  | %perl_make_install | ||||||
|  | %perl_process_packlist | ||||||
|  | %perl_gen_filelist | ||||||
|  |  | ||||||
|  | %files -f %{name}.files | ||||||
|  | %doc Changes doc README | ||||||
|  |  | ||||||
|  | %changelog | ||||||
		Reference in New Issue
	
	Block a user