]> git.pld-linux.org Git - packages/poedit.git/blob - poedit.spec
- up to 3.3.2
[packages/poedit.git] / poedit.spec
1 Summary:        Gettext catalogs editor
2 Summary(pl.UTF-8):      Edytor katalogów gettexta
3 Name:           poedit
4 Version:        1.4.6.1
5 Release:        3
6 License:        MIT
7 Group:          X11/Applications/Editors
8 Source0:        http://downloads.sourceforge.net/poedit/%{name}-%{version}.tar.gz
9 # Source0-md5:  c63ffd991b1a6085ef356a6922356e0a
10 Patch0:         %{name}-desktop.patch
11 URL:            http://poedit.sourceforge.net/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.9
14 BuildRequires:  gtk+2-devel
15 BuildRequires:  gtkspell-devel
16 BuildRequires:  pkgconfig
17 BuildRequires:  rpmbuild(macros) >= 1.311
18 BuildRequires:  wxGTK2-unicode-devel >= 2.8.0
19 BuildRequires:  wxWidgets-utils
20 Requires(post,postun):  desktop-file-utils
21 Requires(post,postun):  gtk-update-icon-cache
22 Requires(post,postun):  hicolor-icon-theme
23 Requires:       gettext
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 poEdit is cross-platform gettext catalogs (.po files) editor. It is
28 built with wxWindows toolkit and can run on Unix or Windows. It aims
29 to provide convenient way of editing gettext catalogs. It features
30 UTF-8 support, fuzzy and untranslated records highlighting,
31 whitespaces highlighting, references browser, headers editing and can
32 be used to create new catalogs or update existing catalogs from source
33 code by single click.
34
35 %description -l pl.UTF-8
36 poEdit jest wieloplatformowym edytorem katalogów gettexta (plików
37 .po). Używa toolkitu wxWindows, więc może działać pod Uniksem oraz pod
38 Windows. Możliwości programu to: obsługa UTF-8, podświetlanie rekordów
39 nie przetłumaczonych i niepewnych ("fuzzy"), podświetlanie odstępów,
40 przeglądarka odwołań, edycja nagłówków, tworzenie nowych katalogów
41 oraz uaktualnianie istniejących z plików źródłowych przez jedno
42 kliknięcie.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 %build
49 %{__aclocal} -I admin
50 %{__autoconf}
51 %{__automake}
52 %configure \
53         --disable-transmem \
54         --with-wx-config=wx-gtk2-unicode-config \
55         --%{?debug:en}%{!?debug:dis}able-debug
56
57 %{__make} \
58         EXTRADIR="" \
59         expatlib="-lexpat"
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 %{__make} install \
65         EXTRADIR="" \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 # fix/update locale names
69 install -d $RPM_BUILD_ROOT%{_datadir}/locale/{af,fa,pt,sq}/LC_MESSAGES
70 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{af_ZA/LC_MESSAGES/poedit.mo,af/LC_MESSAGES/poedit.mo}
71 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fa_IR/LC_MESSAGES/poedit.mo,fa/LC_MESSAGES/poedit.mo}
72 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT/LC_MESSAGES/poedit.mo,pt/LC_MESSAGES/poedit.mo}
73 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{sq_AL/LC_MESSAGES/poedit.mo,sq/LC_MESSAGES/poedit.mo}
74
75
76 %find_lang %{name}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post
82 %update_desktop_database_post
83 %update_icon_cache hicolor
84
85 %postun
86 %update_desktop_database_postun
87 %update_icon_cache hicolor
88
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc AUTHORS COPYING NEWS README TODO
92 %attr(755,root,root) %{_bindir}/poedit
93 %{_datadir}/poedit
94 %{_desktopdir}/poedit.desktop
95 %{_pixmapsdir}/poedit.png
96 %{_iconsdir}/hicolor/*/*/poedit.png
97 %{_iconsdir}/hicolor/*/*/poedit.svg
98 %{_mandir}/man1/poedit.1*
This page took 0.155636 seconds and 3 git commands to generate.