]> git.pld-linux.org Git - packages/perl-File-ShareDir-Install.git/commitdiff
- initial
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 9 Oct 2013 12:58:44 +0000 (14:58 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 9 Oct 2013 12:58:44 +0000 (14:58 +0200)
perl-File-ShareDir-Install.spec [new file with mode: 0644]

diff --git a/perl-File-ShareDir-Install.spec b/perl-File-ShareDir-Install.spec
new file mode 100644 (file)
index 0000000..0a76bab
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without autodeps        # don't BR packages needed only for resolving deps
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    File
+%define        pnam    ShareDir-Install
+Summary:       File::ShareDir-Install - Install shared files
+Name:          perl-File-ShareDir-Install
+Version:       0.05
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 205f64f0f34217e9199fc7314abf995d
+URL:           http://search.cpan.org/dist/File-ShareDir-Install/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires: perl(Class::Inspector) >= 1.12
+BuildRequires: perl(Params::Util) >= 0.07
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Install shared files.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{perl_vendorlib}/auto/share/dist
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/File/ShareDir/*.pm
+%{perl_vendorlib}/auto/share
+%{_mandir}/man3/*
This page took 0.058161 seconds and 4 git commands to generate.