2 # - make pl translation, commit it to gnome repository and attach pl.patch here ;)
4 Summary: Visual diff and merge tool
5 Summary(pl.UTF-8): Wizualne narzędzie do oglądania i włączania zmian (diff)
10 Group: Applications/Text
11 Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/3.12/%{name}-%{version}.tar.xz
12 # Source0-md5: e5d68878e17ab9dc3c73c0d8ddbc0a9f
13 Patch0: %{name}-desktop.patch
14 URL: http://meld.sourceforge.net/
15 BuildRequires: gettext-devel
16 BuildRequires: intltool
17 BuildRequires: itstool
18 BuildRequires: python-modules >= 2.5
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(find_lang) >= 1.23
21 BuildRequires: rpmbuild(macros) >= 1.197
22 BuildRequires: tar >= 1:1.22
24 Requires(post,postun): desktop-file-utils
25 Requires(post,postun): glib2 >= 1:2.26.0
26 Requires(post,postun): gtk-update-icon-cache
27 Requires: hicolor-icon-theme
28 Requires: python-pygobject >= 2.16
29 Requires: python-pygtk-gtk >= 2.14
30 Suggests: python-gtksourceview2 >= 2.4
31 # sr@Latn vs. sr@latin
32 Conflicts: glibc-misc < 6:2.7
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Meld is a GNOME visual diff and merge tool. It integrates especially
38 well with CVS. The diff viewer lets you edit files in place (diffs
39 update dynamically), and a middle column shows detailed changes and
40 allows merges. The margins show location of changes for easy
41 navigation, and it also features a tabbed interface that allows you to
42 open many diffs at once.
44 %description -l pl.UTF-8
45 Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i
46 włączania zmian (w formacie diff). Integruje się szczególnie dobrze z
47 CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu
48 (dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe
49 zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie
50 zmian w celu łatwej nawigacji. Jest dostępny także interfejs z
51 zakładkami, pozwalający na otwieranie wielu plików diff naraz.
58 %{__python} setup.py build
61 rm -rf $RPM_BUILD_ROOT
63 # NOTE: --skip-build breaks install
64 %{__python} setup.py \
65 --no-compile-schemas \
66 --no-update-icon-cache \
69 --root=$RPM_BUILD_ROOT
73 %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
75 %find_lang %{name} --with-gnome --with-omf
78 rm -rf $RPM_BUILD_ROOT
82 %update_desktop_database_post
83 %update_icon_cache hicolor
86 %update_desktop_database_postun
87 %update_icon_cache hicolor
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/%{name}
94 %dir %{py_sitescriptdir}/meld-*.egg-info
95 %dir %{py_sitescriptdir}/%{name}
96 %{py_sitescriptdir}/%{name}/*.py[co]
97 %dir %{py_sitescriptdir}/%{name}/ui
98 %{py_sitescriptdir}/%{name}/ui/*.py[co]
99 %dir %{py_sitescriptdir}/%{name}/util
100 %{py_sitescriptdir}/%{name}/util/*.py[co]
101 %dir %{py_sitescriptdir}/%{name}/vc
102 %{py_sitescriptdir}/%{name}/vc/*.py[co]
103 %{_iconsdir}/hicolor/*/actions/*.png
104 %{_iconsdir}/hicolor/*/apps/%{name}.png
105 %{_iconsdir}/hicolor/*/apps/%{name}.svg
106 %{_iconsdir}/hicolor/*/apps/meld-version-control.png
107 %{_iconsdir}/HighContrast/scalable/apps/meld.svg
109 %{_datadir}/appdata/meld.appdata.xml
110 %{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml
111 %{_datadir}/mime/packages/meld.xml
112 %{_desktopdir}/%{name}.desktop
113 %{_mandir}/man1/%{name}.1*