Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Crypt-OpenSSL-PBKDF2?expand=0&rev=3
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
preamble: |-
|
||||
BuildRequires: openssl-devel
|
||||
#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
|
||||
@@ -19,7 +19,7 @@
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
license: Artistic-1.0 OR GPL-2.0-or-later
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Crypt-OpenSSL-PBKDF2
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -16,32 +16,37 @@
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Crypt-OpenSSL-PBKDF2
|
||||
Version: 0.04
|
||||
Release: 0
|
||||
%define cpan_name Crypt-OpenSSL-PBKDF2
|
||||
Summary: Wrapper for Pbkdf2 Keys Derivation Function of the Openssl Library
|
||||
Name: perl-Crypt-OpenSSL-PBKDF2
|
||||
Version: 0.40.0
|
||||
Release: 0
|
||||
# 0.04 -> normalize -> 0.40.0
|
||||
%define cpan_version 0.04
|
||||
#Upstream: Crypt::OpenSSL::PBKDF2 is free software; you may redistribute it and/or modify it under the terms of GNU GPLv2 (or later version) or Artistic License. The full text of the license can be found in the LICENSE file included with this module.
|
||||
License: Artistic-1.0 OR GPL-2.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Crypt-OpenSSL-PBKDF2/
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SK/SKUPSY/OpenSSL/%{cpan_name}-%{version}.tar.gz
|
||||
Summary: Wrapper for PBKDF2 keys derivation function of the OpenSSL library
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SK/SKUPSY/OpenSSL/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: openssl-devel
|
||||
Provides: perl(Crypt::OpenSSL::PBKDF2) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: openssl-devel
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
Crypt::OpenSSL::PBKDF2 provides the ability to derive a key from a
|
||||
passphrase using OpenSSL library's PBKDF2 function
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
@@ -52,7 +57,6 @@ make test
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user