source: projects/specs/trunk/k/keepnote/keepnote-vl.spec @ 4764

Revision 4764, 4.4 KB checked in by kudoh, 13 years ago (diff)

%{!?python_sitelib: %define python_sitelib %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Summary: A note taking application
Summary(ja): ノート作成アプリケーション
Name: keepnote
Version: 0.7.5
Release: 1%{?_dist_release}
Group: Applications/Editors?
License: GPLv2+
URL:  http://rasm.ods.org/keepnote/
Source0: %{name}/%{name}-%{version}.tar.gz
#Source1: ja_JP.UTF8.po

Patch1: Makefile_gettetxt.patch

BuildRoot?: %{_tmppath}/%{name}-%{version}-root
BuildArch?: noarch

BuildRequires?: python-devel
BuildRequires?: python-setuptools
BuildRequires?: gtkspell-devel
BuildRequires?: desktop-file-utils
# for Japanese language file build
BuildRequires?: gettext
BuildRequires?: intltool

Requires: pygtk2
Requires: gnome-python-extras

%description
KeepNote? is a note taking application that works on Windows, Linux, and Mac OS X.
With KeepNote?, you can store your class notes, TODO lists, research notes,
journal entries, paper outlines, etc in a simple notebook hierarchy with
rich-text formatting, images, and more. Using full-text search, you can
retrieve any note for later reference.

%description -l ja
KeepNote? は Windows、Linux、Mac OS X で動作するノート作成アプリケーションです。
KeepNote? では、あなたの分類ノート、TODO リスト、研究ノート、
日記のエントリ、新聞の概略などを階層化したリッチテキストフォーマットや
画像付きなどのシンプルなノートとして保存することができます。
フルテキスト検索を使い、後で参照するために取ったメモを検索できます。

%prep
%setup -q
%patch1 -p1

#%{cp} -f %{SOURCE1} gettext/ja_JP.UTF8.po
#make -f Makefile.gettext make LANG=ja_JP.UTF8
#sed -i "s/Categories=Office/Categories?=Office;/g" desktop/keepnote.desktop

%build
python setup.py build

%install
rm -rf %{buildroot}
python setup.py install --skip-build --root %{buildroot}

desktop-file-install --vendor="" \

--delete-original \
--add-category="Office" \
--dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%clean
rm -rf %{buildroot}

%post

touch --no-create %{_datadir}/icons/hicolor %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor update-desktop-database > /dev/null 2>&1
:
:
:

%postun

touch --no-create %{_datadir}/icons/hicolor %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor update-desktop-database > /dev/null 2>&1
:
:
:

%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/keepnote.png
%{python_sitelib}/*

%changelog

  • Mon Sep 12 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.7.5-1
  • new upstream release
  • Thu Jul 09 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.7.4-1
  • new upstream release
  • Wed May 18 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.7.2-1
  • new upstream release
  • dropt source1
    • merged upstream
  • Tue Jan 25 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.6.8-1
  • new upstream release
  • Tue Dec 28 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.7-1
  • new upstream release
  • re-added source1
  • fixed .desktop file a little
  • used python macro
  • Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.5-1
  • new upstream release
  • added BuildRequires?: gettext, intltool
  • Sun Aug 1 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.4-1
  • new upstream release
  • Wed Jul 7 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.3-1
  • new upstream release
  • dropt source1
    • merged upstream
  • Thu May 6 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.2-2
  • updated Source1
  • fixed desktop-file-install --add-category section
  • Tue Feb 23 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.2-1
  • new upstream release
  • updated Source1 and Patch1
  • Sat Feb 13 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.1-2
  • updated Source1
  • Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.6.1-1
  • new upstream release
  • Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@…> - 0.6-2
  • added BuildRequires?: gtkspell-devel
  • updated Source1
  • Sat Nov 21 2009 Toshiharu Kudoh <toshi.kd2@…> - 0.6-1
  • initial build for VineSeed
  • Fri Jul 31 2009 Texstar <texstar@…> 0.5.3-1pclos2009
  • create

 file:///home/toshi/rpm/SOURCES/keepnote/keepnote-0.7.2/desktop/keepnote.desktop

Line 
1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3Summary:        A note taking application
4Summary(ja):    ノート作成アプリケーション
5Name:           keepnote
6Version:        0.7.5
7Release:        1%{?_dist_release}
8Group:          Applications/Editors
9License:        GPLv2+
10URL:            http://rasm.ods.org/keepnote/
11Source0:        %{name}/%{name}-%{version}.tar.gz
12#Source1:        ja_JP.UTF8.po
13
14Patch1:         Makefile_gettetxt.patch
15
16BuildRoot:      %{_tmppath}/%{name}-%{version}-root
17BuildArch:      noarch
18
19BuildRequires:  python-devel
20BuildRequires:  python-setuptools
21BuildRequires:  gtkspell-devel
22BuildRequires:  desktop-file-utils
23# for Japanese language file build
24BuildRequires:  gettext
25BuildRequires:  intltool
26
27Requires:       pygtk2
28Requires:       gnome-python-extras
29
30%description
31KeepNote is a note taking application that works on Windows, Linux, and Mac OS X.
32With KeepNote, you can store your class notes, TODO lists, research notes,
33journal entries, paper outlines, etc in a simple notebook hierarchy with
34rich-text formatting, images, and more. Using full-text search, you can
35retrieve any note for later reference.
36
37%description -l ja     
38KeepNote は Windows、Linux、Mac OS X で動作するノート作成アプリケーションです。
39KeepNote では、あなたの分類ノート、TODO リスト、研究ノート、
40日記のエントリ、新聞の概略などを階層化したリッチテキストフォーマットや
41画像付きなどのシンプルなノートとして保存することができます。
42フルテキスト検索を使い、後で参照するために取ったメモを検索できます。
43
44%prep
45%setup -q
46%patch1 -p1
47
48#%{__cp} -f %{SOURCE1} gettext/ja_JP.UTF8.po
49#make -f Makefile.gettext make LANG=ja_JP.UTF8
50#sed -i "s/Categories=Office/Categories=Office;/g" desktop/keepnote.desktop
51
52%build
53python setup.py build
54
55
56%install
57rm -rf %{buildroot}
58python setup.py install --skip-build --root %{buildroot}
59
60desktop-file-install --vendor="" \
61     --delete-original \
62     --add-category="Office" \
63     --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
64
65%clean
66rm -rf %{buildroot}
67
68%post
69touch --no-create %{_datadir}/icons/hicolor || :
70%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
71update-desktop-database > /dev/null 2>&1 || :
72
73%postun
74touch --no-create %{_datadir}/icons/hicolor || :
75%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
76update-desktop-database > /dev/null 2>&1 || :
77
78
79%files
80%defattr(-,root,root,-)
81%doc LICENSE README
82%{_bindir}/%{name}
83%{_datadir}/applications/%{name}.desktop
84%{_datadir}/icons/hicolor/48x48/apps/keepnote.png
85%{python_sitelib}/*
86
87
88%changelog
89* Mon Sep 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.5-1
90- new upstream release
91
92* Thu Jul 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.4-1
93- new upstream release
94
95* Wed May 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
96- new upstream release
97- dropt source1
98  - merged upstream
99
100* Tue Jan 25 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.8-1
101- new upstream release
102
103* Tue Dec 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.7-1
104- new upstream release
105- re-added source1
106- fixed .desktop file a little
107- used python macro
108
109* Sat Oct 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.5-1
110- new upstream release
111- added BuildRequires:  gettext, intltool
112
113* Sun Aug 1 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
114- new upstream release
115
116* Wed Jul 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-1
117- new upstream release
118- dropt source1
119  - merged upstream
120
121* Thu May 6 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.2-2
122- updated Source1
123- fixed desktop-file-install --add-category section
124
125* Tue Feb 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.2-1
126- new upstream release
127- updated Source1 and Patch1
128
129* Sat Feb 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-2
130- updated Source1
131
132* Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.1-1
133- new upstream release
134
135* Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6-2
136- added BuildRequires:  gtkspell-devel
137- updated Source1
138
139* Sat Nov 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6-1
140- initial build for VineSeed
141
142* Fri Jul 31 2009 Texstar <texstar@gmail.com> 0.5.3-1pclos2009
143- create
144file:///home/toshi/rpm/SOURCES/keepnote/keepnote-0.7.2/desktop/keepnote.desktop
Note: See TracBrowser for help on using the repository browser.