| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2013-10-14 18:13:55 +00:00
										 |  |  | # spec file for package perl-Data-Random
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | # Copyright (c) 2025 SUSE LLC and contributors
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # 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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-14 18:13:55 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | %define cpan_name Data-Random
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | Name:           perl-Data-Random
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | Version:        0.140.0
 | 
					
						
							| 
									
										
										
										
											2013-10-14 18:13:55 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | # 0.14 -> normalize -> 0.140.0
 | 
					
						
							|  |  |  | %define cpan_version 0.14
 | 
					
						
							| 
									
										
										
										
											2018-04-20 13:45:44 +00:00
										 |  |  | License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | Summary:        Perl module to generate random data
 | 
					
						
							|  |  |  | URL:            https://metacpan.org/release/%{cpan_name}
 | 
					
						
							|  |  |  | Source0:        https://cpan.metacpan.org/authors/id/B/BA/BAREFOOT/%{cpan_name}-%{cpan_version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2015-04-17 07:14:14 +00:00
										 |  |  | Source1:        cpanspec.yml
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | Source100:      README.md
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							|  |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | BuildRequires:  perl(File::ShareDir::Install) >= 0.60
 | 
					
						
							| 
									
										
										
										
											2018-04-20 13:45:44 +00:00
										 |  |  | BuildRequires:  perl(Test::MockTime)
 | 
					
						
							|  |  |  | BuildRequires:  perl(Test::More) >= 0.88
 | 
					
						
							|  |  |  | BuildRequires:  perl(Time::Piece) >= 1.16
 | 
					
						
							|  |  |  | Requires:       perl(Time::Piece) >= 1.16
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | Provides:       perl(Data::Random) = %{version}
 | 
					
						
							|  |  |  | Provides:       perl(Data::Random::WordList) = %{version}
 | 
					
						
							|  |  |  | %undefine       __perllib_provides
 | 
					
						
							| 
									
										
										
										
											2018-04-20 13:45:44 +00:00
										 |  |  | Recommends:     perl(GD)
 | 
					
						
							| 
									
										
										
										
											2011-09-02 13:19:50 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | A module used to generate random data. Useful mostly for test programs.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | %autosetup -n %{cpan_name}-%{cpan_version} -p1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
					
						
							| 
									
										
										
										
											2017-10-03 07:26:48 +00:00
										 |  |  | # MANUAL BEGIN
 | 
					
						
							|  |  |  | sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL
 | 
					
						
							|  |  |  | # MANUAL END
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | perl Makefile.PL INSTALLDIRS=vendor
 | 
					
						
							|  |  |  | %make_build
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2025-10-22 10:14:26 +00:00
										 |  |  | make test
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %perl_make_install
 | 
					
						
							| 
									
										
										
										
											2011-09-02 13:19:50 +00:00
										 |  |  | %perl_process_packlist
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | %perl_gen_filelist
 | 
					
						
							| 
									
										
										
										
											2008-05-07 10:16:54 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | %files -f %{name}.files
 | 
					
						
							| 
									
										
										
										
											2018-04-20 13:45:44 +00:00
										 |  |  | %doc Changes README
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2010-08-23 08:37:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |