|
@@ -1,6 +1,6 @@
|
|
%define name poedit
|
|
%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: Gettext catalogs editor
|
|
Summary(ja): Gettext カタログの翻訳用エディタ
|
|
Summary(ja): Gettext カタログの翻訳用エディタ
|
|
@@ -12,8 +12,10 @@ License: MIT
|
|
Group: Applications/Development
|
|
Group: Applications/Development
|
|
URL: http://www.poedit.net/
|
|
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: gtkspell-devel >= 2.0, db4-devel
|
|
|
|
+BuildRequires: libboost-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
@@ -41,34 +43,63 @@ Poedit はクロス・プラットフォームな gettext カタログ (.po フ
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure
|
|
%configure
|
|
-%{__make}
|
|
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%makeinstall
|
|
%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}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__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
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
%{_bindir}/poedit
|
|
%{_bindir}/poedit
|
|
%{_datadir}/applications/poedit.desktop
|
|
%{_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}/pixmaps/poedit.png
|
|
-%{_datadir}/poedit/help
|
|
|
|
|
|
+#%{_datadir}/poedit/help
|
|
%{_datadir}/poedit/icons
|
|
%{_datadir}/poedit/icons
|
|
%{_mandir}/man1/poedit.1.gz
|
|
%{_mandir}/man1/poedit.1.gz
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* 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
|
|
- changed BuildRequires: wx-gtk2-devel >= 2.6.0 to wxGTK-devel >= 2.6.0
|
|
|
|
|