forked from pcman-bbs/pcmanx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcmanx-gtk2.spec.in
84 lines (72 loc) · 2.11 KB
/
pcmanx-gtk2.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%define ver @VERSION@
%define rel 1
Name: pcmanx-gtk2
Version: %{ver}
Release: %{rel}%{?dist}
Summary: User-friendly telnet client designed for BBS browsing
Group: Productivity/Networking/Other
License: GPLv2+
Url: http://code.google.com/p/pcmanx-gtk2/
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gtk2-devel, libnotify-devel, libtool-ltdl-devel, intltool, gcc-c++
%if 0%{?suse_version}
BuildRequires: xz, update-desktop-files
Requires: libltdl7
%else
Requires: libtool-ltdl
%endif
Requires: gtk2, wqy-microhei-fonts
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%{?!DEBUGINFO: %define DEBUGINFO 1}
%if !%{DEBUGINFO}
%define debug_package %{nil}
%endif
%description
An easy-to-use telnet client mainly targets BBS users.
PCManX is a newly developed GPL'd version of PCMan, a full-featured famous BBS
client formerly designed for MS Windows only. It aimed to be an easy-to-use yet
full-featured telnet client facilitating BBS browsing with the ability to
process double-byte characters.
%prep
%setup -q
%build
%configure --enable-iplookup --enable-proxy --enable-libnotify \
%if %{DEBUGINFO}
--enable-debug \
%endif
;
make %{?_smp_mflags} V=1
%install
%makeinstall
%if 0%{?suse_version}
%suse_update_desktop_file pcmanx GTK Network News Chat InstantMessaging
%endif
%find_lang pcmanx
%post
%if 0%{?suse_version}
%desktop_database_post
%endif
%postun
%if 0%{?suse_version}
%desktop_database_postun
%endif
%files -f pcmanx.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%dir %{_datadir}/pcmanx/
%dir %{_datadir}/pcmanx/nancy_bot/
%{_bindir}/pcmanx
%{_datadir}/applications/pcmanx.desktop
%{_datadir}/pcmanx/emoticons
%{_datadir}/pcmanx/sitelist
%{_datadir}/pcmanx/nancy_bot/default.conf
%{_datadir}/pcmanx/nancy_bot/default_msg.data
%{_datadir}/pcmanx/nancy_bot/example_msg.data
%{_datadir}/pcmanx/nancy_bot/example_usages.data
%{_datadir}/pcmanx/nancy_bot/example.conf
%{_datadir}/pcmanx/nancy_bot/default_usages.data
%{_datadir}/pixmaps/pcmanx.svg
%{_mandir}/man1/pcmanx.1*
%changelog