Package init

This commit is contained in:
HukunaMatata 2020-01-13 19:52:07 +08:00
parent 10bc2a8456
commit 81f6db1869
3 changed files with 66 additions and 36 deletions

BIN
File-MimeInfo-0.29.tar.gz Normal file

Binary file not shown.

View File

@ -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/)

66
perl-File-MimeInfo.spec Normal file
View File

@ -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 <shenkai8@huawei.com> - 0.29-1
- Package init