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