summaryrefslogtreecommitdiff
path: root/filesorter.spec
blob: 77557998f49edc94c1ee2e2e0fd5e3e2504cd4f1 (plain)
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
51
Name:           filesorter
Version:        0.0.1
Release:        1%{?dist}
Summary:        A filesorter using python impl.

License:        MIT
URL:          	https://example.com 

# None // the online source code url, not the local path
Source0:       %{name}-%{version}.tar.gz 


Requires:       python3
BuildArch:	noarch

%description
A filesorter using python.
using filesorter -[path1, path2] cmd to start.


%prep
echo "setup begin!\n"
%setup -q
echo "setup end!\n"

%build
echo "buildstart"
echo "buildend"


%install
echo "install start!"
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/usr/lib/%{name}

cp %{name} %{buildroot}%{_bindir}/%{name}
chmod +x %{buildroot}%{_bindir}/%{name}
install  -m 0644 %{name}.py %{buildroot}/usr/lib/%{name}/
alias main="filesorter"
echo "Install Done!\n"


%files
%license LICENSE
%{_bindir}/%{name}
/usr/lib/%{name}/*.*
# /usr/lib/%{name}/__pycache__/*.*

%changelog
* Mon Feb 10 2025 Youser <1328699220@qq.com>
- Init