]> git.pld-linux.org Git - packages/meld.git/blob - meld.spec
0db864b822caf4d17088eb794020762954af3413
[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.15.1
8 Release:        2
9 License:        GPL
10 Group:          Applications/Text
11 Source0:        http://ftp.gnome.org/pub/GNOME/sources/meld/3.15/%{name}-%{version}.tar.xz
12 # Source0-md5:  238c3eba59290d5128675c88c1849e05
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.710
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
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__python} setup.py \
66         --no-compile-schemas \
67         --no-update-icon-cache \
68         build --build-base=build-2 \
69         install --skip-build \
70         --prefix=%{_prefix} \
71         --install-purelib=%{py_sitescriptdir} \
72         --install-platlib=%{py_sitedir} \
73         --optimize=2 \
74         --root=$RPM_BUILD_ROOT
75
76 %py_postclean
77
78 %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
79
80 %find_lang %{name} --with-gnome --with-omf
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 %glib_compile_schemas
87 %update_desktop_database_post
88 %update_icon_cache hicolor
89
90 %postun
91 %update_desktop_database_postun
92 %update_icon_cache hicolor
93 %glib_compile_schemas
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc NEWS README
98 %attr(755,root,root) %{_bindir}/%{name}
99 %dir %{py_sitescriptdir}/meld-*.egg-info
100 %dir %{py_sitescriptdir}/%{name}
101 %{py_sitescriptdir}/%{name}/*.py[co]
102 %dir %{py_sitescriptdir}/%{name}/ui
103 %{py_sitescriptdir}/%{name}/ui/*.py[co]
104 %dir %{py_sitescriptdir}/%{name}/util
105 %{py_sitescriptdir}/%{name}/util/*.py[co]
106 %dir %{py_sitescriptdir}/%{name}/vc
107 %{py_sitescriptdir}/%{name}/vc/*.py[co]
108 %{_iconsdir}/hicolor/*/actions/*.png
109 %{_iconsdir}/hicolor/*/apps/%{name}.png
110 %{_iconsdir}/hicolor/*/apps/%{name}.svg
111 %{_iconsdir}/hicolor/*/apps/meld-version-control.png
112 %{_iconsdir}/HighContrast/scalable/apps/meld.svg
113 %{_datadir}/%{name}
114 %{_datadir}/appdata/meld.appdata.xml
115 %{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml
116 %{_datadir}/mime/packages/meld.xml
117 %{_desktopdir}/%{name}.desktop
118 %{_mandir}/man1/%{name}.1*
This page took 0.077129 seconds and 2 git commands to generate.