Преглед на файлове

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6696 ec354946-7b23-47d6-9f5a-488ba84defc7

kudoh преди 12 години
родител
ревизия
aa4c6a0012
променени са 3 файла, в които са добавени 51 реда и са изтрити 12 реда
  1. 40 9
      p/poedit/poedit-vl.spec
  2. 4 1
      p/python-mako/python-mako-vl.spec
  3. 7 2
      x/xnoise/xnoise-vl.spec

+ 40 - 9
p/poedit/poedit-vl.spec

@@ -1,6 +1,6 @@
 %define name	poedit
-%define version	1.4.6.1
-%define release	2%{?_dist_release}
+%define version	1.5.2
+%define release	1%{?_dist_release}
 
 Summary:	Gettext catalogs editor
 Summary(ja): 	Gettext カタログの翻訳用エディタ
@@ -12,8 +12,10 @@ License:	MIT
 Group:		Applications/Development
 URL:		http://www.poedit.net/
 
-BuildRequires: wxGTK-devel >= 2.6.0
+BuildRequires: desktop-file-utils
+BuildRequires: wxGTK-devel >= 2.8.0
 BuildRequires: gtkspell-devel >= 2.0, db4-devel
+BuildRequires: libboost-devel
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 
 
@@ -41,34 +43,63 @@ Poedit はクロス・プラットフォームな gettext カタログ (.po フ
 
 %build
 %configure
-%{__make}
+%{__make} %{?_smp_mflags}
 
 
 %install
 %{__rm} -rf ${RPM_BUILD_ROOT}
 %makeinstall
+
+# Install the desktop file
+desktop-file-install \
+    --delete-original \
+    --add-category=GTK \
+    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+    $RPM_BUILD_ROOT%{_datadir}/applications/poedit.desktop
+
 %find_lang %{name}
 
 
 %clean
 %{__rm} -rf ${RPM_BUILD_ROOT}
 
+%post
+update-desktop-database &> /dev/null ||:
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+update-desktop-database &> /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
 %defattr(-,root,root)
 %doc AUTHORS COPYING NEWS README TODO
 %{_bindir}/poedit
 %{_datadir}/applications/poedit.desktop
-%{_datadir}/icons/hicolor/16x16/apps/poedit.png
-%{_datadir}/icons/hicolor/32x32/apps/poedit.png
-%{_datadir}/icons/hicolor/48x48/apps/poedit.png
-%{_datadir}/icons/hicolor/scalable/apps/poedit.svg
+%{_datadir}/icons/hicolor/*/apps/
+%{_datadir}/icons/hicolor/*/mimetypes/
 %{_datadir}/pixmaps/poedit.png
-%{_datadir}/poedit/help
+#%{_datadir}/poedit/help
 %{_datadir}/poedit/icons
 %{_mandir}/man1/poedit.1.gz
 
 %changelog
+* Fri Aug 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.5.2-2
+- new upstream release
+- added BuildRequires: desktop-file-utils, libboost-devel
+- changed BuildRequires: wxGTK-devel >= 2.6.0 to 2.8.0
+- used %%{?_smp_mflags}
+- run gtk-update-icon-cache and update-desktop-database in %%post, %%postun
+
 * Sun Jul 01 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.6.1-2
 - changed BuildRequires: wx-gtk2-devel >= 2.6.0 to wxGTK-devel >= 2.6.0
 

+ 4 - 1
p/python-mako/python-mako-vl.spec

@@ -1,7 +1,7 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name: python-mako
-Version: 0.7.1
+Version: 0.7.2
 Release: 1%{?_dist_release}
 Summary: Mako template library for Python
 Summary(ja): Python の Mako テンプレートライブラリ
@@ -51,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Aug 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
+- new upstream release
+
 * Thu Jul 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.1-1
 - new upstream release
 

+ 7 - 2
x/xnoise/xnoise-vl.spec

@@ -1,7 +1,7 @@
 %define XNOISE_BIN %{_libexecdir}/%{name}
 
 Name: xnoise
-Version: 0.2.4
+Version: 0.2.5
 Release: 1%{?_dist_release}
 Summary: Tracklist-centric Media Player
 Summary(ja): トラックリストを中心とするメディアプレーヤー
@@ -61,7 +61,7 @@ developing applications that use %{name}.
 sed -i s/hu/hu\\nja/g po/LINGUAS
 
 %build
-%configure --enable-soundmenu2=no
+%configure --enable-soundmenu2=no --disable-ubuntuone
 make %{?_smp_mflags}
 
 
@@ -131,6 +131,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Fri Aug 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.5-1
+- new upstream release
+- updated Source1
+- added %%configure option: --disable-ubuntuone
+
 * Thu Aug 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.4-1
 - initial build for VineSeed