|
@@ -1,10 +1,10 @@
|
|
# Basic Information
|
|
# Basic Information
|
|
Name: postr
|
|
Name: postr
|
|
-Version: 0.12.4
|
|
+Version: 0.13
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Group: Applications/Internet
|
|
Group: Applications/Internet
|
|
-Source0: http://ftp.gnome.org/pub/GNOME/sources/postr/0.12/postr-0.12.4.tar.bz2
|
|
+Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.13/%{name}-%{version}.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
@@ -20,6 +20,9 @@ Requires: python
|
|
Requires: pygtk2
|
|
Requires: pygtk2
|
|
Requires: nautilus-python
|
|
Requires: nautilus-python
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
|
|
+BuildRequires: pygtk2-devel
|
|
|
|
+BuildRequires: nautilus-python-devel
|
|
|
|
+BuildRequires: gnome-doc-utils >= 0.3.2
|
|
|
|
|
|
%description
|
|
%description
|
|
Postr is a Flickr uploading tool for the GNOME desktop, which aims to be
|
|
Postr is a Flickr uploading tool for the GNOME desktop, which aims to be
|
|
@@ -35,37 +38,55 @@ Postr は、GNOME デスクトップ向けの Flickr アップロードツール
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__python} setup.py build
|
|
+%configure --with-nautilus-extension-dir=%{_datadir}/nautilus-python/extensions
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
-%{__python} setup.py install --root=${RPM_BUILD_ROOT}
|
|
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
-#%%find_lang %{name}
|
|
+%find_lang %{name} --all-name --with-gnome
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
-#%%files -f %{name}.lang
|
|
+%post
|
|
-%files
|
|
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
+
|
|
|
|
+%postun
|
|
|
|
+if [ $1 -eq 0 ] ; then
|
|
|
|
+ touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
+ update-desktop-database -q &> /dev/null ||:
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%posttrans
|
|
|
|
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
+update-desktop-database -q &> /dev/null ||:
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING README TODO
|
|
%doc AUTHORS COPYING README TODO
|
|
-%{_bindir}/postr
|
|
+%{_bindir}/%{name}
|
|
-/usr/lib/nautilus/extensions-1.0/python/postrExtension.py
|
|
+%{python_sitelib}/%{name}
|
|
-/usr/lib/nautilus/extensions-2.0/python/postrExtension.py
|
|
+%{_datadir}/applications/%{name}.desktop
|
|
-%{python_sitelib}/Postr-0.12.4-py%{pyver}.egg-info
|
|
|
|
-%{python_sitelib}/postr
|
|
|
|
-%{_datadir}/applications/postr.desktop
|
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/postr.png
|
|
%{_datadir}/icons/hicolor/16x16/apps/postr.png
|
|
%{_datadir}/icons/hicolor/22x22/apps/postr.png
|
|
%{_datadir}/icons/hicolor/22x22/apps/postr.png
|
|
%{_datadir}/icons/hicolor/24x24/apps/postr.png
|
|
%{_datadir}/icons/hicolor/24x24/apps/postr.png
|
|
%{_datadir}/icons/hicolor/32x32/apps/postr.png
|
|
%{_datadir}/icons/hicolor/32x32/apps/postr.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/postr.svg
|
|
%{_datadir}/icons/hicolor/scalable/apps/postr.svg
|
|
|
|
+%{_datadir}/nautilus-python/extensions/*
|
|
|
|
+%{_datadir}/%{name}/%{name}.glade
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.13-1
|
|
|
|
+- new upstream release
|
|
|
|
+- add BuildRequires: pygtk2-devel, nautilus-python-devel, gnome-doc-utils
|
|
|
|
+
|
|
* Tue Feb 21 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.4-2
|
|
* Tue Feb 21 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.12.4-2
|
|
- rebuild with python-2.7.2
|
|
- rebuild with python-2.7.2
|
|
|
|
|