1 | %define name nautilus-pyextensions |
---|
2 | %define version 1.0.6 |
---|
3 | |
---|
4 | Summary: Handler of the Nautilus Python Extensions |
---|
5 | Summary(ja): Nautilus Python Extensions のハンドラ |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Group: Applications/Accessories |
---|
10 | License: GPLv2+ |
---|
11 | URL: http://open.vitaminap.it/en/nautilus_pyextensions.htm |
---|
12 | Source: http://open.vitaminap.it/software/%{name}_%{version}.tar.gz |
---|
13 | Patch0: fixed_icon.patch |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | BuildRequires: python-devel python-setuptools |
---|
18 | BuildArch: noarch |
---|
19 | |
---|
20 | Requires: nautilus-python |
---|
21 | Requires: pygtk2 |
---|
22 | Requires: audacious |
---|
23 | Requires: meld |
---|
24 | Requires: gksu |
---|
25 | Requires: zenity |
---|
26 | |
---|
27 | |
---|
28 | %description |
---|
29 | A Graphical Handler, Written in Python and PyGtk, |
---|
30 | of the Nautilus File Manager Python Extensions. |
---|
31 | |
---|
32 | %description -l ja |
---|
33 | Python と PyGtk で書かれた、Nautilus ファイルマネージャ |
---|
34 | Python Extensions のグラフィカルハンドラ。 |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q -n %{name} |
---|
38 | %patch0 -p1 |
---|
39 | |
---|
40 | %build |
---|
41 | |
---|
42 | %install |
---|
43 | rm -rf $RPM_BUILD_ROOT |
---|
44 | mkdir -p $RPM_BUILD_ROOT/%{_bindir} |
---|
45 | install -m 755 %{name} $RPM_BUILD_ROOT/%{_bindir} |
---|
46 | |
---|
47 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} |
---|
48 | cp -af default-pyextensions $RPM_BUILD_ROOT/%{_datadir}/%{name} |
---|
49 | cp -af glade $RPM_BUILD_ROOT/%{_datadir}/%{name} |
---|
50 | |
---|
51 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps |
---|
52 | install -m 644 glade/%{name}.svg $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps |
---|
53 | |
---|
54 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications |
---|
55 | install -m 755 linux/%{name}.desktop $RPM_BUILD_ROOT/%{_datadir}/applications |
---|
56 | |
---|
57 | desktop-file-install --vendor="" \ |
---|
58 | --add-category="X-Accessories" \ |
---|
59 | --dir %{buildroot}%_datadir/applications \ |
---|
60 | %{buildroot}%_datadir/applications/%{name}.desktop |
---|
61 | |
---|
62 | #remove |
---|
63 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/%{name}.desktop |
---|
64 | |
---|
65 | %clean |
---|
66 | rm -rf $RPM_BUILD_ROOT |
---|
67 | |
---|
68 | |
---|
69 | %post |
---|
70 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
71 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
72 | update-desktop-database > /dev/null 2>&1 || : |
---|
73 | |
---|
74 | %postun |
---|
75 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
76 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
77 | update-desktop-database > /dev/null 2>&1 || : |
---|
78 | |
---|
79 | |
---|
80 | %files |
---|
81 | %defattr(-,root,root,-) |
---|
82 | %{_bindir}/%{name} |
---|
83 | %{_datadir}/%{name} |
---|
84 | %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg |
---|
85 | %{_datadir}/applications/%{name}.desktop |
---|
86 | |
---|
87 | %changelog |
---|
88 | * Thu Mar 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1 |
---|
89 | - new upstream release |
---|
90 | |
---|
91 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-2 |
---|
92 | - rebuilt with python-2.6.4 |
---|
93 | |
---|
94 | * Wed Jan 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-1 |
---|
95 | - new upstream release |
---|
96 | |
---|
97 | * Wed Dec 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1 |
---|
98 | - new upstream release |
---|
99 | - changed name and updated source1 |
---|
100 | |
---|
101 | * Thu Nov 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.3-1 |
---|
102 | - initial build for VineSeed |
---|
103 | |
---|
104 | * Fri Aug 21 2009 slick50 <lxgator@gmail.com> 0.6.1-1pclos2009 |
---|
105 | - initial pkg |
---|