]>
Commit | Line | Data |
---|---|---|
f07cc01b | 1 | Summary: The GLib Ncurses Toolkit |
45edcca2 | 2 | Summary(pl.UTF-8): Biblioteka GLib Ncurses Toolkit |
f07cc01b | 3 | Name: libgnt |
923d96ec | 4 | Version: 2.14.2 |
f07cc01b | 5 | Release: 1 |
c4b43dea | 6 | License: GPL v2+ |
f07cc01b | 7 | Group: Libraries |
923d96ec JP |
8 | Source0: https://downloads.sourceforge.net/pidgin/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 1af8741ebd551d286586acdf39c837e4 | |
c4b43dea | 10 | URL: https://keep.imfreedom.org/libgnt/libgnt |
f07cc01b JP |
11 | BuildRequires: glib2-devel >= 1:2.16.0 |
12 | BuildRequires: gtk-doc | |
c4b43dea JB |
13 | BuildRequires: libxml2-devel >= 1:2.6.0 |
14 | BuildRequires: meson >= 0.41.0 | |
f07cc01b JP |
15 | BuildRequires: ncurses-devel |
16 | BuildRequires: ncurses-ext-devel | |
17 | BuildRequires: ninja | |
18 | BuildRequires: pkgconfig | |
c4b43dea | 19 | BuildRequires: python-devel >= 1:2.7 |
424cf8ab | 20 | BuildRequires: rpm-build >= 4.6 |
c4b43dea JB |
21 | BuildRequires: rpmbuild(macros) >= 1.736 |
22 | BuildRequires: sed >= 4.0 | |
23 | BuildRequires: tar >= 1:1.22 | |
24 | BuildRequires: xz | |
f07cc01b | 25 | Requires: glib2 >= 1:2.16.0 |
c4b43dea | 26 | Requires: libxml2 >= 1:2.6.0 |
f07cc01b JP |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | GNT is an ncurses toolkit for creating text-mode graphical user | |
31 | interfaces in a fast and easy way. It is based on GLib and ncurses. | |
32 | ||
33 | It was born out of the console-based UI, Finch, for the libpurple | |
34 | project, but has now been split into its own independent repository. | |
35 | ||
45edcca2 JB |
36 | %description -l pl.UTF-8 |
37 | GNT to biblioteka narzędziowa ncurses do tworzenia graficznych | |
38 | interfejsów użytkownika w trybie tekstowym w szybki i łatwy sposób. | |
39 | Jeset oparta na bibliotekach GLib i ncurses. | |
40 | ||
41 | Biblioteka powstała z konsolowego interfejsu użytkownika Finch, | |
42 | stworzonego dla projektu libpurple, ale została wydzielona do | |
43 | samodzielnego repozytorium. | |
44 | ||
f07cc01b JP |
45 | %package devel |
46 | Summary: Header files for GNT library | |
45edcca2 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNT |
f07cc01b JP |
48 | Group: Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
52 | Header files for GNT library. | |
53 | ||
45edcca2 JB |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki GNT. | |
56 | ||
f07cc01b JP |
57 | %package static |
58 | Summary: Static GNT library | |
45edcca2 | 59 | Summary(pl.UTF-8): Statyczna biblioteka GNT |
f07cc01b JP |
60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static GNT library. | |
65 | ||
45edcca2 JB |
66 | %description static -l pl.UTF-8 |
67 | Statyczna biblioteka GNT. | |
68 | ||
f07cc01b JP |
69 | %package apidocs |
70 | Summary: GNT API documentation | |
45edcca2 | 71 | Summary(pl.UTF-8): Dokumentacja API biblioteki GNT |
f07cc01b JP |
72 | Group: Documentation |
73 | Requires: gtk-doc-common | |
f07cc01b | 74 | BuildArch: noarch |
f07cc01b JP |
75 | |
76 | %description apidocs | |
77 | GNT API documentation. | |
78 | ||
45edcca2 JB |
79 | %description apidocs -l pl.UTF-8 |
80 | Dokumentacja API biblioteki GNT. | |
81 | ||
f07cc01b | 82 | %prep |
c4b43dea JB |
83 | %setup -q |
84 | ||
85 | %{__sed} -i -e 's/ = library(/ = shared_library(/' wms/meson.build | |
f07cc01b JP |
86 | |
87 | %build | |
88 | %meson build | |
c4b43dea | 89 | |
f07cc01b JP |
90 | %ninja_build -C build |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %ninja_install -C build | |
96 | ||
f07cc01b JP |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
c4b43dea | 105 | %doc COPYRIGHT ChangeLog README.md |
f07cc01b JP |
106 | %attr(755,root,root) %{_libdir}/libgnt.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libgnt.so.0 | |
108 | %dir %{_libdir}/gnt | |
109 | %attr(755,root,root) %{_libdir}/gnt/irssi.so | |
110 | %attr(755,root,root) %{_libdir}/gnt/s.so | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libgnt.so | |
c4b43dea | 115 | %{_includedir}/gnt |
f07cc01b JP |
116 | %{_pkgconfigdir}/gnt.pc |
117 | ||
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libgnt.a | |
121 | ||
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
124 | %{_gtkdocdir}/libgnt |