mirror of
https://abf.rosa.ru/djam/cherrytree.git
synced 2025-02-23 14:22:47 +00:00
LOG Spec cleanup
This commit is contained in:
parent
7931430cb0
commit
59f266c604
2 changed files with 17 additions and 50 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,4 +1,2 @@
|
||||||
removed_sources:
|
|
||||||
cherrytree-0.25.4.tar.gz: bd87be5631a084587548f8d096245eb99edaf3b4
|
|
||||||
sources:
|
sources:
|
||||||
cherrytree-0.29.tar.xz: 82ca79d89d4310318721fa01315f50d51d1e10f0
|
cherrytree-0.29.tar.xz: 82ca79d89d4310318721fa01315f50d51d1e10f0
|
||||||
|
|
|
@ -1,46 +1,34 @@
|
||||||
# get python version
|
Name: cherrytree
|
||||||
%global py_ver %(if [ -f "%{__python}" ]; then %{__python} -c "import sys; sys.stdout.write(sys.version[:3])"; else echo 0; fi;)
|
Version: 0.29
|
||||||
|
Release: 1
|
||||||
|
Summary: Hierarchical note taking application
|
||||||
|
|
||||||
Name: cherrytree
|
Group: Office
|
||||||
Version: 0.29
|
License: GPLv2+
|
||||||
Release: 1%{?dist}
|
URL: http://www.giuspen.com/cherrytree/
|
||||||
Summary: Hierarchical note taking application
|
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
Group: Office
|
BuildArch: noarch
|
||||||
License: GPLv2+
|
BuildRequires: pkgconfig(python)
|
||||||
URL: http://www.giuspen.com/cherrytree/
|
BuildRequires: gettext
|
||||||
Source0: http://www.giuspen.com/software/%{name}-%{version}.tar.xz
|
Requires: pygtk2
|
||||||
|
Requires: python-gobject
|
||||||
BuildArch: noarch
|
Requires: python-gtksourceview
|
||||||
BuildRequires: pkgconfig(python)
|
Requires: p7zip
|
||||||
BuildRequires: desktop-file-utils
|
|
||||||
BuildRequires: gettext
|
|
||||||
Requires: python(abi) = %{py_ver}
|
|
||||||
Requires: pygtk2
|
|
||||||
Requires: python-gobject
|
|
||||||
Requires: python-gtksourceview
|
|
||||||
Requires: p7zip
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CherryTree is a hierarchical note taking application, featuring rich text and
|
CherryTree is a hierarchical note taking application, featuring rich text and
|
||||||
syntax highlighting, storing all the data (including images) in a single XML
|
syntax highlighting, storing all the data (including images) in a single XML
|
||||||
file with extension ".ctd".
|
file with extension ".ctd".
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%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
|
%build
|
||||||
%{__python} setup.py build
|
python setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install -O1 --root %{buildroot}
|
python setup.py install -O1 --root %{buildroot}
|
||||||
|
|
||||||
# don't include useless egg
|
# don't include useless egg
|
||||||
rm -rf %{buildroot}%{python_sitelib}
|
rm -rf %{buildroot}%{python_sitelib}
|
||||||
|
@ -51,24 +39,6 @@ rm -rf %{buildroot}%{_datadir}/mime-info/
|
||||||
|
|
||||||
%find_lang %{name}
|
%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
|
%files -f %{name}.lang
|
||||||
%doc changelog.txt license.txt
|
%doc changelog.txt license.txt
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
@ -78,7 +48,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
%{_datadir}/mime/packages/%{name}.xml
|
%{_datadir}/mime/packages/%{name}.xml
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jan 10 2013 Eugene Budanov <eugene.budanov@rosalab.ru>
|
* Thu Jan 10 2013 Eugene Budanov <eugene.budanov@rosalab.ru>
|
||||||
- Update to version 0.29
|
- Update to version 0.29
|
||||||
|
|
Loading…
Add table
Reference in a new issue