[9365] | 1 | Name: gtranslator |
---|
[10000] | 2 | Version: 2.91.7 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
[9365] | 4 | Summary: Gettext po file editor for GNOME |
---|
| 5 | Summary(ja): GNOME 用の po ファイルエディタ |
---|
| 6 | |
---|
| 7 | License: GPLv2+ and GPLv3+ |
---|
| 8 | Group: Applications/Development |
---|
| 9 | URL: http://www.gtranslator.org/ |
---|
[7681] | 10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtranslator/2.91/%{name}-%{version}.tar.xz |
---|
| 11 | Source1: gtranslator.master.ja.po |
---|
[521] | 12 | |
---|
[9365] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 14 | |
---|
[9365] | 15 | BuildRequires: glib2-devel >= 2.25.10 |
---|
| 16 | BuildRequires: gtk3-devel >= 3.0.3 |
---|
| 17 | BuildRequires: gtksourceview3-devel >= 3.0.0 |
---|
| 18 | BuildRequires: gdl-devel >= 2.91.1 |
---|
| 19 | BuildRequires: libxml2-devel >= 2.4.12 |
---|
| 20 | BuildRequires: libgda-devel >= 5.0.0 |
---|
| 21 | BuildRequires: libpeas-devel >= 1.0.0 |
---|
| 22 | BuildRequires: gobject-introspection-devel |
---|
| 23 | BuildRequires: gsettings-desktop-schemas-devel |
---|
| 24 | BuildRequires: iso-codes |
---|
| 25 | BuildRequires: itstool |
---|
| 26 | BuildRequires: intltool desktop-file-utils |
---|
[2056] | 27 | |
---|
| 28 | # for documentation |
---|
[9365] | 29 | BuildRequires: gtk-doc |
---|
| 30 | BuildRequires: gnome-doc-utils >= 0.20.2 |
---|
[2056] | 31 | |
---|
| 32 | # for open-tran plugin |
---|
[9365] | 33 | BuildRequires: json-glib-devel >= 0.12.0 |
---|
[2056] | 34 | |
---|
| 35 | # for dictionary plugin |
---|
[9365] | 36 | #BuildRequires: gnome-utils-devel |
---|
| 37 | BuildRequires: gnome-dictionary-devel |
---|
[2056] | 38 | |
---|
| 39 | # for spell support |
---|
[5094] | 40 | #Requires: gtkspell >= 2.0.16 |
---|
| 41 | #BuildRequires: gtkspell-devel >= 2.0.16 |
---|
[2056] | 42 | |
---|
[9365] | 43 | Requires: gda-sqlite |
---|
| 44 | Requires: gsettings-desktop-schemas |
---|
| 45 | Requires: hicolor-icon-theme |
---|
[2056] | 46 | |
---|
[9365] | 47 | |
---|
| 48 | Vendor: Project Vine |
---|
| 49 | Distribution: Vine Linux |
---|
| 50 | Packager: inagaki, yasumichi |
---|
| 51 | |
---|
| 52 | |
---|
[521] | 53 | %description |
---|
[9365] | 54 | gtranslator is an enhanced gettext po file editor for the GNOME |
---|
| 55 | desktop environment. It handles all forms of gettext po files and |
---|
| 56 | features many comfortable everyday usage features like find and |
---|
| 57 | replace functions, auto translation, and translation learning, |
---|
[521] | 58 | |
---|
[9365] | 59 | |
---|
[521] | 60 | %package devel |
---|
[9365] | 61 | Summary: Development files for %{name} |
---|
| 62 | Summary(ja): %{name} の開発用ファイル |
---|
| 63 | Group: Development/Libraries |
---|
| 64 | Requires: %{name} = %{version}-%{release} |
---|
| 65 | Requires: gettext-devel |
---|
| 66 | Requires: gtksourceview3-devel |
---|
[521] | 67 | |
---|
| 68 | %description devel |
---|
| 69 | This package contains the headers that programmers will need to develop |
---|
| 70 | applications which will use %{name}. |
---|
| 71 | |
---|
| 72 | %prep |
---|
| 73 | %setup -q |
---|
[7681] | 74 | cp %{SOURCE1} po/ja.po |
---|
[521] | 75 | |
---|
[9365] | 76 | |
---|
[521] | 77 | %build |
---|
[9365] | 78 | %configure \ |
---|
| 79 | --disable-static \ |
---|
| 80 | --disable-scrollkeeper \ |
---|
| 81 | --enable-debug=no \ |
---|
| 82 | --enable-introspection=yes \ |
---|
| 83 | --with-gda=5.0 |
---|
[521] | 84 | |
---|
[9365] | 85 | make %{?_smp_mflags} CFLAGS="%{optflags}" |
---|
[521] | 86 | |
---|
| 87 | %install |
---|
| 88 | rm -rf $RPM_BUILD_ROOT |
---|
[9365] | 89 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 90 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
[521] | 91 | |
---|
[9365] | 92 | desktop-file-install --delete-original \ |
---|
| 93 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 94 | $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop |
---|
[5094] | 95 | |
---|
[7651] | 96 | %find_lang %{name} --with-gnome |
---|
[9365] | 97 | # Convert to utf-8 |
---|
| 98 | for file in doc/UMTF/*.UMTF; do |
---|
| 99 | iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ |
---|
| 100 | touch -r $file $file.new && \ |
---|
| 101 | mv $file.new $file |
---|
| 102 | done |
---|
| 103 | rm -rf UMTF |
---|
| 104 | mkdir -p UMTF |
---|
| 105 | cp -p doc/UMTF/{README.UMTF,ChangeLog,example.xml} UMTF |
---|
[521] | 106 | |
---|
[9365] | 107 | %clean |
---|
| 108 | rm -rf $RPM_BUILD_ROOT |
---|
| 109 | |
---|
| 110 | |
---|
[521] | 111 | %post |
---|
[9365] | 112 | update-desktop-database &>/dev/null || : |
---|
| 113 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 114 | /sbin/ldconfig |
---|
[521] | 115 | |
---|
[2056] | 116 | %posttrans |
---|
[9365] | 117 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 118 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
[521] | 119 | |
---|
| 120 | %postun |
---|
[9365] | 121 | update-desktop-database &>/dev/null || : |
---|
| 122 | if [ $1 -eq 0 ] ; then |
---|
| 123 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 124 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 125 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : |
---|
[2056] | 126 | fi |
---|
[9365] | 127 | /sbin/ldconfig |
---|
[521] | 128 | |
---|
| 129 | |
---|
| 130 | %files -f %{name}.lang |
---|
| 131 | %defattr(-, root, root, 0755) |
---|
[2056] | 132 | %doc AUTHORS ChangeLog COPYING NEWS README THANKS |
---|
[9365] | 133 | %doc UMTF |
---|
| 134 | %{_bindir}/gtranslator |
---|
[521] | 135 | %{_libdir}/gtranslator |
---|
| 136 | %{_datadir}/applications/*.desktop |
---|
[2056] | 137 | %{_datadir}/glib-2.0/schemas/org.gnome.gtranslator.*gschema.xml |
---|
[521] | 138 | %{_datadir}/gtranslator |
---|
[623] | 139 | %{_datadir}/icons/hicolor/*/apps/gtranslator.* |
---|
[10000] | 140 | %{_datadir}/appdata/gtranslator.appdata.xml |
---|
[521] | 141 | %{_mandir}/man?/* |
---|
| 142 | |
---|
| 143 | %files devel |
---|
| 144 | %defattr(-, root, root, -) |
---|
[5094] | 145 | %{_includedir}/gtranslator-3.0 |
---|
| 146 | %{_libdir}/pkgconfig/*.pc |
---|
[521] | 147 | %{_datadir}/gtk-doc/html/gtranslator |
---|
| 148 | |
---|
| 149 | %changelog |
---|
[10000] | 150 | * Sun Jan 31 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 2.91.7-1 |
---|
| 151 | - update to 2.91.7 |
---|
| 152 | - add AppData file |
---|
| 153 | |
---|
[9365] | 154 | * Fri Feb 20 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.91.6-3 |
---|
| 155 | - rebuilt on current VineSeed |
---|
| 156 | - changed BR: gnome-dictionary-devel instead of gnome-utils-devel |
---|
| 157 | - added BR: desktop-file-utils |
---|
| 158 | |
---|
[7681] | 159 | * Wed May 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.6-2 |
---|
| 160 | - add Source1 (gtranslator.master.ja.po) |
---|
| 161 | |
---|
[7651] | 162 | * Mon May 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.6-1 |
---|
| 163 | - new upstream release |
---|
| 164 | - remove Patch0 (gtranslator-2.91.5-gdl.patch) |
---|
| 165 | - add BuildRequires: yelp-tools |
---|
| 166 | |
---|
[7119] | 167 | * Thu Nov 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-3 |
---|
| 168 | - add Patch0 (gtranslator-2.91.5-gdl.patch) |
---|
| 169 | |
---|
[6898] | 170 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-2 |
---|
| 171 | - rebuild with gdl-3.6.0 |
---|
| 172 | |
---|
[6682] | 173 | * Sun Aug 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.5-1 |
---|
| 174 | - new upstream release |
---|
| 175 | |
---|
[6141] | 176 | * Sun May 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.4-1 |
---|
| 177 | - new upstream release |
---|
| 178 | |
---|
[6084] | 179 | * Mon Apr 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.3-1 |
---|
| 180 | - new upstream release |
---|
| 181 | |
---|
[6078] | 182 | * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.2-1 |
---|
| 183 | - new upstream release |
---|
| 184 | |
---|
[5094] | 185 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.7-1 |
---|
| 186 | - new upstream release |
---|
| 187 | - change BuildRequires: gtk3-devel instead of gtk2-devel |
---|
| 188 | - change BuildRequires: gtksourceview3-devel instead of gtksourceview2-devel |
---|
| 189 | - add BuildRequires: libpeas-devel, iso-codes, json-glib-devel |
---|
| 190 | |
---|
[2111] | 191 | * Wed Oct 20 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.12-2 |
---|
| 192 | - add (Build)Requires gsettings-desktop-schemas. |
---|
| 193 | - add Requires gda-sqlite instead of libgda. |
---|
| 194 | |
---|
[2056] | 195 | * Wed Oct 13 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.12-1 |
---|
| 196 | - new upstream release |
---|
| 197 | - rebuild dependency |
---|
| 198 | - replace GConf2 by glib-compile-schemas |
---|
| 199 | - care desktop-files |
---|
| 200 | |
---|
[623] | 201 | * Thu Mar 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9.9-1 |
---|
| 202 | - new upstream release |
---|
| 203 | - add BuildRequires: unique-devel |
---|
| 204 | - drop Patch0 |
---|
| 205 | |
---|
[521] | 206 | * Thu Nov 19 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.6-2 |
---|
| 207 | - add libuuid to Requires. |
---|
| 208 | - add libuuid-devel and gnome-doc-utils to BR. |
---|
| 209 | - add Patch0 (https://bugzilla.gnome.org/show_bug.cgi?id=591587) |
---|
| 210 | - export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 when install. |
---|
| 211 | |
---|
| 212 | * Thu Nov 19 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.9.6-1 |
---|
| 213 | - new upstream release |
---|
| 214 | - add Requires glib2,gtksourceview2,gdl,gtkspell,gucharmap,apr,apr-util,neon,subversion |
---|
| 215 | |
---|
| 216 | * Sat May 16 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.5-1 |
---|
| 217 | - applied new versioning policy, spec in UTF-8 |
---|
| 218 | - new upstream release |
---|
| 219 | - updated BuildRequires: |
---|
| 220 | - split devel subpackage |
---|
| 221 | - changed Group to Applications/Development |
---|
| 222 | |
---|
| 223 | * Sat Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.6-0vl1 |
---|
| 224 | - new upstream release |
---|
| 225 | - added BuildRequires: gtkspell-devel |
---|
| 226 | |
---|
| 227 | * Thu Jan 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.4-0vl1 |
---|
| 228 | - new upstream snapshot, tarball is taken from debian pool |
---|
| 229 | - add Patch10 from debian package |
---|
| 230 | |
---|
| 231 | * Tue Sep 09 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-1vl1 |
---|
| 232 | - build for VineSeedPlus |
---|
| 233 | |
---|
| 234 | * Thu Sep 04 2003 Dag Wieers <dag@wieers.com> - 1.0-1 |
---|
| 235 | - Updated to release 1.0. |
---|
| 236 | |
---|
| 237 | * Tue Sep 02 2003 Dag Wieers <dag@wieers.com> - 1.0-0.pre1 |
---|
| 238 | - Updated to release 1.0pre1. |
---|
| 239 | |
---|
| 240 | * Fri Jun 27 2003 Dag Wieers <dag@wieers.com> - 1.0-0.cvs20030626 |
---|
| 241 | - Updated to release 1.0CVS-20030626. |
---|
| 242 | |
---|
| 243 | * Sat Jun 14 2003 Dag Wieers <dag@wieers.com> - 0.99-0 |
---|
| 244 | - Updated to release 0.99. |
---|
| 245 | |
---|
| 246 | * Tue Mar 18 2003 Dag Wieers <dag@wieers.com> - 0.43-0 |
---|
| 247 | - Initial package. (using DAR) |
---|