-
Notifications
You must be signed in to change notification settings - Fork 1
/
Send2Trash3k.spec
51 lines (35 loc) · 1.17 KB
/
Send2Trash3k.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Name: Send2Trash3k
Version: 1.2.0
Release: 1%{?dist}
Summary: Send files to trash across platforms
Group: Development/Languages
License: Redistributable, no modification permitted
URL: http://pypi.python.org/pypi/Send2Trash3k
Source0: http://pypi.python.org/packages/source/S/Send2Trash3k/Send2Trash3k-1.2.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
Send2Trash is a small package that sends files to the Trash (or
Recycle Bin) *natively* and on *all platforms*. On OS X, it uses
native ``FSMoveObjectToTrashSync`` Cocoa calls, on Windows, it uses
native (and ugly) ``SHFileOperation`` win32 calls. On other platforms,
it follows the trash specifications from freedesktop.org.
%prep
%setup -q
%build
%{__python3} setup.py build
%install
rm -rf %{buildroot}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README CHANGES
# For noarch packages: sitelib
%{python3_sitelib}/*
%changelog
* Fri Jun 17 2011 Adam Huffman <[email protected]> - 1.2.0-1
- Initial version