]>
Commit | Line | Data |
---|---|---|
e62e50a9 | 1 | Summary: GTK+2 based notepad clone |
af3267c0 | 2 | Summary(pl.UTF-8): Klon notepada oparty na GTK+ |
e62e50a9 | 3 | Name: leafpad |
4fa9963c | 4 | Version: 0.8.18.1 |
a0c38cab | 5 | Release: 2 |
e62e50a9 | 6 | License: GPL |
7 | Group: X11/Applications/Editors | |
bd27ac68 | 8 | Source0: http://savannah.nongnu.org/download/leafpad/%{name}-%{version}.tar.gz |
4fa9963c | 9 | # Source0-md5: 254a72fc67505e3aa52884c729cd7b97 |
a0c38cab | 10 | Patch0: %{name}-werror.patch |
e62e50a9 | 11 | URL: http://tarot.freeshell.org/leafpad/ |
46774973 | 12 | BuildRequires: automake |
ddd4a8db | 13 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
e62e50a9 | 14 | BuildRequires: pkgconfig |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Leafpad is a simple GTK+ based text editor. The user interface is | |
19 | similar to "notepad", and it aims to be lighter than GEdit and KWrite | |
20 | and to be as useful as them. | |
21 | ||
3a70148e JR |
22 | %description -l pl.UTF-8 |
23 | Leafpad to prosty edytor tekstu oparty na GTK+. Program w założeniach | |
24 | ma być lżejszy od GEdita i KWrite'a, ale tak samo użyteczny jak one. | |
25 | Interfejs użytkownika jest podobny do programu "notepad". | |
e62e50a9 | 26 | |
27 | %prep | |
28 | %setup -q | |
a0c38cab | 29 | %patch0 -p1 |
e62e50a9 | 30 | |
31 | %build | |
46774973 | 32 | cp /usr/share/automake/config.sub . |
89ee43b8 | 33 | %configure \ |
34 | --enable-chooser | |
e62e50a9 | 35 | %{__make} |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
e62e50a9 | 39 | |
40 | %{__make} install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
e62e50a9 | 43 | %find_lang %{name} |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
21f43f05 | 48 | %post |
49 | umask 022 | |
50 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: | |
51 | ||
52 | %postun | |
53 | umask 022 | |
54 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 | |
55 | ||
e62e50a9 | 56 | %files -f %{name}.lang |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHORS ChangeLog README | |
59 | %attr(755,root,root) %{_bindir}/* | |
60 | %{_pixmapsdir}/* | |
db29b4c8 | 61 | %{_iconsdir}/hicolor/*/apps/*.png |
62 | %{_iconsdir}/hicolor/*/apps/*.svg | |
006cb0d0 | 63 | %{_desktopdir}/%{name}.desktop |