]>
Commit | Line | Data |
---|---|---|
1 | Summary: - | |
2 | Name: - | |
3 | Version: - | |
4 | Release: - | |
5 | License: LGPL (GPL/GPL v2/GPL v2+... choose one) | |
6 | Group: X11/Applications | |
7 | Source0: - | |
8 | # Source0-md5: - | |
9 | #Patch0: | |
10 | #URL: http:// | |
11 | BuildRequires: rpmbuild(macros) >= 1.596 | |
12 | Requires: desktop-file-utils | |
13 | Requires: gtk-update-icon-cache | |
14 | Requires: hicolor-icon-theme | |
15 | Requires: shared-mime-info | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | ||
20 | %prep | |
21 | %setup -q | |
22 | #%patch0 -p1 | |
23 | ||
24 | %build | |
25 | %configure | |
26 | %{__make} | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | ||
31 | %{__make} install \ | |
32 | DESTDIR=$RPM_BUILD_ROOT | |
33 | ||
34 | %find_lang %{name}.lang | |
35 | ||
36 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %post | |
42 | %update_desktop_database | |
43 | %update_icon_cache hicolor | |
44 | %update_mime_database | |
45 | ||
46 | # Compile GSettings schemas | |
47 | # requires: glib2 >= 1:2.26.0 | |
48 | %glib_compile_schemas | |
49 | ||
50 | %postun | |
51 | %update_desktop_database | |
52 | %update_icon_cache hicolor | |
53 | %update_mime_database | |
54 | ||
55 | # Compile GSettings schemas | |
56 | # requires: glib2 >= 1:2.26.0 | |
57 | %glib_compile_schemas | |
58 | ||
59 | %files -f %{name}.lang | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog NEWS README TODO | |
62 | %attr(755,root,root) %{_bindir}/%{name} | |
63 | %{_datadir}/%{name} | |
64 | %{_desktopdir}/%{name}.desktop | |
65 | %{_pixmapsdir}/%{name}.* | |
66 | %{_mandir}/man1/%{name}.1* |