]> git.pld-linux.org Git - packages/mousepad.git/blobdiff - mousepad.spec
- up to 0.6.2
[packages/mousepad.git] / mousepad.spec
index 27f2f8222fdb5913951f8df5b923bdaff54c1f2e..832f3209e809a0ae75b1c289cc326a9150e949dc 100644 (file)
-Summary:       Mousepad - a text editor for Xfce based on Leafpad
-Summary(pl):   Mousepad - edytor dla Xfce oparty na Leafpadzie
+Summary:       Text editor for Xfce based on Leafpad
+Summary(pl.UTF-8):     Edytor tekstu dla Xfce oparty na Leafpadzie
 Name:          mousepad
 Name:          mousepad
-Version:       0.2.1
+Version:       0.6.2
 Release:       1
 Release:       1
-License:       GPL v2
+License:       GPL v2+
 Group:         X11/Applications/Editors
 Group:         X11/Applications/Editors
-Source0:       http://erikharrison.net/software/%{name}-%{version}.tar.gz
-# Source0-md5: 9a5bf90acc6fffd5c09334c7cb4b7054
-BuildRequires: gettext-devel
-BuildRequires: gtk+2-devel >= 2:2.4.0
-BuildRequires: libxfcegui4-devel >= 4.2.0
-BuildRequires: pkgconfig  >= 1:0.9.0
-Requires:      libxfcegui4 >= 4.2.0
-Requires:      xfprint >= 4.2
+Source0:       https://archive.xfce.org/src/apps/mousepad/0.6/%{name}-%{version}.tar.bz2
+# Source0-md5: 3ad46198202d2696cac27d5a0f08bab0
+Patch0:                %{name}-desktop.patch
+URL:           https://www.xfce.org/projects/mousepad/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
+BuildRequires: gettext-tools
+BuildRequires: glib2-devel >= 2.56.2
+BuildRequires: gspell-devel >= 1.6.0
+BuildRequires: gtk+3-devel >= 3.22
+BuildRequires: gtksourceview4-devel >= 4.0.0
+BuildRequires: libtool
+BuildRequires: libxfce4ui-devel >= 4.18
+BuildRequires: pkgconfig >= 1:0.9.0
+BuildRequires: polkit-devel >= 0.102
+BuildRequires: xfce4-dev-tools >= 4.18.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
 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.
 
 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
 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
 
 %prep
 %setup -q
+%patch0 -p1
+
+mkdir -p m4
+
+%{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
 
 %build
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hye,ie}
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy}
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}{/%{name}/plugins,}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmousepad.so
+
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %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)
 %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
+%attr(755,root,root) %{_libdir}/libmousepad.so.*.*.*
+%attr(755,root,root) %{_libdir}/libmousepad.so.0
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/plugins
+%attr(755,root,root) %{_libdir}/%{name}/plugins/libmousepad-plugin-gspell.so
+%attr(755,root,root) %{_libdir}/%{name}/plugins/libmousepad-plugin-shortcuts.so
+%{_desktopdir}/org.xfce.mousepad.desktop
+%{_desktopdir}/org.xfce.mousepad-settings.desktop
+%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
+%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.plugins.gspell.gschema.xml
+%{_datadir}/metainfo/org.xfce.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
This page took 0.154113 seconds and 4 git commands to generate.