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