Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-M
perl-MSDOS-Attrib
perl-MSDOS-Attrib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-MSDOS-Attrib.spec of Package perl-MSDOS-Attrib
# # spec file for package perl-MSDOS-Attrib # # Copyright (c) 2015 SUSE LINUX 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/ # Name: perl-MSDOS-Attrib Version: 1.06 Release: 0 %define cpan_name MSDOS-Attrib Summary: Get or set MS-DOS file attributes License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/MSDOS-Attrib/ Source0: http://www.cpan.org/authors/id/C/CJ/CJM/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(ExtUtils::CBuilder) >= 0.15 BuildRequires: perl(ExtUtils::ParseXS) BuildRequires: perl(Module::Build) >= 0.280800 %{perl_requires} %description MSDOS::Attrib provides access to MS-DOS file attributes. While the read-only attribute can be handled by 'chmod' and 'stat', the hidden, system, and archive attributes cannot. * $attribs = get_attribs($path) Returns the attributes of '$path', or the empty string if '$path' does not exist. Attributes are returned as a five-character string in this format: "RHSAD". Each letter is replaced by an underscore ('_') if the file does not have the corresponding attribute. (This is the same format as a 4DOS directory listing.) The attributes are: R The file is read-only (not writable) H The file is hidden (does not appear in directory listings) S The file is a system file (does not appear in directory listings) A The file needs to be archived (it has changed since last backup) D The file is a directory * $count = set_attribs($attribs, $path1, [$path2, ...]) Sets the attributes of '$path1', '$path2', etc. You can either specify the complete set of attributes, or add and subtract attributes by using '+' and '-'. The case and order of the attributes is not important. For example, '-s+ra' will remove the system attribute and add the read-only and archive attributes. You should not use whitespace between attributes, although underscores are OK. See 'get_attribs' for an explanation of the attribute values. You cannot change the directory attribute; if you specify it, it is ignored. Returns the number of files successfully changed. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Build.PL installdirs=vendor optimize="%{optflags}" ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes LICENSE README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor