]>
Commit | Line | Data |
---|---|---|
1 | Summary: Visual diff and merge tool | |
2 | Summary(pl.UTF-8): Wizualne narzędzie do oglądania i włączania zmian (diff) | |
3 | Name: meld | |
4 | Version: 3.16.0 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Text | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/3.16/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: ed12ede512f1be0dcfb8876b55d019db | |
10 | Patch0: %{name}-desktop.patch | |
11 | URL: http://meld.sourceforge.net/ | |
12 | BuildRequires: intltool | |
13 | BuildRequires: itstool | |
14 | BuildRequires: python-modules >= 2.7 | |
15 | BuildRequires: rpm-pythonprov | |
16 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
17 | BuildRequires: rpmbuild(macros) >= 1.710 | |
18 | BuildRequires: tar >= 1:1.22 | |
19 | BuildRequires: xz | |
20 | Requires(post,postun): desktop-file-utils | |
21 | Requires(post,postun): glib2 >= 1:2.26.0 | |
22 | Requires(post,postun): gtk-update-icon-cache | |
23 | Requires: glib2 >= 1:2.34 | |
24 | Requires: gtk+3 >= 3.6 | |
25 | Requires: gtksourceview3 >= 3.6 | |
26 | Requires: hicolor-icon-theme | |
27 | Requires: pango >= 1:1.26 | |
28 | Requires: python-modules >= 2.7 | |
29 | Requires: python-pycairo | |
30 | Requires: python-pygobject3 >= 3.8 | |
31 | # sr@Latn vs. sr@latin | |
32 | Conflicts: glibc-misc < 6:2.7 | |
33 | BuildArch: noarch | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
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. | |
43 | ||
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. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__python} setup.py \ | |
63 | --no-compile-schemas \ | |
64 | --no-update-icon-cache \ | |
65 | build --build-base=build-2 \ | |
66 | install --skip-build \ | |
67 | --prefix=%{_prefix} \ | |
68 | --install-purelib=%{py_sitescriptdir} \ | |
69 | --install-platlib=%{py_sitedir} \ | |
70 | --optimize=2 \ | |
71 | --root=$RPM_BUILD_ROOT | |
72 | ||
73 | %py_postclean | |
74 | ||
75 | %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} | |
76 | ||
77 | %find_lang %{name} --with-gnome --with-omf | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post | |
83 | %glib_compile_schemas | |
84 | %update_desktop_database_post | |
85 | %update_icon_cache hicolor | |
86 | ||
87 | %postun | |
88 | %update_desktop_database_postun | |
89 | %update_icon_cache hicolor | |
90 | %glib_compile_schemas | |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %doc NEWS README | |
95 | %attr(755,root,root) %{_bindir}/%{name} | |
96 | %dir %{py_sitescriptdir}/meld-*.egg-info | |
97 | %dir %{py_sitescriptdir}/%{name} | |
98 | %{py_sitescriptdir}/%{name}/*.py[co] | |
99 | %dir %{py_sitescriptdir}/%{name}/ui | |
100 | %{py_sitescriptdir}/%{name}/ui/*.py[co] | |
101 | %dir %{py_sitescriptdir}/%{name}/util | |
102 | %{py_sitescriptdir}/%{name}/util/*.py[co] | |
103 | %dir %{py_sitescriptdir}/%{name}/vc | |
104 | %{py_sitescriptdir}/%{name}/vc/*.py[co] | |
105 | %{_iconsdir}/hicolor/*/actions/*.png | |
106 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
107 | %{_iconsdir}/hicolor/*/apps/%{name}.svg | |
108 | %{_iconsdir}/hicolor/*/apps/meld-version-control.png | |
109 | %{_iconsdir}/HighContrast/scalable/apps/meld.svg | |
110 | %{_datadir}/%{name} | |
111 | %{_datadir}/appdata/meld.appdata.xml | |
112 | %{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml | |
113 | %{_datadir}/mime/packages/meld.xml | |
114 | %{_desktopdir}/%{name}.desktop | |
115 | %{_mandir}/man1/%{name}.1* |