|
@@ -1,17 +1,20 @@
|
|
Summary: CherryTree - note taking application
|
|
Summary: CherryTree - note taking application
|
|
Summary(ja): CherryTree - ノート作成アプリケーション
|
|
Summary(ja): CherryTree - ノート作成アプリケーション
|
|
Name: cherrytree
|
|
Name: cherrytree
|
|
-Version: 0.10
|
|
|
|
|
|
+Version: 0.11
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
Group: Applications/Productivity
|
|
Group: Applications/Productivity
|
|
-URL: http://open.vitaminap.it/en/cherrytree.htm
|
|
|
|
|
|
+URL: http://www.giuspen.com/cherrytree/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
+Patch0: setup.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
BuildRequires: gettext
|
|
BuildRequires: gettext
|
|
-BuildRequires: ImageMagick
|
|
|
|
|
|
+BuildRequires: python
|
|
|
|
+BuildRequires: python-devel
|
|
Requires: cairo
|
|
Requires: cairo
|
|
Requires: pango
|
|
Requires: pango
|
|
Requires: python
|
|
Requires: python
|
|
@@ -41,43 +44,24 @@ Features:
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1
|
|
|
|
+chmod +x setup.py
|
|
|
|
+
|
|
|
|
+sed -i 's|Comment=Hierarchical Note Taking|Comment=Hierarchical Note Taking\nComment[ja]=階層型ノートの作成|g' \
|
|
|
|
+ linux/cherrytree.desktop
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
|
|
-%__install -dm 755 %{buildroot}%{_bindir}
|
|
|
|
-%__install -m 755 %{name} %{buildroot}%{_bindir}
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
-cp -R glade %{buildroot}%{_datadir}/%{name}
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/mime-info
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/mime/packages/
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/application-registry
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/applications
|
|
|
|
-%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
|
|
|
-cp -R modules %{buildroot}%{_datadir}/%{name}/modules
|
|
|
|
-%__install -m 644 glade/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
-convert %{buildroot}%{_datadir}/pixmaps/%{name}.png -resize 48x48 %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
-
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
|
-cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
-[Desktop Entry]
|
|
|
|
-Encoding=UTF-8
|
|
|
|
-Name=CherryTree
|
|
|
|
-Comment=Tree-way Notes Keeper
|
|
|
|
-Comment[ja]=階層型ノートの作成
|
|
|
|
-Exec=cherrytree %f
|
|
|
|
-Icon=cherrytree
|
|
|
|
-MimeType=text/cherrytree-ctd;
|
|
|
|
-Terminal=false
|
|
|
|
-Type=Application
|
|
|
|
-StartupNotify=true
|
|
|
|
-Categories=GNOME;GTK;Office;
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
-#remove
|
|
|
|
-rm -f %{buildroot}/%{_datadir}/%{name}/glade/*.desktop
|
|
|
|
-rm -f %{buildroot}/%{_datadir}/%{name}/glade/README
|
|
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+%{__python} setup.py install --prefix $RPM_BUILD_ROOT%{_prefix}
|
|
|
|
+
|
|
|
|
+desktop-file-install --vendor="" \
|
|
|
|
+ --add-category="Utility" \
|
|
|
|
+ --dir %{buildroot}%_datadir/applications \
|
|
|
|
+ %{buildroot}%_datadir/applications/%{name}.desktop
|
|
|
|
+
|
|
|
|
+%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -91,18 +75,31 @@ update-desktop-database %{_datadir}/applications
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
-%files
|
|
|
|
|
|
+%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%doc license
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}
|
|
-%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
+%{_datadir}/application-registry/
|
|
|
|
+%{_datadir}/applications/
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/%{name}
|
|
-%{_datadir}/application-registry
|
|
|
|
-%{_datadir}/mime-info
|
|
|
|
-%{_datadir}/mime/packages
|
|
|
|
-%{_datadir}/applications/*.desktop
|
|
|
|
|
|
+%{_datadir}/icons/
|
|
|
|
+%{_datadir}/mime/packages/
|
|
|
|
+%{_datadir}/mime-info/
|
|
|
|
+%{_libdir}/python2.?/site-packages/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Jul 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.11-1
|
|
|
|
+- new upstream release
|
|
|
|
+- changed URL
|
|
|
|
+- added patch0 to work around install error
|
|
|
|
+- dropt BuildRequires: ImageMagick
|
|
|
|
+- added BuildRequires: python, python-devel
|
|
|
|
+- modified install process
|
|
|
|
+ - use setup.py in source
|
|
|
|
+ - modified %%files
|
|
|
|
+ - changed category to 'Utility'
|
|
|
|
+
|
|
* Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1
|
|
* Sun Jun 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.10-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- added Requires: cairo, pango
|
|
- added Requires: cairo, pango
|