blob: 2d74739185bf806d7f63a7bd1095b0391f248653 (
plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
%global _doc %{name}-%{version}
%global _pkgdocdir %{_docdir}/%{_doc}
Name: weechat
Version: 4.3.6
Release: 1
Summary: Portable, fast, light and extensible IRC client
URL: https://weechat.org
License: GPL-3.0-only
Source: https://weechat.org/files/src/%{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: asciidoctor
BuildRequires: ca-certificates
BuildRequires: cmake
BuildRequires: docbook-style-xsl
BuildRequires: enchant-devel
BuildRequires: gettext
BuildRequires: gnutls-devel
BuildRequires: guile-devel
BuildRequires: libcurl-devel
BuildRequires: libgcrypt-devel
BuildRequires: lua-devel
BuildRequires: ncurses-devel
BuildRequires: perl-ExtUtils-Embed
BuildRequires: perl-devel
BuildRequires: python3-devel
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: source-highlight
BuildRequires: tcl-devel
BuildRequires: zstd-devel
Requires: hicolor-icon-theme
%description
WeeChat (Wee Enhanced Environment for Chat) is a portable, fast, light and
extensible IRC client. Everything can be done with a keyboard.
It is customizable and extensible with scripts.
%package devel
Summary: Development files for weechat
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
WeeChat (Wee Enhanced Environment for Chat) is a portable, fast, light and
extensible IRC client. Everything can be done with a keyboard.
It is customizable and extensible with scripts.
This package contains include files and pc file for weechat.
%prep
%autosetup -p1 -n %{name}-%{version}
find doc/ -type f -name 'CMakeLists.txt' \
-exec sed -i -e 's#${PROJECT_NAME}#%{_doc}#g' '{}' \;
sed -i 's/NAMES python3.7/NAMES python%{python3_version}m python%{python3_version}/' cmake/FindPython.cmake
%build
mkdir build
pushd build
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIBDIR=%{_libdir} \
-DENABLE_ENCHANT=ON \
-DENABLE_PYTHON3=ON \
-DENABLE_PHP=OFF \
-DENABLE_DOC=ON \
-DENABLE_MAN=ON \
-DENABLE_JAVASCRIPT=OFF \
-DENABLE_DOC_INCOMPLETE=ON \
-DCA_FILE=/etc/pki/tls/certs/ca-bundle.crt \
..
%make_build VERBOSE=1
popd
%install
pushd build
%make_install
popd
%find_lang %name --with-man
%find_lang %name-headless --with-man
%files -f %{name}.lang -f %name-headless.lang
%doc AUTHORS.adoc ChangeLog.adoc Contributing.adoc
%doc README.adoc ReleaseNotes.adoc
%license COPYING
%{_bindir}/%{name}-curses
%{_bindir}/%{name}
%{_bindir}/%{name}-headless
%{_libdir}/%{name}
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_docdir}/weechat-%{version}/weechat_*.html
%{_mandir}/man1/*
%files devel
%{_includedir}/%{name}
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri Aug 16 2024 Funda Wang <fundawang@yeah.net> - 4.3.6-1
- update to 4.3.6
* Wed Nov 15 2023 ouuleilei <wangliu@iscas.ac.cn> - 4.1.1-1
- Upgrade to 4.1.1
* Wed May 24 2023 chaozhangm <chaozhangm@isoftstone.com> - 3.8-1
- Initial package
|