]> git.pld-linux.org Git - packages/meld.git/blame - meld.spec
expand %py_install macro to pass additional options to setup.py
[packages/meld.git] / meld.spec
CommitLineData
a8138c38
MK
1# TODO:
2# - make pl translation, commit it to gnome repository and attach pl.patch here ;)
a766be71 3#
58467ed8 4Summary: Visual diff and merge tool
bb537530 5Summary(pl.UTF-8): Wizualne narzędzie do oglądania i włączania zmian (diff)
58467ed8 6Name: meld
1308d721 7Version: 3.15.1
6b36fe2f 8Release: 2
58467ed8 9License: GPL
10Group: Applications/Text
73deda17 11Source0: http://ftp.gnome.org/pub/GNOME/sources/meld/3.15/%{name}-%{version}.tar.xz
1308d721 12# Source0-md5: 238c3eba59290d5128675c88c1849e05
b727140b 13Patch0: %{name}-desktop.patch
4a0bd956 14URL: http://meld.sourceforge.net/
922920ca 15BuildRequires: intltool
c13bafef 16BuildRequires: itstool
1e2c207b 17BuildRequires: python-modules >= 2.7
922920ca 18BuildRequires: rpm-pythonprov
1f97703a 19BuildRequires: rpmbuild(find_lang) >= 1.23
6b36fe2f 20BuildRequires: rpmbuild(macros) >= 1.710
88e2b60c
ŁK
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
b9eb5d0a 23Requires(post,postun): desktop-file-utils
c13bafef 24Requires(post,postun): glib2 >= 1:2.26.0
1eedc52b 25Requires(post,postun): gtk-update-icon-cache
1e2c207b
JP
26Requires: glib2 >= 1:2.34
27Requires: gtk+3 >= 3.6
28Requires: gtksourceview3 >= 3.6
1eedc52b 29Requires: hicolor-icon-theme
1e2c207b
JP
30Requires: pango >= 1:1.26
31Requires: python-modules >= 2.7
e2113864 32Requires: python-pycairo
1e2c207b 33Requires: python-pygobject3 >= 3.8
1f125459
MB
34# sr@Latn vs. sr@latin
35Conflicts: glibc-misc < 6:2.7
91f63916 36BuildArch: noarch
58467ed8 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
c7332d42 40Meld is a GNOME visual diff and merge tool. It integrates especially
58467ed8 41well with CVS. The diff viewer lets you edit files in place (diffs
42update dynamically), and a middle column shows detailed changes and
43allows merges. The margins show location of changes for easy
44navigation, and it also features a tabbed interface that allows you to
45open many diffs at once.
46
7b904f61
JR
47%description -l pl.UTF-8
48Meld to przeznaczone dla GNOME wizualne narzędzie do oglądania i
49włączania zmian (w formacie diff). Integruje się szczególnie dobrze z
50CVS. Przeglądarka różnic pozwala modyfikować pliki w miejscu
51(dynamicznie uaktualniać), a środkowa kolumna pokazuje szczegółowe
52zmiany i pozwala na włączanie. Na marginesach jest pokazane położenie
53zmian w celu łatwej nawigacji. Jest dostępny także interfejs z
54zakładkami, pozwalający na otwieranie wielu plików diff naraz.
2e9a20f0 55
58467ed8 56%prep
57%setup -q
b727140b 58%patch0 -p1
5d744b5b 59
60%build
58467ed8 61
58467ed8 62%install
63rm -rf $RPM_BUILD_ROOT
58467ed8 64
7f499af8
JP
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
33a337a3
AF
75
76%py_postclean
b9eb5d0a 77
c13bafef
JP
78%{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
79
1f125459 80%find_lang %{name} --with-gnome --with-omf
58467ed8 81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
0d9e5088 85%post
c13bafef 86%glib_compile_schemas
91c7f49e 87%update_desktop_database_post
1eedc52b 88%update_icon_cache hicolor
0d9e5088
MK
89
90%postun
91c7f49e 91%update_desktop_database_postun
1eedc52b 92%update_icon_cache hicolor
c13bafef 93%glib_compile_schemas
0d9e5088 94
a766be71 95%files -f %{name}.lang
58467ed8 96%defattr(644,root,root,755)
c13bafef 97%doc NEWS README
58467ed8 98%attr(755,root,root) %{_bindir}/%{name}
c13bafef
JP
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
7d74884d 109%{_iconsdir}/hicolor/*/apps/%{name}.png
1eedc52b 110%{_iconsdir}/hicolor/*/apps/%{name}.svg
c13bafef 111%{_iconsdir}/hicolor/*/apps/meld-version-control.png
a8138c38 112%{_iconsdir}/HighContrast/scalable/apps/meld.svg
a766be71 113%{_datadir}/%{name}
a8138c38 114%{_datadir}/appdata/meld.appdata.xml
c13bafef 115%{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml
a8138c38 116%{_datadir}/mime/packages/meld.xml
7d74884d 117%{_desktopdir}/%{name}.desktop
c13bafef 118%{_mandir}/man1/%{name}.1*
This page took 0.086882 seconds and 4 git commands to generate.