From 388402e5b33eab164cfca2d3de1ca83f7c7753b4ea6a46aaf359dee9e833d426 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 18 Jan 2014 07:18:57 +0000 Subject: [PATCH] - use new perl template OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-Map8?expand=0&rev=19 --- perl-Unicode-Map8.changes | 5 ++++ perl-Unicode-Map8.spec | 61 ++++++++++++++++----------------------- 2 files changed, 30 insertions(+), 36 deletions(-) diff --git a/perl-Unicode-Map8.changes b/perl-Unicode-Map8.changes index f7f60b2..5f6ab20 100644 --- a/perl-Unicode-Map8.changes +++ b/perl-Unicode-Map8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 18 07:18:32 UTC 2014 - coolo@suse.com + +- use new perl template + ------------------------------------------------------------------- Fri Nov 18 11:08:40 UTC 2011 - coolo@suse.com diff --git a/perl-Unicode-Map8.spec b/perl-Unicode-Map8.spec index e4f4856..619aa93 100644 --- a/perl-Unicode-Map8.spec +++ b/perl-Unicode-Map8.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Unicode-Map8 # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,25 +15,26 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Unicode-Map8 -BuildRequires: perl-Unicode-String -BuildRequires: perl-macros Version: 0.13 -Release: 6 -Requires: perl-Unicode-String -AutoReqProv: on -Group: Development/Libraries/Perl -License: Artistic -Url: http://cpan.org/modules/by-module/Unicode/ +Release: 0 +%define cpan_name Unicode-Map8 Summary: Mapping table between 8-bit chars and Unicode -Source: Unicode-Map8-%{version}.tar.gz +License: GPL-1.0+ or Artistic-1.0 +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Unicode-Map8/ +Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Unicode::String) >= 2 +Requires: perl(Unicode::String) >= 2 +%{perl_requires} +# MANUAL BEGIN Patch0: Unicode-Map8-%{version}-type.diff Patch1: Unicode-Map8-%{version}-declaration.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} +# MANUAL END %description The Unicode::Map8 class implements efficient mapping tables between @@ -41,37 +42,25 @@ The Unicode::Map8 class implements efficient mapping tables between are efficient both in terms of space allocated and translation speed. The 16-bit strings are assumed to use network byte order. - - -Authors: --------- - Gisle Aas - %prep %setup -n Unicode-Map8-%{version} %patch0 %patch1 %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make %{?_smp_mflags} -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc %{_mandir}/man?/* -%doc README Changes rfc1345.txt -%{perl_vendorarch}/Unicode/Map8.pm -%{perl_vendorarch}/Unicode/Map8 -%{perl_vendorarch}/auto/Unicode/Map8 -%{_bindir}/* +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes diff_iso make_rfc1345_maps make_unicd_maps map8_bin2txt map8_txt2bin README rfc1345.txt umap %changelog