%define name perl-URPM %define real_name URPM %define version 0.04 %define release 1mdk %{expand:%%define rpm_version %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' rpm)} Packager: François Pons Summary: URPM module for perl Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Distribution: Mandrake Linux Source: %{real_name}-%{version}.tar.bz2 Prefix: %{_prefix} BuildRequires: perl-devel rpm-devel >= 4.0.3 bzip2-devel gcc Requires: perl >= 5.601 rpm >= %{rpm_version} bzip2 >= 1.0 BuildRoot: %{_tmppath}/%{name}-buildroot %description The URPM module allows you to manipulate rpm files, rpm header files and hdlist files and manage them in memory. %prep %setup -q -n %{real_name}-%{version} %build %{__perl} Makefile.PL PREFIX=%{prefix} make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{prefix} make test %install rm -rf $RPM_BUILD_ROOT %makeinstall PREFIX=$RPM_BUILD_ROOT%{prefix} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README #%{_libdir}/perl5/man/man3 %{perl_sitearch}/URPM.pm %{perl_sitearch}/URPM %{perl_sitearch}/auto/URPM %changelog * Tue Jun 11 2002 François Pons 0.04-1mdk - added Resolve.pm file. * Thu Jun 6 2002 François Pons 0.03-2mdk - fixed incomplete compare_pkg not taking into account score of arch. * Thu Jun 6 2002 François Pons 0.03-1mdk - added more flag method to URPM::Package - avoid garbage output when reading hdlist archive. - moved id internal reference to bit field of flag. * Wed Jun 5 2002 François Pons 0.02-3mdk - removed log on opening/closing rpmdb. - modified reading of archive to avoid incomplete read. * Wed Jun 5 2002 François Pons 0.02-2mdk - added log on opening/closing rpmdb. * Mon Jun 3 2002 François Pons 0.02-1mdk - new version with extended parameters list for URPM::Build. - fixed code to be -w clean. * Fri May 31 2002 François Pons 0.01-1mdk - initial revision.