-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgtimelog.spec
51 lines (38 loc) · 1.19 KB
/
gtimelog.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
%global srcname gtimelog
Name: python-%{srcname}
Epoch: 1
Version: 0.2.3
Release: 6%{?dist}
Summary: GTimeLog is a graphical (Gtk+) application for keeping track of time.
Group: Office
License: GPL
URL: https://github.com/allotropia/gtimelog
Source0: %{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
GTimeLog is a graphical (Gtk+) application for keeping track of time.
%package -n python3-%{srcname}
Summary: GTimeLog is a graphical (Gtk+) application for keeping track of time.
BuildRequires: python3-devel
%description -n python3-%{srcname}
GTimeLog is a graphical (Gtk+) application for keeping track of time.
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}/usr/share/pixmaps
cp src/%{srcname}/%{srcname}*.png %{buildroot}/usr/share/pixmaps
mkdir -p %{buildroot}/usr/share/applications
cp %{srcname}.desktop %{buildroot}/usr/share/applications
%files -n python3-%{srcname}
%defattr(-,root,root,-)
%doc
%{_bindir}/gtimelog
%{_bindir}/rltimelog
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%{_datadir}/applications/gtimelog.desktop
%{_datadir}/pixmaps/gtimelog.png
%changelog