SPECS: perl-RPM4.spec (NEW) - new

glen glen at pld-linux.org
Sat Mar 17 12:16:39 CET 2007


Author: glen                         Date: Sat Mar 17 11:16:39 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-RPM4.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-RPM4.spec
diff -u /dev/null SPECS/perl-RPM4.spec:1.1
--- /dev/null	Sat Mar 17 12:16:39 2007
+++ SPECS/perl-RPM4.spec	Sat Mar 17 12:16:33 2007
@@ -0,0 +1,91 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	RPM4
+Summary:	RPM4 - perl module to access and manipulate RPM files
+Name:		perl-RPM4
+Version:	0.20
+Release:	0.1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/N/NA/NANARDON/RPM4/RPM4-%{version}.tar.gz
+# Source0-md5:	357df83b9a8cafe979dcb33eb1603e50
+URL:		http://search.cpan.org/dist/RPM4/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Digest-SHA1
+#BuildRequires:	perl(MDV::Packdrakeng)
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module allow to use API functions from rpmlib, directly or trough
+perl objects.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+# those tests need root or expect MDV::Packdrakeng
+mv t/09hdlist.t{,no}
+mv t/11media.t{,no}
+mv t/04spec.t{,.no}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{_bindir}/hrpmreb
+%{_bindir}/rpm_produced
+%{_bindir}/rpmresign
+%{perl_vendorarch}/RPM4.pm
+%dir %{perl_vendorarch}/RPM4
+%{perl_vendorarch}/RPM4/Header.pm
+%dir %{perl_vendorarch}/RPM4/Header
+%{perl_vendorarch}/RPM4/Header/Changelogs.pm
+%{perl_vendorarch}/RPM4/Header/Dependencies.pm
+%{perl_vendorarch}/RPM4/Header/Files.pm
+%{perl_vendorarch}/RPM4/Index.pm
+%{perl_vendorarch}/RPM4/Media.pm
+%{perl_vendorarch}/RPM4/Sign.pm
+%{perl_vendorarch}/RPM4/Spec.pm
+%{perl_vendorarch}/RPM4/Transaction.pm
+%dir %{perl_vendorarch}/RPM4/Transaction
+%{perl_vendorarch}/RPM4/Transaction/Problems.pm
+%{perl_vendorarch}/auto/RPM4/RPM4.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/RPM4/RPM4.so
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/03/17 11:16:33  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list