forked from pool/perl-Encode-Detect
Accepting request 37152 from devel:languages:perl
Copy from devel:languages:perl/perl-Encode-Detect based on submit request 37152 from user computersalat OBS-URL: https://build.opensuse.org/request/show/37152 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Encode-Detect?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
Encode-Detect-1.01.tar.bz2
Normal file
3
Encode-Detect-1.01.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c4afa6945df0ce860526226f3255afb85f409a003f7348ec6e1e191e0f2b7e9c
|
||||
size 136022
|
||||
16
perl-Encode-Detect.changes
Normal file
16
perl-Encode-Detect.changes
Normal file
@@ -0,0 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 6 22:01:14 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- cleanup spec
|
||||
o added Header
|
||||
o sort TAGS
|
||||
o added Url
|
||||
o build/install with ./Build
|
||||
o moved changelog to changes file
|
||||
- added perl-macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 28 14:20:03 UTC 2008 - jfunk@funktronics.ca
|
||||
|
||||
- Initial release 1.01
|
||||
|
||||
77
perl-Encode-Detect.spec
Normal file
77
perl-Encode-Detect.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package perl-Encode-Detect (Version 1.01)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Encode-Detect
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
Summary: An Encode::Encoding subclass that detects the encoding of data
|
||||
Version: 1.01
|
||||
Release: 1
|
||||
License: Mozilla Public License 1.1
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Encode-Detect
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
BuildRequires: perl(Module::Build)
|
||||
Requires: perl = %{perl_version}
|
||||
|
||||
%description
|
||||
This Perl module is an Encode::Encoding subclass that uses
|
||||
Encode::Detect::Detector to determine the charset of the input data and then
|
||||
decodes it using the encoder of the detected charset.
|
||||
|
||||
It is similar to Encode::Guess, but does not require the configuration of a set
|
||||
of expected encodings. Like Encode::Guess, it only supports decoding--it cannot
|
||||
encode.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
John Gardiner Myers <jgmyers@proofpoint.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
%{__perl} Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
||||
./Build
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-, root, root)
|
||||
%doc Changes LICENSE
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user