2011-03-25 10:19:41 +00:00
|
|
|
|
#
|
2011-08-01 13:24:22 +00:00
|
|
|
|
# spec file for package perl-Mac-PropertyList
|
2011-03-25 10:19:41 +00:00
|
|
|
|
#
|
2024-07-29 13:10:34 +00:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-03-25 10:19:41 +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.
|
|
|
|
|
|
2020-10-05 12:32:26 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-25 10:19:41 +00:00
|
|
|
|
#
|
|
|
|
|
|
2011-08-01 13:24:22 +00:00
|
|
|
|
|
2021-01-20 12:49:23 +00:00
|
|
|
|
%define cpan_name Mac-PropertyList
|
2011-03-25 10:19:41 +00:00
|
|
|
|
Name: perl-Mac-PropertyList
|
2025-01-06 16:47:29 +00:00
|
|
|
|
Version: 1.602.0
|
2012-09-27 09:40:44 +00:00
|
|
|
|
Release: 0
|
2025-01-06 16:47:29 +00:00
|
|
|
|
# 1.602 -> normalize -> 1.602.0
|
|
|
|
|
%define cpan_version 1.602
|
2018-04-04 10:14:42 +00:00
|
|
|
|
License: Artistic-2.0
|
2022-07-01 19:40:04 +00:00
|
|
|
|
Summary: Work with Mac plists at a low level
|
2020-10-05 12:32:26 +00:00
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-29 13:10:34 +00:00
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/%{cpan_name}-%{cpan_version}.tar.gz
|
2017-07-21 10:33:02 +00:00
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:12 +02:00
|
|
|
|
Source100: README.md
|
2013-06-05 15:09:55 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl
|
2011-03-25 10:19:41 +00:00
|
|
|
|
BuildRequires: perl-macros
|
2022-07-01 19:40:04 +00:00
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
2020-10-05 12:32:26 +00:00
|
|
|
|
BuildRequires: perl(Test::More) >= 1
|
2011-03-25 10:19:41 +00:00
|
|
|
|
BuildRequires: perl(XML::Entities)
|
2013-06-05 15:09:55 +00:00
|
|
|
|
BuildRequires: perl(parent)
|
2011-03-25 10:19:41 +00:00
|
|
|
|
Requires: perl(XML::Entities)
|
2013-06-05 15:09:55 +00:00
|
|
|
|
Requires: perl(parent)
|
2024-07-29 13:10:34 +00:00
|
|
|
|
Provides: perl(Mac::PropertyList) = %{version}
|
|
|
|
|
Provides: perl(Mac::PropertyList::Boolean)
|
|
|
|
|
Provides: perl(Mac::PropertyList::Container)
|
|
|
|
|
Provides: perl(Mac::PropertyList::Item)
|
|
|
|
|
Provides: perl(Mac::PropertyList::LineListSource)
|
2025-01-06 16:47:29 +00:00
|
|
|
|
Provides: perl(Mac::PropertyList::ReadBinary) = 1.506.0
|
2024-07-29 13:10:34 +00:00
|
|
|
|
Provides: perl(Mac::PropertyList::Scalar)
|
|
|
|
|
Provides: perl(Mac::PropertyList::Source)
|
|
|
|
|
Provides: perl(Mac::PropertyList::TextSource)
|
|
|
|
|
Provides: perl(Mac::PropertyList::WriteBinary) = 1.505.0
|
|
|
|
|
Provides: perl(Mac::PropertyList::array)
|
|
|
|
|
Provides: perl(Mac::PropertyList::data)
|
|
|
|
|
Provides: perl(Mac::PropertyList::date)
|
|
|
|
|
Provides: perl(Mac::PropertyList::dict)
|
|
|
|
|
Provides: perl(Mac::PropertyList::false)
|
|
|
|
|
Provides: perl(Mac::PropertyList::integer)
|
|
|
|
|
Provides: perl(Mac::PropertyList::real)
|
|
|
|
|
Provides: perl(Mac::PropertyList::string)
|
|
|
|
|
Provides: perl(Mac::PropertyList::true)
|
|
|
|
|
Provides: perl(Mac::PropertyList::uid)
|
|
|
|
|
Provides: perl(Mac::PropertyList::ustring)
|
|
|
|
|
%undefine __perllib_provides
|
2011-03-25 10:19:41 +00:00
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module is a low-level interface to the Mac OS X Property List (plist)
|
2017-07-31 09:26:32 +00:00
|
|
|
|
format in either XML or binary. You probably shouldn't use this in
|
|
|
|
|
applications–build interfaces on top of this so you don't have to put all
|
|
|
|
|
the heinous multi-level object stuff where people have to look at it.
|
2011-03-25 10:19:41 +00:00
|
|
|
|
|
|
|
|
|
You can parse a plist file and get back a data structure. You can take that
|
|
|
|
|
data structure and get back the plist as XML. If you want to change the
|
|
|
|
|
structure inbetween that's your business. :)
|
|
|
|
|
|
|
|
|
|
You don't need to be on Mac OS X to use this. It simply parses and
|
|
|
|
|
manipulates a text format that Mac OS X uses.
|
|
|
|
|
|
2017-07-31 09:26:32 +00:00
|
|
|
|
If you need to work with the old ASCII or newer JSON formet, you can use
|
|
|
|
|
the *plutil* tool that comes with MacOS X:
|
|
|
|
|
|
|
|
|
|
% plutil -convert xml1 -o ExampleBinary.xml.plist ExampleBinary.plist
|
|
|
|
|
|
|
|
|
|
Or, you can extend this module to handle those formats (and send a pull
|
|
|
|
|
request).
|
|
|
|
|
|
2011-03-25 10:19:41 +00:00
|
|
|
|
%prep
|
2024-07-29 13:10:34 +00:00
|
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-03-25 10:19:41 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2020-10-05 12:32:26 +00:00
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-01-20 12:49:23 +00:00
|
|
|
|
%make_build
|
2011-03-25 10:19:41 +00:00
|
|
|
|
|
|
|
|
|
%check
|
2020-10-05 12:32:26 +00:00
|
|
|
|
make test
|
2011-03-25 10:19:41 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2022-07-13 11:36:25 +00:00
|
|
|
|
%doc Changes CITATION.cff examples
|
2017-07-21 10:33:02 +00:00
|
|
|
|
%license LICENSE
|
2011-03-25 10:19:41 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|