]>
Commit | Line | Data |
---|---|---|
173ae486 | 1 | Summary: gtranslator - a comfortable po file editor with many bells and whistles |
24d484be | 2 | Summary(pl.UTF-8): gtranslator - wygodny edytor plików po z różnymi wodotryskami |
401d2a86 | 3 | Name: gtranslator |
ea215767 | 4 | Version: 3.32.1 |
25578cce | 5 | Release: 1 |
173ae486 | 6 | Epoch: 1 |
86267ea6 | 7 | License: GPL v3+ |
401d2a86 | 8 | Group: Development/Tools |
ea215767 JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtranslator/3.32/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 1abe77f5578824dec89d29e486ee5f54 | |
11 | URL: https://wiki.gnome.org/Apps/Gtranslator | |
1f4e815b | 12 | BuildRequires: docbook-dtd412-xml |
86267ea6 JB |
13 | # libgettextpo |
14 | BuildRequires: gettext-devel | |
a8988a40 | 15 | BuildRequires: gettext-tools |
ea215767 | 16 | BuildRequires: glib2-devel >= 1:2.36.0 |
5a6259fd | 17 | BuildRequires: gsettings-desktop-schemas-devel |
ea215767 JB |
18 | BuildRequires: gspell-devel >= 1.2.0 |
19 | BuildRequires: gtk+3-devel >= 3.22.20 | |
20 | BuildRequires: gtk-doc >= 1.28 | |
21 | BuildRequires: gtksourceview4-devel >= 4.0.2 | |
22 | BuildRequires: itstool | |
86267ea6 | 23 | BuildRequires: libgda5-devel >= 5.0 |
de3a1a73 | 24 | BuildRequires: libxml2-devel >= 2.4.12 |
ea215767 JB |
25 | BuildRequires: meson >= 0.46.0 |
26 | BuildRequires: ninja >= 1.5 | |
c440c707 | 27 | BuildRequires: pkgconfig |
ea215767 | 28 | BuildRequires: rpmbuild(macros) >= 1.736 |
86267ea6 | 29 | BuildRequires: yelp-tools |
5e1e3961 | 30 | Requires(post,postun): gtk-update-icon-cache |
ea215767 JB |
31 | Requires: glib2 >= 1:2.36.0 |
32 | Requires: gspell >= 1.2.0 | |
33 | Requires: gtk+3 >= 3.22.20 | |
34 | Requires: gtksourceview4 >= 4.0.2 | |
86267ea6 | 35 | Requires: hicolor-icon-theme |
86267ea6 | 36 | Requires: libxml2 >= 2.4.12 |
465f93bf MW |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
465f93bf | 39 | %description |
6e12265d JB |
40 | gtranslator is a comfortable po file editor with many bells and |
41 | whistles. It features many useful function which ease the work of | |
42 | translators of po files immenantly. | |
465f93bf | 43 | |
124291f3 JR |
44 | %description -l pl.UTF-8 |
45 | gtranslator jest wygodnym edytorem plików po z wieloma wodotryskami. | |
46 | Dostarcza dużo użytecznych funkcji ułatwiających pracę przy | |
47 | tłumaczeniach plików po. | |
465f93bf | 48 | |
25578cce | 49 | %package devel |
ea215767 JB |
50 | Summary: Header file for gtranslator plugins development |
51 | Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek edytora gtranslator | |
25578cce | 52 | Group: Development/Tools |
ea215767 | 53 | Requires: glib2-devel >= 1:2.36.0 |
25578cce LG |
54 | |
55 | %description devel | |
ea215767 | 56 | Header file for gtranslator plugins development. |
25578cce LG |
57 | |
58 | %description devel -l pl.UTF-8 | |
ea215767 | 59 | Plik nagłówkowy do tworzenia wtyczek edytora gtranslator. |
86267ea6 JB |
60 | |
61 | %package apidocs | |
62 | Summary: API documentation for gtranslator | |
63 | Summary(pl.UTF-8): Dokumentacja API gtranslatora | |
64 | Group: Documentation | |
65 | ||
66 | %description apidocs | |
67 | API documentation for gtranslator. | |
25578cce | 68 | |
86267ea6 JB |
69 | %description apidocs -l pl.UTF-8 |
70 | Dokumentacja API gtranslatora. | |
25578cce | 71 | |
465f93bf MW |
72 | %prep |
73 | %setup -q | |
74 | ||
75 | %build | |
ea215767 JB |
76 | %meson build \ |
77 | -Dgtk_doc=true | |
78 | ||
79 | %ninja_build -C build | |
465f93bf MW |
80 | |
81 | %install | |
6e12265d | 82 | rm -rf $RPM_BUILD_ROOT |
465f93bf | 83 | |
ea215767 | 84 | %ninja_install -C build |
465f93bf | 85 | |
86267ea6 | 86 | %find_lang %{name} --with-gnome |
6e12265d JB |
87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
2ab3cf16 | 91 | %post |
2ab3cf16 | 92 | %update_icon_cache hicolor |
2ab3cf16 | 93 | |
2ab3cf16 PZ |
94 | %postun |
95 | %update_icon_cache hicolor | |
465f93bf | 96 | |
6e12265d JB |
97 | %files -f %{name}.lang |
98 | %defattr(644,root,root,755) | |
ea215767 | 99 | %doc AUTHORS MAINTAINERS NEWS README.md THANKS |
86267ea6 | 100 | %attr(755,root,root) %{_bindir}/gtranslator |
ea215767 JB |
101 | %{_datadir}/%{name} |
102 | %{_datadir}/glib-2.0/schemas/org.gnome.Gtranslator.gschema.xml | |
103 | %{_datadir}/glib-2.0/schemas/org.gnome.gtranslator.plugins.translation-memory.gschema.xml | |
104 | %{_datadir}/metainfo/org.gnome.Gtranslator.appdata.xml | |
105 | %{_desktopdir}/org.gnome.Gtranslator.desktop | |
106 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Gtranslator.svg | |
107 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Gtranslator-symbolic.svg | |
108 | %{_pixmapsdir}/gtranslator-*.png | |
86267ea6 | 109 | %{_mandir}/man1/gtranslator.1* |
25578cce LG |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
ea215767 | 113 | %{_includedir}/gtr-marshal.h |
86267ea6 JB |
114 | |
115 | %files apidocs | |
116 | %defattr(644,root,root,755) | |
117 | %{_gtkdocdir}/gtranslator |