X-Git-Url: https://git.pld-linux.org/?p=packages%2Fmousepad.git;a=blobdiff_plain;f=mousepad.spec;h=506b783cb7d64fb6fa6c2f347b1703a7524f02b0;hp=8f8ec273b3855d629352750637f39e35be16aca3;hb=88b56e8;hpb=1cd7ff8b5c062ae3cc9079f48063b4995c7c7001 diff --git a/mousepad.spec b/mousepad.spec index 8f8ec27..506b783 100644 --- a/mousepad.spec +++ b/mousepad.spec @@ -1,70 +1,89 @@ -# -%define xfce_version 4.3.90.2 -# Summary: Text editor for Xfce based on Leafpad -Summary(pl): Edytor textu dla Xfce oparty na Leafpadzie +Summary(pl.UTF-8): Edytor tekstu dla Xfce oparty na Leafpadzie Name: mousepad -Version: 0.2.6 +Version: 0.5.3 Release: 1 -License: GPL v2 +License: GPL v2+ Group: X11/Applications/Editors -Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2 -# Source0-md5: f8c23b1de6d23927729c477689883c38 +Source0: http://archive.xfce.org/src/apps/mousepad/0.5/%{name}-%{version}.tar.bz2 +# Source0-md5: 66a396824ecfb795b2a8c981e22a72e0 Patch0: %{name}-desktop.patch +URL: http://www.xfce.org/projects/mousepad/ BuildRequires: autoconf >= 2.52 BuildRequires: automake -BuildRequires: gettext-devel -BuildRequires: gtk+2-devel >= 2:2.10.0 +BuildRequires: gettext-tools +BuildRequires: glib2-devel >= 2.52.0 +BuildRequires: gtk+3-devel >= 3.22 +BuildRequires: gtksourceview3-devel >= 3.24 BuildRequires: intltool >= 0.35.0 BuildRequires: libtool -BuildRequires: libxfcegui4-devel >= %{xfce_version} -BuildRequires: pkgconfig >= 1:0.9.0 -BuildRequires: xfce4-dev-tools >= %{xfce_version} -#Requires: xfprint >= 4.2 +BuildRequires: pkgconfig >= 1:0.9.0 +BuildRequires: xfce4-dev-tools >= 4.14.0 +Requires: desktop-file-utils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Mousepad is a lightweight text editor for Xfce. It features a simple -interface, broad character set support, printing with Xfprint, and +interface, broad character set support, printing with Xfprint, and more. It opens lightening quick, making it perfect for editing config files, doing quick scripting, and pretty printing documents like shell scripts. -%description -l pl +%description -l pl.UTF-8 Mousepad jest lekkim edytorem tekstowym dla Xfce. Cechuje go prosty -interfejs, obs³uga wielu zestawów znaków, drukowanie przy pomocy -Xfprint i wiele wiêcej. Uruchamia siê b³yskawicznie, dziêki czemu -jest idealny do edycji plików konfiguracyjnych, pisania ma³ych -skryptów i piêknego drukowania dokumentów takich jak skrypty pow³oki. +interfejs, obsługa wielu zestawów znaków, drukowanie przy pomocy +Xfprint i wiele więcej. Uruchamia się błyskawicznie, dzięki czemu jest +idealny do edycji plików konfiguracyjnych, pisania małych skryptów i +pięknego drukowania dokumentów takich jak skrypty powłoki. %prep %setup -q %patch0 -p1 +mkdir -p m4 + +%{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac + %build +%{__intltoolize} %{__libtoolize} %{__aclocal} %{__autoheader} %{__automake} %{__autoconf} -LDFLAGS="%{rpmldflags} -Wl,--as-needed" %configure %{__make} %install rm -rf $RPM_BUILD_ROOT - %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie} +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy} + %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT +%post +%update_desktop_database_post +%update_icon_cache hicolor +%glib_compile_schemas + +%postun +%update_desktop_database_postun +%update_icon_cache hicolor +%glib_compile_schemas + %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS ChangeLog NEWS README -%attr(755,root,root) %{_bindir}/* -%{_desktopdir}/* -%{_pixmapsdir}/* +%doc AUTHORS ChangeLog NEWS +%attr(755,root,root) %{_bindir}/mousepad +%{_desktopdir}/mousepad.desktop +%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml +%{_datadir}/metainfo/mousepad.appdata.xml +%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy +%{_iconsdir}/hicolor/*x*/apps/org.xfce.mousepad.png +%{_iconsdir}/hicolor/scalable/apps/org.xfce.mousepad.svg