8
0
Stephan Kulow
2014-01-18 07:18:57 +00:00
committed by Git OBS Bridge
parent 1d94d3fdc7
commit 388402e5b3
2 changed files with 30 additions and 36 deletions

View File

@@ -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 Fri Nov 18 11:08:40 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Unicode-Map8 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,25 +15,26 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Unicode-Map8 Name: perl-Unicode-Map8
BuildRequires: perl-Unicode-String
BuildRequires: perl-macros
Version: 0.13 Version: 0.13
Release: 6 Release: 0
Requires: perl-Unicode-String %define cpan_name Unicode-Map8
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic
Url: http://cpan.org/modules/by-module/Unicode/
Summary: Mapping table between 8-bit chars and Unicode 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 Patch0: Unicode-Map8-%{version}-type.diff
Patch1: Unicode-Map8-%{version}-declaration.diff Patch1: Unicode-Map8-%{version}-declaration.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build # MANUAL END
%{perl_requires}
%description %description
The Unicode::Map8 class implements efficient mapping tables between 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. are efficient both in terms of space allocated and translation speed.
The 16-bit strings are assumed to use network byte order. The 16-bit strings are assumed to use network byte order.
Authors:
--------
Gisle Aas <gisle@aas.no>
%prep %prep
%setup -n Unicode-Map8-%{version} %setup -n Unicode-Map8-%{version}
%patch0 %patch0
%patch1 %patch1
%build %build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %{__make} %{?_smp_mflags}
make test
%check
%{__make} test
%install %install
rm -rf $RPM_BUILD_ROOT %perl_make_install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%clean %files -f %{name}.files
rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,755)
%doc Changes diff_iso make_rfc1345_maps make_unicd_maps map8_bin2txt map8_txt2bin README rfc1345.txt umap
%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}/*
%changelog %changelog