diff --git a/File-MimeInfo-0.29.tar.gz b/File-MimeInfo-0.29.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..20be7cd9a630ea7204df8f739e45837e6657457a Binary files /dev/null and b/File-MimeInfo-0.29.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index fc5827336b160771cb72cf85df60b97b6028a0dd..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-File-MimeInfo - -#### Description -Determine file type and open application - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/perl-File-MimeInfo.spec b/perl-File-MimeInfo.spec new file mode 100644 index 0000000000000000000000000000000000000000..42fb6e1e9a3a55a0ce3f7803e89515ed8d1fce2d --- /dev/null +++ b/perl-File-MimeInfo.spec @@ -0,0 +1,66 @@ +#%global debug_package %{nil} + +Name: perl-File-MimeInfo +Version: 0.29 +Release: 1%{?dist} +Summary: Implement the freedesktop specification + +License: GPL+ or Artistic +URL: https://metacpan.org/release/File-MimeInfo +Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-%{version}.tar.gz + +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::BaseDir) +BuildRequires: perl(File::DesktopEntry) +BuildRequires: shared-mime-info + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(File::DesktopEntry) >= 0.04 +Requires: perl(File::BaseDir) >= 0.03 + +%description +This module can be used to determine the mime type of a file; it's a replacement +for File::MMagic trying to implement the freedesktop specification for using the +shared mime-info database. The package comes with a script called mimetype that +can be used as a file(1) work-alike. + +%package help +Summary: Help documents for perl-File-MimeInfo +%description help +The help documents for perl-File-MimeInfo + +%prep +%setup -q -n File-MimeInfo-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +%make_install DESTDIR=$RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root) +%{_bindir}/mimeopen +%{_bindir}/mimetype +%{perl_vendorlib}/* +/usr/lib64/perl5/perllocal.pod +/usr/lib64/perl5/vendor_perl/auto/File/MimeInfo/.packlist + +%files help +%defattr(-,root,root) +%doc Changes +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Tue Jan 7 2020 shenkai - 0.29-1 +- Package init +