- up to 0.5.8
[packages/mousepad.git] / mousepad.spec
CommitLineData
1cd7ff8b 1Summary: Text editor for Xfce based on Leafpad
17f6bd1d 2Summary(pl.UTF-8): Edytor tekstu dla Xfce oparty na Leafpadzie
31d6a18b 3Name: mousepad
441674b9 4Version: 0.5.8
6e985189 5Release: 1
5fc38ec8 6License: GPL v2+
31d6a18b 7Group: X11/Applications/Editors
5f68e0d1 8Source0: http://archive.xfce.org/src/apps/mousepad/0.5/%{name}-%{version}.tar.bz2
441674b9 9# Source0-md5: b9a32b1683ad73424366b4b3be52c7a7
1cd7ff8b 10Patch0: %{name}-desktop.patch
6f2c4ad9 11URL: http://www.xfce.org/projects/mousepad/
41dc3ebe
KK
12BuildRequires: autoconf >= 2.52
13BuildRequires: automake
ef313484 14BuildRequires: gettext-tools
5f68e0d1 15BuildRequires: glib2-devel >= 2.52.0
a055352b 16BuildRequires: gspell-devel >= 1.6.0
5f68e0d1 17BuildRequires: gtk+3-devel >= 3.22
37234450 18BuildRequires: gtksourceview4-devel >= 4.0.0
1cd7ff8b 19BuildRequires: intltool >= 0.35.0
41dc3ebe 20BuildRequires: libtool
b950b336 21BuildRequires: pkgconfig >= 1:0.9.0
fd52b2fa 22BuildRequires: xfce4-dev-tools >= 4.14.0
709147ad 23Requires: desktop-file-utils
31d6a18b 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
cad234a2 27Mousepad is a lightweight text editor for Xfce. It features a simple
b950b336 28interface, broad character set support, printing with Xfprint, and
cad234a2 29more. It opens lightening quick, making it perfect for editing config
30files, doing quick scripting, and pretty printing documents like shell
31scripts.
31d6a18b 32
649d4aef 33%description -l pl.UTF-8
cad234a2 34Mousepad jest lekkim edytorem tekstowym dla Xfce. Cechuje go prosty
649d4aef
JR
35interfejs, obsługa wielu zestawów znaków, drukowanie przy pomocy
36Xfprint i wiele więcej. Uruchamia się błyskawicznie, dzięki czemu jest
37idealny do edycji plików konfiguracyjnych, pisania małych skryptów i
38pięknego drukowania dokumentów takich jak skrypty powłoki.
31d6a18b 39
40%prep
946237d5 41%setup -q
1cd7ff8b 42%patch0 -p1
31d6a18b 43
6110f657
JR
44mkdir -p m4
45
5fc38ec8
ER
46%{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
47
31d6a18b 48%build
f1720f4e 49%{__intltoolize}
41dc3ebe 50%{__libtoolize}
1cd7ff8b 51%{__aclocal}
41dc3ebe
KK
52%{__autoheader}
53%{__automake}
54%{__autoconf}
31d6a18b 55%configure
56%{__make}
57
58%install
59rm -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
72rm -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
93aa818e
KM
93%{_desktopdir}/org.xfce.mousepad.desktop
94%{_desktopdir}/org.xfce.mousepad-settings.desktop
6110f657 95%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
a055352b 96%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.plugins.gspell.gschema.xml
93aa818e 97%{_datadir}/metainfo/org.xfce.mousepad.appdata.xml
fd52b2fa 98%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy
5f68e0d1
KM
99%{_iconsdir}/hicolor/*x*/apps/org.xfce.mousepad.png
100%{_iconsdir}/hicolor/scalable/apps/org.xfce.mousepad.svg
This page took 0.53068 seconds and 4 git commands to generate.