]>
Commit | Line | Data |
---|---|---|
5d744b5b | 1 | # TODO: make pl translation, commit it to gnome repository |
1f97703a | 2 | # 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 |
a822ccd3 | 7 | Version: 1.2.1 |
8 | Release: 1 | |
58467ed8 | 9 | License: GPL |
10 | Group: Applications/Text | |
5352e83d | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/1.2/%{name}-%{version}.tar.bz2 |
a822ccd3 | 12 | # Source0-md5: 78f6084b14ee5334cf3578e62383b341 |
b727140b | 13 | Patch0: %{name}-desktop.patch |
4874a469 | 14 | Patch1: %{name}-GNUmakefile.patch |
755a7959 | 15 | Patch2: %{name}-glob.patch |
4a0bd956 | 16 | URL: http://meld.sourceforge.net/ |
d4c9e5fd | 17 | BuildRequires: gettext-devel |
341c4bac | 18 | BuildRequires: python-gnome-devel >= 2.15.1 |
19 | BuildRequires: python-pyorbit-devel >= 2.14.0 | |
1f97703a | 20 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
91c7f49e | 21 | BuildRequires: rpmbuild(macros) >= 1.197 |
565d477b | 22 | BuildRequires: scrollkeeper |
b9eb5d0a | 23 | Requires(post,postun): desktop-file-utils |
91c7f49e | 24 | Requires(post,postun): scrollkeeper |
3ae8ffa8 | 25 | %pyrequires_eq python-libs |
341c4bac | 26 | Requires: python-gnome >= 2.15.1 |
27 | Requires: python-gnome-ui >= 2.15.1 | |
28 | Requires: python-pygtk-glade >= 2:2.9.0 | |
29 | Requires: python-pyorbit >= 2.14.0 | |
59a9a250 | 30 | Suggests: python-gnome-desktop-gtksourceview |
1f125459 MB |
31 | # sr@Latn vs. sr@latin |
32 | Conflicts: glibc-misc < 6:2.7 | |
58467ed8 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
c7332d42 | 36 | Meld is a GNOME visual diff and merge tool. It integrates especially |
58467ed8 | 37 | well with CVS. The diff viewer lets you edit files in place (diffs |
38 | update dynamically), and a middle column shows detailed changes and | |
39 | allows merges. The margins show location of changes for easy | |
40 | navigation, and it also features a tabbed interface that allows you to | |
41 | open many diffs at once. | |
42 | ||
7b904f61 JR |
43 | %description -l pl.UTF-8 |
44 | Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i | |
45 | włączania zmian (w formacie diff). Integruje się szczególnie dobrze z | |
46 | CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu | |
47 | (dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe | |
48 | zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie | |
49 | zmian w celu łatwej nawigacji. Jest dostępny także interfejs z | |
50 | zakładkami, pozwalający na otwieranie wielu plików diff naraz. | |
2e9a20f0 | 51 | |
58467ed8 | 52 | %prep |
53 | %setup -q | |
b727140b | 54 | %patch0 -p1 |
4874a469 | 55 | %patch1 -p1 |
755a7959 | 56 | %patch2 -p1 |
5d744b5b | 57 | |
1f125459 MB |
58 | mv -f po/sr\@{Latn,latin}.po |
59 | ||
5352e83d PZ |
60 | cp -r help/C/figures help/fr/figures |
61 | ||
5d744b5b | 62 | %build |
2907a87a | 63 | # Nasty quickfix - some translations are broken for now |
64 | rm -f po/{hu,ja,ru}.po | |
a766be71 | 65 | %{__make} \ |
66 | prefix=/usr \ | |
67 | libdir=%{py_sitedir} | |
58467ed8 | 68 | |
58467ed8 | 69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
58467ed8 | 71 | |
a766be71 | 72 | %{__make} install \ |
565d477b | 73 | DESTDIR=$RPM_BUILD_ROOT \ |
74 | prefix=%{_prefix} \ | |
75 | libdir=%{py_sitedir} | |
58467ed8 | 76 | |
33a337a3 AF |
77 | touch $RPM_BUILD_ROOT%{py_sitedir}/meld/__init__.py |
78 | ||
79 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
80 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
b9eb5d0a | 81 | rm -r $RPM_BUILD_ROOT%{_datadir}/application-registry |
33a337a3 AF |
82 | |
83 | %py_postclean | |
b9eb5d0a | 84 | |
1f125459 | 85 | %find_lang %{name} --with-gnome --with-omf |
58467ed8 | 86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
0d9e5088 | 90 | %post |
91c7f49e | 91 | %scrollkeeper_update_post |
92 | %update_desktop_database_post | |
0d9e5088 MK |
93 | |
94 | %postun | |
91c7f49e | 95 | %scrollkeeper_update_postun |
96 | %update_desktop_database_postun | |
0d9e5088 | 97 | |
a766be71 | 98 | %files -f %{name}.lang |
58467ed8 | 99 | %defattr(644,root,root,755) |
565d477b | 100 | %doc AUTHORS changelog |
58467ed8 | 101 | %attr(755,root,root) %{_bindir}/%{name} |
a766be71 | 102 | %dir %{py_sitedir}/%{name} |
103 | %{py_sitedir}/%{name}/*.py[co] | |
6f23e1c8 | 104 | %{py_sitedir}/%{name}/vc |
a766be71 | 105 | %{_datadir}/%{name} |
95f79657 | 106 | %{_desktopdir}/*.desktop |
9ab00ed9 | 107 | %{_pixmapsdir}/* |