commit 514b852b3e76b431985cb48c855cde7a4b06b984
Author: Arkadiusz Miƛkiewicz <ar...@maven.pl>
Date:   Thu Jul 20 09:16:44 2023 +0200

    Initial

 perl-Object-Accessor.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/perl-Object-Accessor.spec b/perl-Object-Accessor.spec
new file mode 100644
index 0000000..c8b1071
--- /dev/null
+++ b/perl-Object-Accessor.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Object
+%define                pnam    Accessor
+Summary:       Object::Accessor - interface to create per object accessors
+Name:          perl-Object-Accessor
+Version:       0.48
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-module/Object/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 46a3ce50d8817938cecbb8e02eda9500
+URL:           https://metacpan.org/release/Object-Accessor
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Object::Accessor provides an interface to create per object accessors
+(as opposed to per Class accessors, as, for example, Class::Accessor
+provides).
+
+You can choose to either subclass this module, and thus using its
+accessors on your own module, or to store an Object::Accessor object
+inside your own object, and access the accessors from there. See the
+SYNOPSIS for examples.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{perl_vendorlib}/Object/Accessor.pm
+%{_mandir}/man3/Object::Accessor.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Object-Accessor.git/commitdiff/514b852b3e76b431985cb48c855cde7a4b06b984

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to