SPECS: poedit.spec - proper license (MIT) - added X11 to Group - u...
megabajt
megabajt at pld-linux.org
Thu Feb 28 19:34:00 CET 2008
Author: megabajt Date: Thu Feb 28 18:34:00 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- proper license (MIT)
- added X11 to Group
- use desktop file and icon included in sources
- cleanup
- release 1
---- Files affected:
SPECS:
poedit.spec (1.50 -> 1.51)
---- Diffs:
================================================================
Index: SPECS/poedit.spec
diff -u SPECS/poedit.spec:1.50 SPECS/poedit.spec:1.51
--- SPECS/poedit.spec:1.50 Wed Dec 12 11:24:14 2007
+++ SPECS/poedit.spec Thu Feb 28 19:33:54 2008
@@ -1,25 +1,28 @@
# $Revision$, $Date$
-# 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
+Release: 1
+License: MIT
+Group: X11/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
+Patch1: %{name}-desktop.patch
URL: http://poedit.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
BuildRequires: gtk+2-devel
BuildRequires: gtkspell-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: wxGTK2-unicode-devel >= 2.6.0
+BuildRequires: wxWidgets-utils
BuildRequires: zip
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
Requires: gettext
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -44,6 +47,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
cd locales
mv af{_ZA,}.po
@@ -70,34 +74,34 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime-info/}
%{__make} install \
EXTRADIR="" \
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/
-
%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 TODO
%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}/poedit.desktop
+%{_pixmapsdir}/poedit.png
+%{_iconsdir}/hicolor/*/*/poedit.png
+%{_iconsdir}/hicolor/*/*/poedit.svg
+%{_mandir}/man1/poedit.1*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -105,6 +109,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.51 2008-02-28 18:33:54 megabajt
+- proper license (MIT)
+- added X11 to Group
+- use desktop file and icon included in sources
+- cleanup
+- release 1
+
Revision 1.50 2007-12-12 10:24:14 adamg
- updated to 1.3.9
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/poedit.spec?r1=1.50&r2=1.51&f=u
More information about the pld-cvs-commit
mailing list