mirror of
https://abf.rosa.ru/djam/cherrytree.git
synced 2025-02-23 22:32:48 +00:00
update cherrytree to 0.29
This commit is contained in:
parent
0ee3f58c87
commit
3614f1eff6
1 changed files with 0 additions and 95 deletions
|
@ -1,95 +0,0 @@
|
||||||
# get python version
|
|
||||||
%global py_ver %(if [ -f "%{__python}" ]; then %{__python} -c "import sys; sys.stdout.write(sys.version[:3])"; else echo 0; fi;)
|
|
||||||
|
|
||||||
Name: cherrytree
|
|
||||||
Version: 0.29
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Hierarchical note taking application
|
|
||||||
|
|
||||||
Group: Office
|
|
||||||
License: GPLv2+
|
|
||||||
URL: http://www.giuspen.com/cherrytree/
|
|
||||||
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: pkgconfig(python)
|
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
BuildRequires: gettext
|
|
||||||
Requires: python(abi) = %{py_ver}
|
|
||||||
Requires: pygtk2
|
|
||||||
Requires: python-gobject
|
|
||||||
Requires: python-gtksourceview
|
|
||||||
Requires: p7zip
|
|
||||||
|
|
||||||
%description
|
|
||||||
CherryTree is a hierarchical note taking application, featuring rich text and
|
|
||||||
syntax highlighting, storing all the data (including images) in a single XML
|
|
||||||
file with extension ".ctd".
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
# remove shebang to make rpmlint happy
|
|
||||||
|
|
||||||
#sed '/\/usr\/bin\/env/d' modules/main.py > modules/main.py.new && \
|
|
||||||
# touch -r modules/main.py modules/main.py.new && \
|
|
||||||
# mv modules/main.py.new modules/main.py
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
|
||||||
%{__python} setup.py build
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
|
||||||
%{__python} setup.py install -O1 --root %{buildroot}
|
|
||||||
|
|
||||||
# don't include useless egg
|
|
||||||
rm -rf %{buildroot}%{python_sitelib}
|
|
||||||
|
|
||||||
# these are no longer in use
|
|
||||||
rm -rf %{buildroot}%{_datadir}/application-registry/
|
|
||||||
rm -rf %{buildroot}%{_datadir}/mime-info/
|
|
||||||
|
|
||||||
%find_lang %{name}
|
|
||||||
|
|
||||||
|
|
||||||
%post
|
|
||||||
update-desktop-database &> /dev/null || :
|
|
||||||
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
|
|
||||||
%postun
|
|
||||||
update-desktop-database &> /dev/null || :
|
|
||||||
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%posttrans
|
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
|
||||||
%doc changelog.txt license.txt
|
|
||||||
%{_bindir}/%{name}
|
|
||||||
%{_datadir}/applications/%{name}.desktop
|
|
||||||
%{_datadir}/%{name}/
|
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
||||||
%{_datadir}/mime/packages/%{name}.xml
|
|
||||||
%{_mandir}/man1/*.1*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Thu Jan 10 2013 Eugene Budanov <eugene.budanov@rosalab.ru>
|
|
||||||
- Update to version 0.29
|
|
||||||
- Updated spec file
|
|
||||||
|
|
||||||
* Wed Jan 02 2013 Eugene Budanov <eugene.budanov@rosalab.ru>
|
|
||||||
- rebuild for ROSA 2012.1
|
|
||||||
- fixed spec for errors
|
|
||||||
- fixed dependencies
|
|
||||||
|
|
||||||
* Thu Jul 19 2012 Eugene Budanov <eugene.budanov@rosalab.ru>
|
|
||||||
- Initial package ported from Fedora
|
|
||||||
- Fixed some dependecies
|
|
Loading…
Add table
Reference in a new issue