]> git.pld-linux.org Git - packages/poedit.git/blobdiff - poedit.spec
- up to 3.3.2
[packages/poedit.git] / poedit.spec
index 2d8cd13dbb996c843c1118858d89f106c3eaa5f6..84d384a7b40a33af9c62342b30adda87c7810391 100644 (file)
@@ -1,24 +1,26 @@
-# TODO:
-# - install GNOME and KDE releated files (MIME files)
 Summary:       Gettext catalogs editor
 Summary(pl.UTF-8):     Edytor katalogów gettexta
 Name:          poedit
-Version:       1.3.9
-Release:       0.1
-License:       BSD
-Group:         Applications/Editors
-Source0:       http://dl.sourceforge.net/poedit/%{name}-%{version}.tar.gz
-# Source0-md5: 2e2b921c9684f1bd9dba2535d97bd34e
-Source1:       %{name}.desktop
-Source2:       %{name}.png
-Patch0:                %{name}-locale_names.patch
-URL:           http://poedit.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: gtk+2-devel
-BuildRequires: gtkspell-devel
-BuildRequires: wxGTK2-unicode-devel >= 2.6.0
-BuildRequires: zip
+Version:       3.3.2
+Release:       1
+License:       MIT
+Group:         X11/Applications/Editors
+Source0:       https://github.com/vslavik/poedit/releases/download/v%{version}-oss/%{name}-%{version}.tar.gz
+# Source0-md5: 83b18a3e983c9444b31f1132a5039819
+URL:           https://poedit.net/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
+BuildRequires: boost-devel
+BuildRequires: gtk+3-devel
+BuildRequires: gtkspell3-devel
+BuildRequires: lucene++-devel >= 3.0.5
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: wxGTK3-unicode-devel >= 3.0.3
+BuildRequires: wxWidgets-utils
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 Requires:      gettext
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,58 +44,45 @@ kliknięcie.
 
 %prep
 %setup -q
-%patch0 -p1
-
-cd locales
-mv af{_ZA,}.po
-mv af{_ZA,}.mo
-mv fa{_IR,}.po
-mv fa{_IR,}.mo
-mv pt{_PT,}.po
-mv pt{_PT,}.mo
-mv sq{_AL,}.po
-mv sq{_AL,}.mo
 
 %build
-%{__aclocal} -I admin
-%{__autoconf}
-%{__automake}
 %configure \
-       --disable-transmem \
-       --with-wx-config=wx-gtk2-unicode-config \
+       --with-wx-config=wx-gtk3-unicode-config \
        --%{?debug:en}%{!?debug:dis}able-debug
 
-%{__make} \
-       EXTRADIR="" \
-       expatlib="-lexpat"
+%{__make} V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime-info/}
 
-%{__make} install \
-       EXTRADIR="" \
+%{__make} install V=1 \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-#install install/poedit.{mime,keys} $RPM_BUILD_ROOT%{_datadir}/mime-info/
+# fix/update locale names
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/co
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-#%doc NEWS LICENSE README AUTHORS docs/*.html docs/img
+%doc AUTHORS COPYING NEWS README.md
 %attr(755,root,root) %{_bindir}/poedit
 %{_datadir}/poedit
-#{_datadir}/mime-info/%{name}*
-%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*
-%{_iconsdir}/hicolor/16x16/apps/poedit.png
-%{_iconsdir}/hicolor/32x32/apps/poedit.png
-%{_iconsdir}/hicolor/48x48/apps/poedit.png
-%{_iconsdir}/hicolor/scalable/apps/poedit.svg
-%{_mandir}/man1/*
+%{_desktopdir}/net.poedit.Poedit.desktop
+%{_desktopdir}/net.poedit.PoeditURI.desktop
+%{_metainfodir}/net.poedit.Poedit.appdata.xml
+%{_iconsdir}/hicolor/*/*/net.poedit.Poedit.png
+%{_iconsdir}/hicolor/*/*/net.poedit.Poedit.svg
+%{_mandir}/man1/poedit.1*
This page took 0.075993 seconds and 4 git commands to generate.