1 # TODO: init scripts/service files for zephyrd and zhm
4 %bcond_without apidocs # API documentation
5 %bcond_with hesiod # Hesiod support
6 %bcond_without kerberos5 # Kerberos 5 support
7 %bcond_without static_libs # static library
9 Summary: Project Athena's notification service
10 Summary(pl.UTF-8): Usługa powiadomień z Projektu Athena
16 #Source0Download: https://github.com/zephyr-im/zephyr/releases
17 Source0: https://github.com/zephyr-im/zephyr/archive/%{version}/%{name}-%{version}.tar.gz
18 # Source0-md5: f41be8ee4383d100d4eeb7ed7de0e018
19 Patch0: %{name}-heimdal.patch
20 URL: https://github.com/zephyr-im/zephyr
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake
24 BuildRequires: c-ares-devel
26 %{?with_kerberos5:BuildRequires: heimdal-devel}
27 %{?with_hesiod:BuildRequires: hesiod-devel}
28 BuildRequires: libcom_err-devel
29 BuildRequires: libss-devel
30 BuildRequires: libtool
31 BuildRequires: ncurses-devel
32 BuildRequires: xorg-lib-libX11-devel
33 # if using noarch subpackages:
34 #BuildRequires: rpm-build >= 4.6
35 Requires: %{name}-libs = %{version}-%{release}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Zephyr allows users to send messages to other users or to groups of
40 users. Users can view incoming Zephyr messages as windowgrams
41 (transient X windows) or as text on a terminal. Zephyr can optionally
42 make use of the Kerberos security library or the Hesiod service name
45 This package contains Zephyr clients.
47 %description -l pl.UTF-8
48 Zephyr pozwala użytkownikom wysyłać wiadomości do innych użytkowników
49 lub grup użytkowników. Użytkownicy mogą zobaczyć przychodzące
50 wiadomości Zephyra jako oknogramy (przemijające okienka X) albo jako
51 tekst na terminalu. Zephyr opcjonalnie może wykorzystywać bibliotekę
52 bezpieczeństwa Kerberos lub bibliotekę rozwiązywania nazw usług
55 Ten pakiet zawiera programy klienckie Zephyra.
58 Summary: Zephyr server
59 Summary(pl.UTF-8): Serwer usługi Zephyr
60 Group: Networking/Daemons
61 Requires: %{name}-libs = %{version}-%{release}
64 zephyrd is the central server for the Zephyr Notification System. It
65 maintains a location database of all currently logged-in users, and a
66 subscription database for each user's Zephyr clients.
68 %description server -l pl.UTF-8
69 zephyrd to centralny serwer systemu powiadomień Zephyr. Utrzymuje bazę
70 danych lokalizacji wszystkich aktualnie zalogowanych użytkowników oraz
71 bazę danych subskrypcji klientów Zephyra dla każdego użytkownika.
74 Summary: Zephyr service shared library
75 Summary(pl.UTF-8): Biblioteka współdzielona usługi Zephyr
79 Zephyr service shared library.
81 %description libs -l pl.UTF-8
82 Biblioteka współdzielona usługi Zephyr.
85 Summary: Header files for Zephyr library
86 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Zephyr
87 Group: Development/Libraries
88 Requires: %{name}-libs = %{version}-%{release}
89 %{?with_kerberos5:Requires: heimdal-devel}
90 %{?with_hesiod:Requires: hesiod-devel}
93 Header files for Zephyr library.
95 %description devel -l pl.UTF-8
96 Pliki nagłówkowe biblioteki Zephyr.
99 Summary: Static Zephyr library
100 Summary(pl.UTF-8): Statyczna biblioteka Zephyr
101 Group: Development/Libraries
102 Requires: %{name}-devel = %{version}-%{release}
105 Static Zephyr library.
107 %description static -l pl.UTF-8
108 Statyczna biblioteka Zephyr.
114 %{__sed} -i -e 's/__DEV__/%{version}/' configure.ac
122 %{!?with_static_libs:--disable-static} \
123 %{?with_hesiod:--with-hesiod} \
124 %{?with_kerberos5:--with-krb5}
128 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
133 # obsoleted by pkg-config
134 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzephyr.la
137 rm -rf $RPM_BUILD_ROOT
139 %post libs -p /sbin/ldconfig
140 %postun libs -p /sbin/ldconfig
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/zaway
145 %attr(755,root,root) %{_bindir}/zctl
146 %attr(755,root,root) %{_bindir}/zleave
147 %attr(755,root,root) %{_bindir}/zlocate
148 %attr(755,root,root) %{_bindir}/znol
149 %attr(755,root,root) %{_bindir}/zstat
150 %attr(755,root,root) %{_bindir}/zwgc
151 %attr(755,root,root) %{_bindir}/zwrite
152 %attr(755,root,root) %{_sbindir}/zhm
153 %attr(755,root,root) %{_sbindir}/zshutdown_notify
155 %{_mandir}/man1/zaway.1*
156 %{_mandir}/man1/zctl.1*
157 %{_mandir}/man1/zephyr.1*
158 %{_mandir}/man1/zleave.1*
159 %{_mandir}/man1/zlocate.1*
160 %{_mandir}/man1/znol.1*
161 %{_mandir}/man1/zwgc.1*
162 %{_mandir}/man1/zwrite.1*
163 %{_mandir}/man8/zhm.8*
164 %{_mandir}/man8/zshutdown_notify.8*
165 %{_mandir}/man8/zstat.8*
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_sbindir}/zephyrd
170 %dir %{_sysconfdir}/zephyr
171 %dir %{_sysconfdir}/zephyr/acl
172 %config(noreplace) %verify(not md5,mtime,size) %{_sysconfdir}/zephyr/default.subscriptions
173 %{_mandir}/man8/zephyrd.8*
176 %defattr(644,root,root,755)
177 %doc NOTES OPERATING README.in USING h/zephyr/mit-copyright.h
178 %attr(755,root,root) %{_libdir}/libzephyr.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libzephyr.so.4
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_libdir}/libzephyr.so
184 %{_includedir}/zephyr
185 %{_pkgconfigdir}/zephyr.pc
187 %if %{with static_libs}
189 %defattr(644,root,root,755)
190 %{_libdir}/libzephyr.a