]>
Commit | Line | Data |
---|---|---|
68863b35 ŁK |
1 | # |
2 | # Conditional build: | |
3 | # | |
4 | %bcond_with 256colors # unsupported 256 colors patch (see FAQ) | |
4246a824 | 5 | %include /usr/lib/rpm/macros.perl |
3c5d1f97 | 6 | Summary: Rxvt terminal with unicode support and some improvements |
3f694a96 | 7 | Summary(pl.UTF-8): Terminal Rxvt z obsługą unicode i kilkoma usprawnieniami |
60ac0bf0 | 8 | Name: urxvt |
6a5de310 | 9 | Version: 9.07 |
aa4a2eca | 10 | Release: 2 |
3ec874f3 | 11 | License: GPL v2+ |
b4c7c0cb | 12 | Group: X11/Applications |
60ac0bf0 | 13 | Source0: http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-%{version}.tar.bz2 |
6a5de310 | 14 | # Source0-md5: 49bb52c99e002bf85eb41d8385d903b5 |
60ac0bf0 | 15 | Source1: %{name}.desktop |
21767311 | 16 | URL: http://software.schmorp.de/ |
3ec874f3 | 17 | BuildRequires: autoconf >= 2.50 |
60152a50 | 18 | BuildRequires: fontconfig-devel |
4f749431 | 19 | BuildRequires: libstdc++-devel |
a814059b | 20 | BuildRequires: perl-devel |
80479010 | 21 | BuildRequires: pkgconfig |
22 | BuildRequires: rpm-perlprov | |
b0b0cbe7 | 23 | BuildRequires: sed >= 4.0 |
2040bb67 JB |
24 | BuildRequires: xorg-lib-libXext-devel |
25 | BuildRequires: xorg-lib-libXft-devel | |
26 | BuildRequires: xorg-lib-libXpm-devel | |
60152a50 | 27 | BuildRequires: zlib-devel |
f4b30b8d | 28 | Requires: terminfo |
60ac0bf0 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
3c5d1f97 | 32 | URxvt is a Rxvt modification which includes: |
33 | - unicode support | |
34 | - xft font support (antialiasing) | |
35 | - background pixmaps | |
36 | - background tinting | |
60152a50 | 37 | - real transparency |
60ac0bf0 | 38 | |
2601297f JR |
39 | %description -l pl.UTF-8 |
40 | URxvt jest modyfikacją Rxvt uwzględniającą: | |
41 | - obsługę unicode | |
42 | - obsługę czcionek xft (antialiasing) | |
43 | - możliwość ustawienia grafiki jako tła | |
44 | - cieniowanie tła | |
45 | - prawdziwą przezroczystość | |
60ac0bf0 | 46 | |
47 | %prep | |
66672474 | 48 | %setup -q -n rxvt-unicode-%{version} |
68863b35 ŁK |
49 | %if %{with 256colors} |
50 | patch -p1 < doc/urxvt-8.2-256color.patch | |
51 | %endif | |
21767311 | 52 | |
60ac0bf0 | 53 | %build |
60ac0bf0 | 54 | %{__autoheader} |
55 | %{__autoconf} | |
60ac0bf0 | 56 | %configure \ |
68863b35 ŁK |
57 | %if %{with 256colors} |
58 | --enable-xterm-colors=256 \ | |
59 | %endif | |
60ac0bf0 | 60 | --enable-everything \ |
60ac0bf0 | 61 | --enable-mousewheel \ |
66672474 | 62 | --enable-next-scroll \ |
3c5d1f97 | 63 | --with-term=rxvt \ |
6a5de310 | 64 | --disable-afterimage \ |
68863b35 | 65 | --enable-smart-resize |
1e49814b | 66 | |
b0b0cbe7 | 67 | %{__make} \ |
4fe41ea3 | 68 | CXXFLAGS="%{rpmcxxflags}" \ |
21767311 | 69 | CFLAGS="%{rpmcxxflags}" |
60ac0bf0 | 70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
78 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
bcee6e37 | 79 | echo '.so urxvtc.1' >$RPM_BUILD_ROOT%{_mandir}/man1/urxvtd.1 |
60ac0bf0 | 80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
3ec874f3 JB |
86 | %doc Changes doc/README.xvt |
87 | %attr(755,root,root) %{_bindir}/urxvt* | |
4246a824 | 88 | %{_libdir}/%{name} |
60ac0bf0 | 89 | %{_desktopdir}/urxvt.desktop |
3ec874f3 JB |
90 | %{_mandir}/man1/urxvt*.1* |
91 | %{_mandir}/man3/urxvtperl.3* | |
92 | %{_mandir}/man7/urxvt.7* |