123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- %define name nautilus-pyextensions
- %define version 3.0
- Summary: Handler of the Nautilus Python Extensions
- Summary(ja): Nautilus Python Extensions のハンドラ
- Name: %{name}
- Version: %{version}
- Release: 1%{?_dist_release}
- Group: Applications/Accessories
- License: GPLv2+
- URL: http://www.giuspen.com/nautilus-pyextensions/
- Source: http://www.giuspen.com/software/nautilus-pyextensions/%{name}-%{version}.tar.gz
- #Source1: nautilus-pyextensions_ja.po
- #Patch0: apply_environment.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: desktop-file-utils
- BuildRequires: python-devel python-setuptools
- BuildArch: noarch
- Requires: nautilus-python
- #Requires: pygtk2
- Requires: pygobject3
- Requires: audacious
- Requires: meld
- Requires: gksu
- Requires: zenity
- %description
- A Graphical Handler, Written in Python and PyGtk,
- of the Nautilus File Manager Python Extensions.
- %description -l ja
- Python と PyGtk で書かれた、Nautilus ファイルマネージャ
- Python Extensions のグラフィカルハンドラ。
- %prep
- %setup -q -n %{name}-%{version}
- #%patch0 -p1
- #%{__cp} -f %{SOURCE1} locale/ja.po
- #pushd .
- #cd locale/
- #chmod +x i18n_po_to_mo.py
- #./i18n_po_to_mo.py
- #popd
- %build
- #%{__python} setup.py build
- %install
- rm -rf $RPM_BUILD_ROOT
- %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
- cp -af default-pyextensions $RPM_BUILD_ROOT%{_datadir}/%{name}
- desktop-file-install --vendor="" \
- --add-category="Utility" \
- --dir %{buildroot}%_datadir/applications \
- %{buildroot}%_datadir/applications/%{name}.desktop
- #remove
- #rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/glade/%{name}.desktop
- %find_lang %{name}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %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 -f %{name}.lang
- %defattr(-,root,root,-)
- %{_bindir}/%{name}
- %{_datadir}/%{name}
- %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
- %{_datadir}/applications/%{name}.desktop
- %{_libdir}/python2.?/site-packages/
- %changelog
- * Fri Nov 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0-1
- - new upstream release
- - changed Requires: pygtk2 to pygobject3
- * Thu Jul 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.2-1
- - new upstream release
- * Sun Aug 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.1-1
- - new upstream release
- - dropt source1 to merge upstream
- - dropt patch1
- * Thu Jul 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1
- - new upstream release
- - updated patch1 and source1
- * Mon Jul 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-2
- - changed URL and Source tag
- - fixed include python script
- - updated and renamed patch0
- - fixed icon in open-as-root.py
- - added Japanese translation
- - added source1 to translate Japanese
- - cleaned up spec
- * Sun Jun 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1
- - new upstream release
- - modified install process
- - use setup.py in source
- - modified %%files
- - fixed desktop-file-install --add-category section
- * Thu Mar 4 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.6-1
- - new upstream release
- * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-2
- - rebuilt with python-2.6.4
- * Wed Jan 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.5-1
- - new upstream release
- * Wed Dec 2 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.4-1
- - new upstream release
- - changed name and updated source1
- * Thu Nov 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.3-1
- - initial build for VineSeed
- * Fri Aug 21 2009 slick50 <lxgator@gmail.com> 0.6.1-1pclos2009
- - initial pkg
|