]> git.pld-linux.org Git - packages/meld.git/blob - meld.spec
- rel 2. Fails without gtksourceview3, added to R.
[packages/meld.git] / meld.spec
1 # TODO:
2 # - make pl translation, commit it to gnome repository and attach pl.patch here ;)
3 #
4 Summary:        Visual diff and merge tool
5 Summary(pl.UTF-8):      Wizualne narzędzie do oglądania i włączania zmian (diff)
6 Name:           meld
7 Version:        3.12.2
8 Release:        2
9 License:        GPL
10 Group:          Applications/Text
11 Source0:        http://ftp.gnome.org/pub/GNOME/sources/meld/3.12/%{name}-%{version}.tar.xz
12 # Source0-md5:  a11c4abf923d136e410fa9e8217c0bba
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
23 BuildRequires:  xz
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 # Without  gtksourceview3 >= 3.14 meld fails:
31 # Cannot import: GtkSourceView
32 # cannot import name GtkSource
33 Requires:       gtksourceview3 >= 3.14
34 Suggests:       python-gtksourceview2 >= 2.4
35 # sr@Latn vs. sr@latin
36 Conflicts:      glibc-misc < 6:2.7
37 BuildArch:      noarch
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Meld is a GNOME visual diff and merge tool. It integrates especially
42 well with CVS. The diff viewer lets you edit files in place (diffs
43 update dynamically), and a middle column shows detailed changes and
44 allows merges. The margins show location of changes for easy
45 navigation, and it also features a tabbed interface that allows you to
46 open many diffs at once.
47
48 %description -l pl.UTF-8
49 Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i
50 włączania zmian (w formacie diff). Integruje się szczególnie dobrze z
51 CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu
52 (dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe
53 zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie
54 zmian w celu łatwej nawigacji. Jest dostępny także interfejs z
55 zakładkami, pozwalający na otwieranie wielu plików diff naraz.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 %{__python} setup.py build
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 # NOTE: --skip-build breaks install
68 %{__python} setup.py \
69         --no-compile-schemas \
70         --no-update-icon-cache \
71         install \
72         --optimize=2 \
73         --root=$RPM_BUILD_ROOT
74
75 %py_postclean
76
77 %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
78
79 %find_lang %{name} --with-gnome --with-omf
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post
85 %glib_compile_schemas
86 %update_desktop_database_post
87 %update_icon_cache hicolor
88
89 %postun
90 %update_desktop_database_postun
91 %update_icon_cache hicolor
92 %glib_compile_schemas
93
94 %files -f %{name}.lang
95 %defattr(644,root,root,755)
96 %doc NEWS README
97 %attr(755,root,root) %{_bindir}/%{name}
98 %dir %{py_sitescriptdir}/meld-*.egg-info
99 %dir %{py_sitescriptdir}/%{name}
100 %{py_sitescriptdir}/%{name}/*.py[co]
101 %dir %{py_sitescriptdir}/%{name}/ui
102 %{py_sitescriptdir}/%{name}/ui/*.py[co]
103 %dir %{py_sitescriptdir}/%{name}/util
104 %{py_sitescriptdir}/%{name}/util/*.py[co]
105 %dir %{py_sitescriptdir}/%{name}/vc
106 %{py_sitescriptdir}/%{name}/vc/*.py[co]
107 %{_iconsdir}/hicolor/*/actions/*.png
108 %{_iconsdir}/hicolor/*/apps/%{name}.png
109 %{_iconsdir}/hicolor/*/apps/%{name}.svg
110 %{_iconsdir}/hicolor/*/apps/meld-version-control.png
111 %{_iconsdir}/HighContrast/scalable/apps/meld.svg
112 %{_datadir}/%{name}
113 %{_datadir}/appdata/meld.appdata.xml
114 %{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml
115 %{_datadir}/mime/packages/meld.xml
116 %{_desktopdir}/%{name}.desktop
117 %{_mandir}/man1/%{name}.1*
This page took 0.156806 seconds and 3 git commands to generate.