]>
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 |
e37611e2 | 7 | Version: 1.8.6 |
1eedc52b | 8 | Release: 1 |
58467ed8 | 9 | License: GPL |
10 | Group: Applications/Text | |
a8138c38 | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/1.8/%{name}-%{version}.tar.xz |
e37611e2 | 12 | # Source0-md5: 872e6c28a7913f1eab1cacf27d6d1e5a |
b727140b | 13 | Patch0: %{name}-desktop.patch |
4874a469 | 14 | Patch1: %{name}-GNUmakefile.patch |
a8138c38 | 15 | Patch2: %{name}-version_control_plugins_glob.patch |
4a0bd956 | 16 | URL: http://meld.sourceforge.net/ |
d4c9e5fd | 17 | BuildRequires: gettext-devel |
922920ca | 18 | BuildRequires: intltool |
1eedc52b | 19 | BuildRequires: python-modules >= 2.5 |
922920ca | 20 | BuildRequires: rpm-pythonprov |
1f97703a | 21 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
91c7f49e | 22 | BuildRequires: rpmbuild(macros) >= 1.197 |
565d477b | 23 | BuildRequires: scrollkeeper |
88e2b60c ŁK |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
b9eb5d0a | 26 | Requires(post,postun): desktop-file-utils |
1eedc52b | 27 | Requires(post,postun): gtk-update-icon-cache |
91c7f49e | 28 | Requires(post,postun): scrollkeeper |
1eedc52b AF |
29 | Requires: hicolor-icon-theme |
30 | Requires: python-pygobject >= 2.16 | |
31 | Requires: python-pygtk-gtk >= 2.14 | |
32 | Suggests: python-gtksourceview2 >= 2.4 | |
1f125459 MB |
33 | # sr@Latn vs. sr@latin |
34 | Conflicts: glibc-misc < 6:2.7 | |
58467ed8 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
c7332d42 | 38 | Meld is a GNOME visual diff and merge tool. It integrates especially |
58467ed8 | 39 | well with CVS. The diff viewer lets you edit files in place (diffs |
40 | update dynamically), and a middle column shows detailed changes and | |
41 | allows merges. The margins show location of changes for easy | |
42 | navigation, and it also features a tabbed interface that allows you to | |
43 | open many diffs at once. | |
44 | ||
7b904f61 JR |
45 | %description -l pl.UTF-8 |
46 | Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i | |
47 | włączania zmian (w formacie diff). Integruje się szczególnie dobrze z | |
48 | CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu | |
49 | (dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe | |
50 | zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie | |
51 | zmian w celu łatwej nawigacji. Jest dostępny także interfejs z | |
52 | zakładkami, pozwalający na otwieranie wielu plików diff naraz. | |
2e9a20f0 | 53 | |
58467ed8 | 54 | %prep |
55 | %setup -q | |
b727140b | 56 | %patch0 -p1 |
4874a469 | 57 | %patch1 -p1 |
755a7959 | 58 | %patch2 -p1 |
5d744b5b | 59 | |
60 | %build | |
a766be71 | 61 | %{__make} \ |
1eedc52b | 62 | prefix=%{_prefix} \ |
a766be71 | 63 | libdir=%{py_sitedir} |
58467ed8 | 64 | |
58467ed8 | 65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
58467ed8 | 67 | |
a766be71 | 68 | %{__make} install \ |
565d477b | 69 | DESTDIR=$RPM_BUILD_ROOT \ |
70 | prefix=%{_prefix} \ | |
71 | libdir=%{py_sitedir} | |
58467ed8 | 72 | |
33a337a3 AF |
73 | touch $RPM_BUILD_ROOT%{py_sitedir}/meld/__init__.py |
74 | ||
75 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
76 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
33a337a3 AF |
77 | |
78 | %py_postclean | |
b9eb5d0a | 79 | |
1f125459 | 80 | %find_lang %{name} --with-gnome --with-omf |
58467ed8 | 81 | |
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
0d9e5088 | 85 | %post |
91c7f49e | 86 | %scrollkeeper_update_post |
87 | %update_desktop_database_post | |
1eedc52b | 88 | %update_icon_cache hicolor |
0d9e5088 MK |
89 | |
90 | %postun | |
91c7f49e | 91 | %scrollkeeper_update_postun |
92 | %update_desktop_database_postun | |
1eedc52b | 93 | %update_icon_cache hicolor |
0d9e5088 | 94 | |
a766be71 | 95 | %files -f %{name}.lang |
58467ed8 | 96 | %defattr(644,root,root,755) |
58467ed8 | 97 | %attr(755,root,root) %{_bindir}/%{name} |
a766be71 | 98 | %dir %{py_sitedir}/%{name} |
99 | %{py_sitedir}/%{name}/*.py[co] | |
7d74884d ER |
100 | %{py_sitedir}/%{name}/%{name} |
101 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
1eedc52b | 102 | %{_iconsdir}/hicolor/*/apps/%{name}.svg |
a8138c38 | 103 | %{_iconsdir}/HighContrast/scalable/apps/meld.svg |
a766be71 | 104 | %{_datadir}/%{name} |
a8138c38 MK |
105 | %{_datadir}/appdata/meld.appdata.xml |
106 | %{_datadir}/mime/packages/meld.xml | |
7d74884d | 107 | %{_desktopdir}/%{name}.desktop |
a8138c38 MK |
108 | |
109 | ||
110 |