8
0

Compare commits

3 Commits

3 changed files with 39 additions and 20 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Browser-Open/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-Browser-Open)

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 12 17:44:38 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 3 11:41:48 UTC 2013 - coolo@suse.com Mon Jun 3 11:41:48 UTC 2013 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Browser-Open # spec file for package perl-Browser-Open
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,28 +12,30 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
Name: perl-Browser-Open
Version: 0.04
Release: 0
%define cpan_name Browser-Open %define cpan_name Browser-Open
Name: perl-Browser-Open
Version: 0.40.0
Release: 0
# 0.04 -> normalize -> 0.40.0
%define cpan_version 0.04
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Open a browser in a given URL Summary: Open a browser in a given URL
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/C/CF/CFRANKS/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Browser-Open/ Source100: README.md
Source: http://www.cpan.org/authors/id/C/CF/CFRANKS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.92 BuildRequires: perl(Test::More) >= 0.92
BuildRequires: perl(parent) BuildRequires: perl(parent)
#BuildRequires: perl(Browser::Open)
Requires: perl(Test::More) >= 0.92 Requires: perl(Test::More) >= 0.92
Requires: perl(parent) Requires: perl(parent)
Provides: perl(Browser::Open) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -44,20 +46,20 @@ A set of known commands per OS-name is tested for presence, and the first
one found is executed. With an optional parameter, all known commands are one found is executed. With an optional parameter, all known commands are
checked. checked.
The the "open_browser" manpage uses the 'system()' function to execute the The "open_browser" uses the 'system()' function to execute the command. If
command. If you want more control, you can get the command with the the you want more control, you can get the command with the "open_browser_cmd"
"open_browser_cmd" manpage or the "open_browser_cmd_all" manpage functions or "open_browser_cmd_all" functions and then use whatever method you want
and then use whatever method you want to execute it. to execute it.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -65,7 +67,6 @@ and then use whatever method you want to execute it.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%changelog %changelog