]>
Commit | Line | Data |
---|---|---|
a8138c38 MK |
1 | # TODO: |
2 | # - make pl translation, commit it to gnome repository and attach pl.patch here ;) | |
a766be71 | 3 | # |
58467ed8 | 4 | Summary: Visual diff and merge tool |
bb537530 | 5 | Summary(pl.UTF-8): Wizualne narzędzie do oglądania i włączania zmian (diff) |
58467ed8 | 6 | Name: meld |
384f9145 JP |
7 | Version: 3.12.3 |
8 | Release: 1 | |
58467ed8 | 9 | License: GPL |
10 | Group: Applications/Text | |
c13bafef | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/3.12/%{name}-%{version}.tar.xz |
384f9145 | 12 | # Source0-md5: 4cb8cf5d1f07b4350d253f325b9c9c20 |
b727140b | 13 | Patch0: %{name}-desktop.patch |
4a0bd956 | 14 | URL: http://meld.sourceforge.net/ |
922920ca | 15 | BuildRequires: intltool |
c13bafef | 16 | BuildRequires: itstool |
1e2c207b | 17 | BuildRequires: python-modules >= 2.7 |
922920ca | 18 | BuildRequires: rpm-pythonprov |
1f97703a | 19 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
91c7f49e | 20 | BuildRequires: rpmbuild(macros) >= 1.197 |
88e2b60c ŁK |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
b9eb5d0a | 23 | Requires(post,postun): desktop-file-utils |
c13bafef | 24 | Requires(post,postun): glib2 >= 1:2.26.0 |
1eedc52b | 25 | Requires(post,postun): gtk-update-icon-cache |
1e2c207b JP |
26 | Requires: glib2 >= 1:2.34 |
27 | Requires: gtk+3 >= 3.6 | |
28 | Requires: gtksourceview3 >= 3.6 | |
1eedc52b | 29 | Requires: hicolor-icon-theme |
1e2c207b JP |
30 | Requires: pango >= 1:1.26 |
31 | Requires: python-modules >= 2.7 | |
32 | Requires: python-pygobject3 >= 3.8 | |
1f125459 MB |
33 | # sr@Latn vs. sr@latin |
34 | Conflicts: glibc-misc < 6:2.7 | |
91f63916 | 35 | BuildArch: noarch |
58467ed8 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
c7332d42 | 39 | Meld is a GNOME visual diff and merge tool. It integrates especially |
58467ed8 | 40 | well with CVS. The diff viewer lets you edit files in place (diffs |
41 | update dynamically), and a middle column shows detailed changes and | |
42 | allows merges. The margins show location of changes for easy | |
43 | navigation, and it also features a tabbed interface that allows you to | |
44 | open many diffs at once. | |
45 | ||
7b904f61 JR |
46 | %description -l pl.UTF-8 |
47 | Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i | |
48 | włączania zmian (w formacie diff). Integruje się szczególnie dobrze z | |
49 | CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu | |
50 | (dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe | |
51 | zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie | |
52 | zmian w celu łatwej nawigacji. Jest dostępny także interfejs z | |
53 | zakładkami, pozwalający na otwieranie wielu plików diff naraz. | |
2e9a20f0 | 54 | |
58467ed8 | 55 | %prep |
56 | %setup -q | |
b727140b | 57 | %patch0 -p1 |
5d744b5b | 58 | |
59 | %build | |
c13bafef | 60 | %{__python} setup.py build |
58467ed8 | 61 | |
58467ed8 | 62 | %install |
63 | rm -rf $RPM_BUILD_ROOT | |
58467ed8 | 64 | |
91f63916 | 65 | # NOTE: --skip-build breaks install |
c13bafef JP |
66 | %{__python} setup.py \ |
67 | --no-compile-schemas \ | |
68 | --no-update-icon-cache \ | |
69 | install \ | |
70 | --optimize=2 \ | |
71 | --root=$RPM_BUILD_ROOT | |
33a337a3 AF |
72 | |
73 | %py_postclean | |
b9eb5d0a | 74 | |
c13bafef JP |
75 | %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} |
76 | ||
1f125459 | 77 | %find_lang %{name} --with-gnome --with-omf |
58467ed8 | 78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
0d9e5088 | 82 | %post |
c13bafef | 83 | %glib_compile_schemas |
91c7f49e | 84 | %update_desktop_database_post |
1eedc52b | 85 | %update_icon_cache hicolor |
0d9e5088 MK |
86 | |
87 | %postun | |
91c7f49e | 88 | %update_desktop_database_postun |
1eedc52b | 89 | %update_icon_cache hicolor |
c13bafef | 90 | %glib_compile_schemas |
0d9e5088 | 91 | |
a766be71 | 92 | %files -f %{name}.lang |
58467ed8 | 93 | %defattr(644,root,root,755) |
c13bafef | 94 | %doc NEWS README |
58467ed8 | 95 | %attr(755,root,root) %{_bindir}/%{name} |
c13bafef JP |
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 | |
7d74884d | 106 | %{_iconsdir}/hicolor/*/apps/%{name}.png |
1eedc52b | 107 | %{_iconsdir}/hicolor/*/apps/%{name}.svg |
c13bafef | 108 | %{_iconsdir}/hicolor/*/apps/meld-version-control.png |
a8138c38 | 109 | %{_iconsdir}/HighContrast/scalable/apps/meld.svg |
a766be71 | 110 | %{_datadir}/%{name} |
a8138c38 | 111 | %{_datadir}/appdata/meld.appdata.xml |
c13bafef | 112 | %{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml |
a8138c38 | 113 | %{_datadir}/mime/packages/meld.xml |
7d74884d | 114 | %{_desktopdir}/%{name}.desktop |
c13bafef | 115 | %{_mandir}/man1/%{name}.1* |