[packages/perl-Alien-HDF4] - new
qboosh
qboosh at pld-linux.org
Thu Jun 13 22:01:42 CEST 2024
commit e48ccaf0f76000839345cde1e8dc0788cb915490
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jun 13 21:55:33 2024 +0200
- new
perl-Alien-HDF4.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
---
diff --git a/perl-Alien-HDF4.spec b/perl-Alien-HDF4.spec
new file mode 100644
index 0000000..b18163d
--- /dev/null
+++ b/perl-Alien-HDF4.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir Alien
+%define pnam HDF4
+Summary: Alien::HDF4 - encapsulate install info for HDF4
+Summary(pl.UTF-8): Alien::HDF4 - opakowanie informacji o instalacji HDF4
+Name: perl-Alien-HDF4
+Version: 0.06
+Release: 1
+License: unknown
+Group: Development/Languages/Perl
+Source0: https://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: f91416a74e4644639fd2b081c33c2060
+URL: https://metacpan.org/dist/Alien-HDF4
+BuildRequires: hdf-devel >= 1:4.2
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+%endif
+Requires: hdf-devel >= 1:4.2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Alien::HDF4 - encapsulate install info for HDF4.
+
+%description -l pl.UTF-8
+Alien::HDF4 - opakowanie informacji o instalacji HDF4.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%{__sed} -i -e 's/\.a/.so/' common.pl
+
+%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
+%{perl_vendorarch}/Alien/HDF4.pm
+%{perl_vendorarch}/Alien/HDF4
+%{_mandir}/man3/Alien::HDF4.3pm*
+%{_mandir}/man3/Alien::HDF4::Install::Files.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Alien-HDF4.git/commitdiff/e48ccaf0f76000839345cde1e8dc0788cb915490
More information about the pld-cvs-commit
mailing list