rpms/perl-libintl/devel perl-libintl.spec,1.3,1.4
Ralf Corsépius (corsepiu)
fedora-extras-commits at redhat.com
Sat Feb 11 04:57:00 UTC 2006
Author: corsepiu
Update of /cvs/extras/rpms/perl-libintl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv746
Modified Files:
perl-libintl.spec
Log Message:
- Rework spec (PR 180767).
Index: perl-libintl.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-libintl/devel/perl-libintl.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- perl-libintl.spec 9 Feb 2006 16:52:49 -0000 1.3
+++ perl-libintl.spec 11 Feb 2006 04:56:59 -0000 1.4
@@ -1,20 +1,16 @@
-%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
-%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
-%define real_name libintl-perl
-
Summary: Internationalization library for Perl, compatible with gettext
Name: perl-libintl
Version: 1.16
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPL
-Group: Applications/CPAN
+Group: Development/Libraries
URL: http://search.cpan.org/dist/libintl-perl/
Source: http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: perl
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: perl-libintl-perl = %{version}-%{release}
-Provides: perl(Locale::gettext_xs)
-BuildArch: noarch
+
+BuildRequires: gdbm-devel db4-devel
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The package libintl-perl is an internationalization library for Perl that
@@ -23,37 +19,44 @@
%prep
-%setup -n libintl-perl-%{version}
-
+%setup -q -n libintl-perl-%{version}
+find -type f -exec chmod -x {} \;
+find lib/Locale gettext_xs \( -name '*.pm' -o -name '*.pod' \) \
+ -exec sed -i -e '/^#! \/bin\/false/d' {} \;
%build
-%{__perl} Makefile.PL \
- PREFIX="%{buildroot}%{_prefix}" \
- INSTALLDIRS="vendor"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%install
-%{__rm} -rf %{buildroot}
-%makeinstall
+%{__rm} -rf $RPM_BUILD_ROOT
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
-### Clean up buildroot
-%{__rm} -rf %{buildroot}%{perl_archlib} \
- %{buildroot}%{perl_vendorarch}
+%check
+make test
%clean
-%{__rm} -rf %{buildroot}
+%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root, 0755)
%doc ChangeLog COPYING* NEWS README THANKS TODO
-%{perl_vendorlib}/Locale/
+%{perl_vendorlib}/Locale
+%{perl_vendorarch}/auto/Locale
%{_mandir}/man?/*
%changelog
+* Sat Feb 11 2006 Ralf Corsépius <rc040203 at freenet.de> 1.16-2
+- Rework spec (PR 180767).
+
* Thu Feb 9 2006 Matthias Saou <http://freshrpms.net/> 1.16-1
- Update to 1.16.
@@ -65,4 +68,3 @@
* Thu Nov 4 2004 Matthias Saou <http://freshrpms.net/> 1.11-1
- Initial RPM release.
-
More information about the fedora-extras-commits
mailing list