]>
Commit | Line | Data |
---|---|---|
1cd7ff8b | 1 | Summary: Text editor for Xfce based on Leafpad |
17f6bd1d | 2 | Summary(pl.UTF-8): Edytor tekstu dla Xfce oparty na Leafpadzie |
31d6a18b | 3 | Name: mousepad |
10e4d07c | 4 | Version: 0.6.2 |
6e985189 | 5 | Release: 1 |
5fc38ec8 | 6 | License: GPL v2+ |
31d6a18b | 7 | Group: X11/Applications/Editors |
a0d96913 | 8 | Source0: https://archive.xfce.org/src/apps/mousepad/0.6/%{name}-%{version}.tar.bz2 |
10e4d07c | 9 | # Source0-md5: 3ad46198202d2696cac27d5a0f08bab0 |
1cd7ff8b | 10 | Patch0: %{name}-desktop.patch |
a0d96913 | 11 | URL: https://www.xfce.org/projects/mousepad/ |
41dc3ebe KK |
12 | BuildRequires: autoconf >= 2.52 |
13 | BuildRequires: automake | |
ef313484 | 14 | BuildRequires: gettext-tools |
a0d96913 | 15 | BuildRequires: glib2-devel >= 2.56.2 |
a055352b | 16 | BuildRequires: gspell-devel >= 1.6.0 |
5f68e0d1 | 17 | BuildRequires: gtk+3-devel >= 3.22 |
37234450 | 18 | BuildRequires: gtksourceview4-devel >= 4.0.0 |
41dc3ebe | 19 | BuildRequires: libtool |
a361c6d7 | 20 | BuildRequires: libxfce4ui-devel >= 4.18 |
b950b336 | 21 | BuildRequires: pkgconfig >= 1:0.9.0 |
a361c6d7 KM |
22 | BuildRequires: polkit-devel >= 0.102 |
23 | BuildRequires: xfce4-dev-tools >= 4.18.0 | |
709147ad | 24 | Requires: desktop-file-utils |
31d6a18b | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
cad234a2 | 28 | Mousepad is a lightweight text editor for Xfce. It features a simple |
b950b336 | 29 | interface, broad character set support, printing with Xfprint, and |
cad234a2 | 30 | more. It opens lightening quick, making it perfect for editing config |
31 | files, doing quick scripting, and pretty printing documents like shell | |
32 | scripts. | |
31d6a18b | 33 | |
649d4aef | 34 | %description -l pl.UTF-8 |
cad234a2 | 35 | Mousepad jest lekkim edytorem tekstowym dla Xfce. Cechuje go prosty |
649d4aef JR |
36 | interfejs, obsługa wielu zestawów znaków, drukowanie przy pomocy |
37 | Xfprint i wiele więcej. Uruchamia się błyskawicznie, dzięki czemu jest | |
38 | idealny do edycji plików konfiguracyjnych, pisania małych skryptów i | |
39 | pięknego drukowania dokumentów takich jak skrypty powłoki. | |
31d6a18b | 40 | |
41 | %prep | |
946237d5 | 42 | %setup -q |
1cd7ff8b | 43 | %patch0 -p1 |
31d6a18b | 44 | |
6110f657 JR |
45 | mkdir -p m4 |
46 | ||
5fc38ec8 ER |
47 | %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac |
48 | ||
31d6a18b | 49 | %build |
41dc3ebe | 50 | %{__libtoolize} |
1cd7ff8b | 51 | %{__aclocal} |
41dc3ebe KK |
52 | %{__autoheader} |
53 | %{__automake} | |
54 | %{__autoconf} | |
31d6a18b | 55 | %configure |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
31d6a18b | 60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
dcd96e88 | 63 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hye,ie} |
fd52b2fa JR |
64 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{hy_AM,hy} |
65 | ||
a055352b KM |
66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}{/%{name}/plugins,}/*.la |
67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmousepad.so | |
68 | ||
f62c8a3f | 69 | %find_lang %{name} |
70 | ||
31d6a18b | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
709147ad | 74 | %post |
868de5a3 KM |
75 | %update_desktop_database_post |
76 | %update_icon_cache hicolor | |
77 | %glib_compile_schemas | |
78 | ||
79 | %postun | |
80 | %update_desktop_database_postun | |
81 | %update_icon_cache hicolor | |
82 | %glib_compile_schemas | |
709147ad | 83 | |
f62c8a3f | 84 | %files -f %{name}.lang |
31d6a18b | 85 | %defattr(644,root,root,755) |
5f68e0d1 | 86 | %doc AUTHORS ChangeLog NEWS |
b62ab4c6 | 87 | %attr(755,root,root) %{_bindir}/mousepad |
a055352b KM |
88 | %attr(755,root,root) %{_libdir}/libmousepad.so.*.*.* |
89 | %attr(755,root,root) %{_libdir}/libmousepad.so.0 | |
dcd96e88 | 90 | %dir %{_libdir}/%{name} |
a055352b KM |
91 | %dir %{_libdir}/%{name}/plugins |
92 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libmousepad-plugin-gspell.so | |
a0d96913 | 93 | %attr(755,root,root) %{_libdir}/%{name}/plugins/libmousepad-plugin-shortcuts.so |
93aa818e KM |
94 | %{_desktopdir}/org.xfce.mousepad.desktop |
95 | %{_desktopdir}/org.xfce.mousepad-settings.desktop | |
6110f657 | 96 | %{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml |
a055352b | 97 | %{_datadir}/glib-2.0/schemas/org.xfce.mousepad.plugins.gspell.gschema.xml |
93aa818e | 98 | %{_datadir}/metainfo/org.xfce.mousepad.appdata.xml |
fd52b2fa | 99 | %{_datadir}/polkit-1/actions/org.xfce.mousepad.policy |
5f68e0d1 KM |
100 | %{_iconsdir}/hicolor/*x*/apps/org.xfce.mousepad.png |
101 | %{_iconsdir}/hicolor/scalable/apps/org.xfce.mousepad.svg |