fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Binary?expand=0&rev=5
This commit is contained in:
		
							
								
								
									
										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: Perl | ||||
| #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 | ||||
| @@ -1,3 +1,8 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Tue May 17 08:33:30 UTC 2022 - Dirk Stoecker <opensuse@dstoecker.de> | ||||
|  | ||||
| - fix build | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Thu Apr 14 08:33:21 UTC 2011 - coolo@opensuse.org | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package perl-File-Binary (Version 1.7) | ||||
| # spec file for package perl-File-Binary | ||||
| # | ||||
| # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. | ||||
| # Copyright (c) 2022 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -12,29 +12,26 @@ | ||||
| # license that conforms to the Open Source Definition (Version 1.9) | ||||
| # published by the Open Source Initiative. | ||||
|  | ||||
| # Please submit bugfixes or comments via http://bugs.opensuse.org/ | ||||
| # Please submit bugfixes or comments via https://bugs.opensuse.org/ | ||||
| # | ||||
|  | ||||
|  | ||||
| %define cpan_name File-Binary | ||||
| Name:           perl-File-Binary | ||||
| Version:        1.7 | ||||
| Release:        1 | ||||
| License:        CHECK(GPL+ or Artistic) | ||||
| %define cpan_name File-Binary | ||||
| Release:        0 | ||||
| License:        Artistic-1.0 OR GPL-1.0-or-later | ||||
| Summary:        Binary file reading module | ||||
| Url:            http://search.cpan.org/dist/File-Binary/ | ||||
| Group:          Development/Libraries/Perl | ||||
| Source:         http://www.cpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz | ||||
| URL:            https://metacpan.org/release/%{cpan_name} | ||||
| Source0:        https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz | ||||
| Source1:        cpanspec.yml | ||||
| BuildArch:      noarch | ||||
| BuildRoot:      %{_tmppath}/%{name}-%{version}-build | ||||
| BuildRequires:  perl | ||||
| BuildRequires:  perl-macros | ||||
| BuildRequires:  perl(ExtUtils::MakeMaker) | ||||
| BuildRequires:  perl(IO::File) >= 1.14 | ||||
| BuildRequires:  perl(IO::Scalar) >= 1.126 | ||||
| BuildRequires:  perl(Test::More) | ||||
| Requires:       perl(IO::File) >= 1.14 | ||||
| Requires:       perl(IO::Scalar) >= 1.126 | ||||
| Requires:       perl(Test::More) | ||||
| %{perl_requires} | ||||
|  | ||||
| %description | ||||
| @@ -54,25 +51,22 @@ module for cleanliness sakes and also because the old interface was pretty | ||||
| braindead. | ||||
|  | ||||
| %prep | ||||
| %setup -q -n %{cpan_name}-%{version} | ||||
| %autosetup  -n %{cpan_name}-%{version} | ||||
| find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 | ||||
|  | ||||
| %build | ||||
| %{__perl} Makefile.PL INSTALLDIRS=vendor | ||||
| %{__make} %{?_smp_mflags} | ||||
| perl Makefile.PL INSTALLDIRS=vendor | ||||
| %make_build | ||||
|  | ||||
| %check | ||||
| %{__make} test | ||||
| make test | ||||
|  | ||||
| %install | ||||
| %perl_make_install | ||||
| %perl_process_packlist | ||||
| %perl_gen_filelist | ||||
|  | ||||
| %clean | ||||
| %{__rm} -rf %{buildroot} | ||||
|  | ||||
| %files -f %{name}.files | ||||
| %defattr(-,root,root,755) | ||||
| %doc Changes README | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user