74 lines
2.5 KiB
RPMSpec
74 lines
2.5 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Unicode-MapUTF8
|
|
Version: 1.14
|
|
Release: 1mamba
|
|
Summary: Routines for converting to and from UTF8 and other encodings
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://www.cpan.org/authors/id/S/SN/SNOWHARE/Unicode-MapUTF8-%{version}.tar.gz
|
|
License: Artistic, GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl-Unicode-Jcode
|
|
BuildRequires: perl-Unicode-Map
|
|
BuildRequires: perl-Unicode-Map8
|
|
BuildRequires: perl-Unicode-String
|
|
## AUTOBUILDREQ-END
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Provides an adapter layer between core routines for converting to and from UTF8 and other encodings. In essence, a way to give multiple existing Unicode modules a single common interface so you don't have to know the underlaying implementations to do simple UTF8 to-from other character set encoding conversions. As such, it wraps the Unicode::String, Unicode::Map8, Unicode::Map and Jcode modules in a standardized and simple API
|
|
|
|
%prep
|
|
%setup -q -n Unicode-MapUTF8-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make
|
|
#./Build test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot}%{_prefix} \
|
|
-type f \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \;
|
|
|
|
find %{buildroot} \( -type f -or -type l \) | \
|
|
sed "s@%{buildroot}@@g;s@.*/man./.*@&.gz@g" | \
|
|
sort -u > .packlist
|
|
find %{buildroot} -type d | \
|
|
grep "%{perl_sitearch}/" | \
|
|
sed "s@%{buildroot}@@g;s@.*@%dir &@g" >> .packlist
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Fri Oct 23 2020 Automatic Build System <autodist@mambasoft.it> 1.14-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11-5mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sat Jul 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11-4mamba
|
|
- specfile updated
|
|
|
|
* Wed Oct 11 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.11-3qilnx
|
|
- fixed licenses
|
|
|
|
* Tue Jan 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.11-2qilnx
|
|
- perllocal.pod and .packlist files removed
|
|
|
|
* Thu Dec 29 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.11-1qilnx
|
|
- package created by autospec
|