]>
Commit | Line | Data |
---|---|---|
87070cce JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
173ae486 | 5 | Summary: gtranslator - a comfortable po file editor with many bells and whistles |
24d484be | 6 | Summary(pl.UTF-8): gtranslator - wygodny edytor plików po z różnymi wodotryskami |
401d2a86 | 7 | Name: gtranslator |
c9e7d755 | 8 | Version: 45.3 |
b15b9b9e | 9 | Release: 2 |
173ae486 | 10 | Epoch: 1 |
86267ea6 | 11 | License: GPL v3+ |
401d2a86 | 12 | Group: Development/Tools |
c9e7d755 JB |
13 | Source0: https://download.gnome.org/sources/gtranslator/45/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 6c524ac174a634bda5304e8a886220d1 | |
15 | Patch0: %{name}-libxml2.patch | |
16 | Patch1: %{name}-gtk-doc.patch | |
ea215767 | 17 | URL: https://wiki.gnome.org/Apps/Gtranslator |
1f4e815b | 18 | BuildRequires: docbook-dtd412-xml |
86267ea6 JB |
19 | # libgettextpo |
20 | BuildRequires: gettext-devel | |
a8988a40 | 21 | BuildRequires: gettext-tools |
1dd1c4ad | 22 | BuildRequires: glib2-devel >= 1:2.71.3 |
5a6259fd | 23 | BuildRequires: gsettings-desktop-schemas-devel |
ea215767 | 24 | BuildRequires: gspell-devel >= 1.2.0 |
c9e7d755 | 25 | BuildRequires: gtk4-devel >= 4.6.0 |
87070cce | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.28} |
c9e7d755 | 27 | BuildRequires: gtksourceview5-devel >= 5.4.0 |
ea215767 | 28 | BuildRequires: itstool |
c883c399 | 29 | BuildRequires: json-glib-devel >= 1.2.0 |
c9e7d755 | 30 | BuildRequires: libadwaita-devel >= 1.1.0 |
d135a2ec | 31 | BuildRequires: libgda6-devel >= 6.0 |
c9e7d755 JB |
32 | BuildRequires: libsoup3-devel >= 3.0 |
33 | BuildRequires: libspelling-devel | |
de3a1a73 | 34 | BuildRequires: libxml2-devel >= 2.4.12 |
c9e7d755 | 35 | BuildRequires: meson >= 0.57.0 |
ea215767 | 36 | BuildRequires: ninja >= 1.5 |
c440c707 | 37 | BuildRequires: pkgconfig |
e8885f82 | 38 | BuildRequires: rpm-build >= 4.6 |
ea215767 | 39 | BuildRequires: rpmbuild(macros) >= 1.736 |
87070cce JB |
40 | BuildRequires: tar >= 1:1.22 |
41 | BuildRequires: xz | |
86267ea6 | 42 | BuildRequires: yelp-tools |
5e1e3961 | 43 | Requires(post,postun): gtk-update-icon-cache |
1dd1c4ad | 44 | Requires: glib2 >= 1:2.71.3 |
ea215767 | 45 | Requires: gspell >= 1.2.0 |
c9e7d755 JB |
46 | Requires: gtk4 >= 4.6.0 |
47 | Requires: gtksourceview5 >= 5.4.0 | |
86267ea6 | 48 | Requires: hicolor-icon-theme |
c883c399 | 49 | Requires: json-glib >= 1.2.0 |
c9e7d755 | 50 | Requires: libadwaita >= 1.1.0 |
86267ea6 | 51 | Requires: libxml2 >= 2.4.12 |
465f93bf MW |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
465f93bf | 54 | %description |
6e12265d JB |
55 | gtranslator is a comfortable po file editor with many bells and |
56 | whistles. It features many useful function which ease the work of | |
57 | translators of po files immenantly. | |
465f93bf | 58 | |
124291f3 JR |
59 | %description -l pl.UTF-8 |
60 | gtranslator jest wygodnym edytorem plików po z wieloma wodotryskami. | |
61 | Dostarcza dużo użytecznych funkcji ułatwiających pracę przy | |
62 | tłumaczeniach plików po. | |
465f93bf | 63 | |
25578cce | 64 | %package devel |
ea215767 JB |
65 | Summary: Header file for gtranslator plugins development |
66 | Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek edytora gtranslator | |
25578cce | 67 | Group: Development/Tools |
1dd1c4ad | 68 | Requires: glib2-devel >= 1:2.71.3 |
e8885f82 | 69 | BuildArch: noarch |
25578cce LG |
70 | |
71 | %description devel | |
ea215767 | 72 | Header file for gtranslator plugins development. |
25578cce LG |
73 | |
74 | %description devel -l pl.UTF-8 | |
ea215767 | 75 | Plik nagłówkowy do tworzenia wtyczek edytora gtranslator. |
86267ea6 JB |
76 | |
77 | %package apidocs | |
78 | Summary: API documentation for gtranslator | |
79 | Summary(pl.UTF-8): Dokumentacja API gtranslatora | |
80 | Group: Documentation | |
e8885f82 | 81 | BuildArch: noarch |
86267ea6 JB |
82 | |
83 | %description apidocs | |
84 | API documentation for gtranslator. | |
25578cce | 85 | |
86267ea6 JB |
86 | %description apidocs -l pl.UTF-8 |
87 | Dokumentacja API gtranslatora. | |
25578cce | 88 | |
465f93bf MW |
89 | %prep |
90 | %setup -q | |
c9e7d755 JB |
91 | %patch0 -p1 |
92 | %patch1 -p1 | |
465f93bf MW |
93 | |
94 | %build | |
ea215767 | 95 | %meson build \ |
87070cce | 96 | %{?with_apidocs:-Dgtk_doc=true} |
ea215767 JB |
97 | |
98 | %ninja_build -C build | |
465f93bf MW |
99 | |
100 | %install | |
6e12265d | 101 | rm -rf $RPM_BUILD_ROOT |
465f93bf | 102 | |
ea215767 | 103 | %ninja_install -C build |
465f93bf | 104 | |
b15b9b9e JB |
105 | # not supported by glibc (as of 2.38) |
106 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
107 | ||
86267ea6 | 108 | %find_lang %{name} --with-gnome |
6e12265d JB |
109 | |
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
2ab3cf16 | 113 | %post |
2ab3cf16 | 114 | %update_icon_cache hicolor |
2ab3cf16 | 115 | |
2ab3cf16 PZ |
116 | %postun |
117 | %update_icon_cache hicolor | |
465f93bf | 118 | |
6e12265d JB |
119 | %files -f %{name}.lang |
120 | %defattr(644,root,root,755) | |
ea215767 | 121 | %doc AUTHORS MAINTAINERS NEWS README.md THANKS |
86267ea6 | 122 | %attr(755,root,root) %{_bindir}/gtranslator |
ea215767 JB |
123 | %{_datadir}/%{name} |
124 | %{_datadir}/glib-2.0/schemas/org.gnome.Gtranslator.gschema.xml | |
125 | %{_datadir}/glib-2.0/schemas/org.gnome.gtranslator.plugins.translation-memory.gschema.xml | |
c9e7d755 | 126 | %{_datadir}/gtksourceview-5/language-specs/gtranslator.lang |
ea215767 JB |
127 | %{_datadir}/metainfo/org.gnome.Gtranslator.appdata.xml |
128 | %{_desktopdir}/org.gnome.Gtranslator.desktop | |
129 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Gtranslator.svg | |
130 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Gtranslator-symbolic.svg | |
86267ea6 | 131 | %{_mandir}/man1/gtranslator.1* |
25578cce LG |
132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
ea215767 | 135 | %{_includedir}/gtr-marshal.h |
86267ea6 | 136 | |
87070cce | 137 | %if %{with apidocs} |
86267ea6 JB |
138 | %files apidocs |
139 | %defattr(644,root,root,755) | |
140 | %{_gtkdocdir}/gtranslator | |
87070cce | 141 | %endif |