]>
Commit | Line | Data |
---|---|---|
1ed336e1 AF |
1 | # TODO: |
2 | # - install GNOME and KDE releated files (MIME files) | |
44f004ee | 3 | Summary: Gettext catalogs editor |
6a574a25 | 4 | Summary(pl.UTF-8): Edytor katalogów gettexta |
44f004ee | 5 | Name: poedit |
5b23f424 SS |
6 | Version: 1.3.6 |
7 | Release: 0.1 | |
581edbe9 | 8 | License: BSD |
44f004ee | 9 | Group: Applications/Editors |
b33233e4 | 10 | Source0: http://dl.sourceforge.net/poedit/%{name}-%{version}.tar.gz |
5b23f424 | 11 | # Source0-md5: 01bab36f3065daf9dcddb5dedd7c7143 |
298b8b66 | 12 | Source1: %{name}.desktop |
13 | Source2: %{name}.png | |
298b8b66 | 14 | URL: http://poedit.sourceforge.net/ |
dbcc8486 | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
cd5c21fc | 17 | BuildRequires: gtk+2-devel |
f7c9bb11 | 18 | BuildRequires: gtkspell-devel |
fa9eb83a | 19 | BuildRequires: wxGTK2-unicode-devel >= 2.6.0 |
30fc8ace | 20 | BuildRequires: zip |
44f004ee | 21 | Requires: gettext |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
44f004ee | 24 | %description |
25 | poEdit is cross-platform gettext catalogs (.po files) editor. It is | |
26 | built with wxWindows toolkit and can run on Unix or Windows. It aims | |
27 | to provide convenient way of editing gettext catalogs. It features | |
28 | UTF-8 support, fuzzy and untranslated records highlighting, | |
29 | whitespaces highlighting, references browser, headers editing and can | |
30 | be used to create new catalogs or update existing catalogs from source | |
31 | code by single click. | |
32 | ||
2ebfd298 JR |
33 | %description -l pl.UTF-8 |
34 | poEdit jest wieloplatformowym edytorem katalogów gettexta (plików | |
35 | .po). Używa toolkitu wxWindows, więc może działać pod Uniksem oraz pod | |
36 | Windows. Możliwości programu to: obsługa UTF-8, podświetlanie rekordów | |
37 | nie przetłumaczonych i niepewnych ("fuzzy"), podświetlanie odstępów, | |
38 | przeglądarka odwołań, edycja nagłówków, tworzenie nowych katalogów | |
39 | oraz uaktualnianie istniejących z plików źródłowych przez jedno | |
40 | kliknięcie. | |
352f1a7f | 41 | |
44f004ee | 42 | %prep |
9781da42 | 43 | %setup -q |
44f004ee | 44 | |
45 | %build | |
f7c9bb11 AF |
46 | %{__aclocal} -I admin |
47 | %{__autoconf} | |
48 | %{__automake} | |
cd5c21fc | 49 | %configure \ |
50 | --disable-transmem \ | |
fa9eb83a | 51 | --with-wx-config=wx-gtk2-unicode-config \ |
8009eafe | 52 | --%{?debug:en}%{!?debug:dis}able-debug |
cec224ee | 53 | |
9781da42 JB |
54 | %{__make} \ |
55 | EXTRADIR="" \ | |
9781da42 | 56 | expatlib="-lexpat" |
44f004ee | 57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
6f7e60c4 | 60 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime-info/} |
44f004ee | 61 | |
cd5c21fc | 62 | %{__make} install \ |
f7c9bb11 | 63 | EXTRADIR="" \ |
298b8b66 | 64 | DESTDIR=$RPM_BUILD_ROOT |
44f004ee | 65 | |
cd5c21fc | 66 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
298b8b66 | 67 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
2009968d | 68 | #install install/poedit.{mime,keys} $RPM_BUILD_ROOT%{_datadir}/mime-info/ |
44f004ee | 69 | |
cd5c21fc | 70 | %find_lang %{name} |
71 | ||
44f004ee | 72 | %clean |
352f1a7f | 73 | rm -rf $RPM_BUILD_ROOT |
44f004ee | 74 | |
cd5c21fc | 75 | %files -f %{name}.lang |
44f004ee | 76 | %defattr(644,root,root,755) |
cd5c21fc | 77 | #%doc NEWS LICENSE README AUTHORS docs/*.html docs/img |
298b8b66 | 78 | %attr(755,root,root) %{_bindir}/poedit |
79 | %{_datadir}/poedit | |
2009968d | 80 | #{_datadir}/mime-info/%{name}* |
2fa29b63 | 81 | %{_desktopdir}/*.desktop |
298b8b66 | 82 | %{_pixmapsdir}/* |
2009968d SS |
83 | %{_iconsdir}/hicolor/16x16/apps/poedit.png |
84 | %{_iconsdir}/hicolor/32x32/apps/poedit.png | |
85 | %{_iconsdir}/hicolor/48x48/apps/poedit.png | |
86 | %{_iconsdir}/hicolor/scalable/apps/poedit.svg | |
cd5c21fc | 87 | %{_mandir}/man1/* |