]> git.pld-linux.org Git - packages/GNUnet.git/blame - GNUnet.spec
- updated gettext BR
[packages/GNUnet.git] / GNUnet.spec
CommitLineData
f5d9b148 1#
2# Conditional build:
3%bcond_without ipv6 # without IPv6 support
4#
f9a1bedf 5Summary: An anonymous distributed secure network
13b478ec 6Summary(pl.UTF-8): Anonimowa, rozproszona, bezpieczna sieć
6ad3cf51 7Name: GNUnet
f5d9b148 8Version: 0.6.5
f9a1bedf 9Release: 0.1
f9a1bedf 10License: GPL
91f06b25 11Group: Applications/Networking
755a0de5 12Source0: http://www.ovmj.org/GNUnet/download/%{name}-%{version}.tar.bz2
f5d9b148 13# Source0-md5: 8bca32b55dccdb5bde7bd2b38df9df03
f9a1bedf 14Source1: gnunet.init
e21d52e6 15Patch0: %{name}-nolibs.patch
f5d9b148 16Patch1: %{name}-ipv6.patch
f9a1bedf 17URL: http://www.gnu.org/software/GNUnet/
e21d52e6
JB
18BuildRequires: autoconf >= 2.57
19BuildRequires: automake
20BuildRequires: db-devel
21BuildRequires: gdbm-devel
b65d10b6 22BuildRequires: gettext-tools
b517b910 23BuildRequires: gmp-devel >= 4.0.0
df9d3976 24BuildRequires: gtk+2-devel >= 2:2.4
f5d9b148 25BuildRequires: libextractor-devel >= 0.3.10
e21d52e6
JB
26BuildRequires: libltdl-devel
27BuildRequires: libtool >= 1:1.4.2-9
28BuildRequires: mysql-devel >= 3.23.56
3c319124 29BuildRequires: openssl-devel >= 0.9.7d
91f06b25 30BuildRequires: rpmbuild(macros) >= 1.268
e21d52e6 31BuildRequires: tdb-devel
91f06b25
ER
32Requires(post,postun): /sbin/ldconfig
33Requires(post,preun): /sbin/chkconfig
34Requires(postun): /usr/sbin/groupdel
35Requires(postun): /usr/sbin/userdel
f9a1bedf 36Requires(pre): /bin/id
9069b00e 37Requires(pre): /usr/bin/getgid
f9a1bedf 38Requires(pre): /usr/sbin/groupadd
39Requires(pre): /usr/sbin/useradd
6ad3cf51
JB
40Requires: gdbm
41Requires: gtk+ >= 1.2
f5d9b148 42Requires: libextractor >= 0.3.10
43Requires: openssl >= 0.9.7d
91f06b25 44Requires: rc-scripts
9069b00e 45Provides: group(gnunet)
46Provides: user(gnunet)
f9a1bedf 47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
91f06b25 49%define _gnunethomedir /var/lib/GNUnet
93709491 50
1b503169 51%description
52GNUnet is framework for secure peer-to-peer networking. The primary
53application for GNUnet is anonymous file-sharing. GNUnet is part of
91f06b25 54the GNU project <http://www.gnu.org/>.
1b503169 55
56While GNUnet file-sharing provides anonymity for its users, it also
57provides accounting to perform better resource allocation.
58Contributing users are rewarded with better service. Peers monitor the
59behavior of other peers and allocate resources for peers that are
60economically trusted. The content encoding makes it hard for peers to
61circumvent the reward system.
62
63GNUnet supports multiple transport protocols, currently UDP, TCP and
64SMTP. The framework automatically chooses a cheap transport that is
65currently available by both peers for any given link. It is possible
66to run GNUnet peers behind NAT boxes and almost all firewall
67configurations.
68
69This is a beta version. The important features have been implemented
70and tested. The security features are in place, but note that
71anonymity may be limited due to the small number of active
72participants.
73
74For a more detailed description of GNUnet, see our webpages at:
91f06b25 75<http://www.gnu.org/software/GNUnet/> and <http://www.ovmj.org/GNUnet/>
1b503169 76
8ba789ad
JB
77Note that this RPM contains only plain directories database frontend;
78bdb, gdbm, mysql and tdb frontends are in separate subpackages.
1b503169 79
cfda3fa0 80%description -l pl.UTF-8
f9a1bedf 81GNUnet stanowi szkielet bezpiecznej sieci typu peer-to-peer.
cfda3fa0
JR
82Podstawową aplikacją GNUnet jest anonimowe współdzielenie plików.
83GNUnet stanowi część projektu GNU (http://www.gnu.org/).
84
85Podczas gdy współdzielenie plików za pomocą GNUnet zapewnia
86użytkownikom anonimowość, umożliwia ono również ewidencjonowanie dla
87zapewnienia lepszego gospodarowania zasobami. Użytkownicy wnoszący coś
88są nagradzani lepszą jakością usługi. Każdy z równorzędnych
89użytkowników monitoruje zachowanie pozostałych i przydziela zasoby
90użytkownikom, którzy są ekonomicznie wiarygodni. Kodowanie treści
91czyni system nagród trudnym do przechytrzenia.
92
93GNUnet wspiera wiele protokołów transportowych, aktualnie: UDP, TCP i
94SMTP. Szkielet automatycznie wybiera tanią metodę transportu dostępną
95w danej chwili dla obu użytkowników przy dowolnym połączeniu. GNUnet
96może działać pomiędzy dwiema maszynami znajdującymi się za NAT i z
f9a1bedf 97prawie wszystkimi konfiguracjami firewalli.
98
cfda3fa0
JR
99Jest to wersja beta. Najważniejsze funkcje zostały zaimplementowane i
100przetestowane. Funkcje zapewniające bezpieczeństwo są na swoim
101miejscu, lecz należy zauważyć, że anonimowość może być ograniczona ze
102względu na małą liczbę aktywnych uczestników.
f9a1bedf 103
cfda3fa0 104Bardziej szczegółowy opis GNUnet można znaleźć na stronie:
91f06b25 105<http://www.gnu.org/software/GNUnet/> i <http://www.ovmj.org/GNUnet/>
f9a1bedf 106
cfda3fa0
JR
107Należy też zauważyć, że ten pakiet zawiera tylko interfejs bazodanowy
108dla zwykłych katalogów; wtyczki obsługujące bazy bdb, gdbm, mysql i
109tdb znajdują się w osobnych podpakietach.
f9a1bedf 110
e21d52e6
JB
111%package bdb
112Summary: BerkeleyDB database support for GNUnet
13b478ec 113Summary(pl.UTF-8): Obsługa bazy BerkeleyDB dla GNUnet
b9698574 114Group: Applications/Networking
f5d9b148 115Requires: %{name} = %{version}-%{release}
e21d52e6
JB
116
117%description bdb
118This package contains BerkeleyDB database frontend for GNUnet.
119
cfda3fa0 120%description bdb -l pl.UTF-8
e21d52e6
JB
121Pakiet ten zawiera interfejs bazy danych BerkeleyDB dla GNUnet.
122
123%package gdbm
124Summary: GDBM database support for GNUnet
13b478ec 125Summary(pl.UTF-8): Obsługa bazy GDBM dla GNUnet
b9698574 126Group: Applications/Networking
f5d9b148 127Requires: %{name} = %{version}-%{release}
e21d52e6
JB
128
129%description gdbm
130This package contains GDBM database frontend for GNUnet.
131
cfda3fa0 132%description gdbm -l pl.UTF-8
e21d52e6
JB
133Pakiet ten zawiera interfejs bazy danych GDBM dla GNUnet.
134
1b503169 135%package mysql
136Summary: MySQL database support for GNUnet
13b478ec 137Summary(pl.UTF-8): Obsługa bazy MySQL dla GNUnet
b9698574 138Group: Applications/Networking
f5d9b148 139Requires: %{name} = %{version}-%{release}
fbaab881 140Requires: mysql-libs >= 3.23.56
1b503169 141
142%description mysql
143This package contains MySQL database frontend for GNUnet.
144
cfda3fa0 145%description mysql -l pl.UTF-8
f9a1bedf 146Pakiet ten zawiera interfejs bazy danych MySQL dla GNUnet.
147
e21d52e6
JB
148%package tdb
149Summary: TDB database support for GNUnet
13b478ec 150Summary(pl.UTF-8): Obsługa bazy TDB dla GNUnet
b9698574 151Group: Applications/Networking
f5d9b148 152Requires: %{name} = %{version}-%{release}
1b503169 153
e21d52e6
JB
154%description tdb
155This package contains TDB database frontend for GNUnet.
1b503169 156
cfda3fa0 157%description tdb -l pl.UTF-8
e21d52e6 158Pakiet ten zawiera interfejs bazy danych TDB dla GNUnet.
f9a1bedf 159
1b503169 160%prep
1b503169 161%setup -q
0f35fdb2 162%patch0 -p1
f5d9b148 163%{?with_ipv6:%patch1 -p1}
1b503169 164
165%build
f5d9b148 166%{__gettextize}
167%{__libtoolize} --ltdl
b517b910 168%{__aclocal} -I m4
e21d52e6
JB
169%{__autoconf}
170%{__autoheader}
171%{__automake}
fbaab881 172%configure \
e21d52e6 173 --disable-static \
fbaab881 174 --with-gdbm=/usr \
175 --with-mysql=/usr \
176 --with-tdb=/usr \
acb10246 177 --with-crypto=/usr \
f5d9b148 178 %{?with_ipv6:--enable-ipv6}
e21d52e6 179
1b503169 180%{__make}
181
182%install
183rm -rf $RPM_BUILD_ROOT
e21d52e6
JB
184
185%{__make} install \
186 DESTDIR=$RPM_BUILD_ROOT
187
755a0de5
TP
188install -d $RPM_BUILD_ROOT/etc/{skel/.gnunet,/rc.d/init.d} \
189 $RPM_BUILD_ROOT%{_gnunethomedir}/{state.sdb,data/{afs,credit,hosts}}
190
191install contrib/gnunet.root $RPM_BUILD_ROOT%{_sysconfdir}/gnunet.conf
192install contrib/gnunet.user $RPM_BUILD_ROOT%{_sysconfdir}/skel/.gnunet/gnunet.conf
193install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/gnunet
1b503169 194
e21d52e6 195# these are normal, dynamically linked libraries - there is no -devel, so *.la not needed
f5d9b148 196rm -f $RPM_BUILD_ROOT%{_libdir}/{libgnunetutil,libgnunet_afs_esed2,libgnunetdht_api}.la \
197 $RPM_BUILD_ROOT%{_libdir}/{libgnunetdht_datastore_memory,libgnunetrpc_util}.la \
198 $RPM_BUILD_ROOT%{_includedir}/*.h
199
200%find_lang %{name}
e21d52e6 201
1b503169 202%clean
203rm -rf $RPM_BUILD_ROOT
204
93709491 205%pre
f490ad8a
ER
206%groupadd -g 115 gnunet
207%useradd -o -u 115 -d /var/lib/GNUnet -s /bin/sh -g gnunet -c "GNUnet daemon" gnunet
93709491 208
1b503169 209%post
1b503169 210/sbin/ldconfig
fbaab881 211/sbin/chkconfig --add gnunet
91f06b25 212%service gnunet restart "GNUnet"
93709491 213
214%preun
91f06b25
ER
215if [ "$1" = 0 ]; then
216 %service gnunet stop
217 /sbin/chkconfig --del gnunet
93709491 218fi
219
220%postun
221/sbin/ldconfig
6ad3cf51 222if [ "$1" = "0" ]; then
9069b00e 223 %userremove gnunet
224 %groupremove gnunet
6ad3cf51 225fi
1b503169 226
f5d9b148 227%files -f %{name}.lang
1b503169 228%defattr(644,root,root,755)
0f35fdb2 229%doc AUTHORS ChangeLog NEWS PLATFORMS README UPDATING
1b503169 230%attr(755,root,root) %{_bindir}/gnunet-chat
1b503169 231%attr(755,root,root) %{_bindir}/gnunet-check
232%attr(755,root,root) %{_bindir}/gnunet-convert
f5d9b148 233%attr(755,root,root) %{_bindir}/gnunet-delete
234%attr(755,root,root) %{_bindir}/gnunet-dht-join
235%attr(755,root,root) %{_bindir}/gnunet-dht-query
755a0de5 236%attr(755,root,root) %{_bindir}/gnunet-directory
f5d9b148 237%attr(755,root,root) %{_bindir}/gnunet-download
238#%attr(755,root,root) %{_bindir}/gnunet-download-manager.scm
239%attr(755,root,root) %{_bindir}/gnunet-gtk
240%attr(755,root,root) %{_bindir}/gnunet-insert
241%attr(755,root,root) %{_bindir}/gnunet-peer-info
755a0de5 242%attr(755,root,root) %{_bindir}/gnunet-pseudonym
f5d9b148 243%attr(755,root,root) %{_bindir}/gnunet-search
755a0de5 244%attr(755,root,root) %{_bindir}/gnunet-setup
f5d9b148 245%attr(755,root,root) %{_bindir}/gnunet-stats
246%attr(755,root,root) %{_bindir}/gnunet-tbench
755a0de5 247%attr(755,root,root) %{_bindir}/gnunet-testbed
f5d9b148 248%attr(755,root,root) %{_bindir}/gnunet-tracekit
249%attr(755,root,root) %{_bindir}/gnunet-transport-check
250%attr(755,root,root) %{_bindir}/gnunet-update
251%attr(755,root,root) %{_bindir}/gnunetd
e21d52e6
JB
252
253# normal, dynamically linked libraries
755a0de5 254%attr(755,root,root) %{_libdir}/libgnunet_afs_esed2.so.0.0.0
f5d9b148 255%attr(755,root,root) %{_libdir}/libgnunetdht_api.so.0.0.0
256%attr(755,root,root) %{_libdir}/libgnunetdht_datastore_memory.so.0.0.0
257%attr(755,root,root) %{_libdir}/libgnunetrpc_util.so.0.0.0
258%attr(755,root,root) %{_libdir}/libgnunetutil.so.0.0.0
e21d52e6
JB
259
260# ltdlopened plugins - these must have *.la
755a0de5 261%attr(755,root,root) %{_libdir}/libgnunetafs_database_directory.so
e21d52e6 262%{_libdir}/libgnunetafs_database_directory.la
755a0de5 263%attr(755,root,root) %{_libdir}/libgnunetafs_protocol.so
e21d52e6 264%{_libdir}/libgnunetafs_protocol.la
755a0de5 265%attr(755,root,root) %{_libdir}/libgnunetchat_protocol.so
e21d52e6 266%{_libdir}/libgnunetchat_protocol.la
f5d9b148 267%attr(755,root,root) %{_libdir}/libgnunetdht_protocol.so
268%{_libdir}/libgnunetdht_protocol.la
269%attr(755,root,root) %{_libdir}/libgnunetrpc_protocol.so
270%{_libdir}/libgnunetrpc_protocol.la
755a0de5 271%attr(755,root,root) %{_libdir}/libgnunettbench_protocol.so
e21d52e6 272%{_libdir}/libgnunettbench_protocol.la
f5d9b148 273%attr(755,root,root) %{_libdir}/libgnunettestbed_protocol.so
274%{_libdir}/libgnunettestbed_protocol.la
755a0de5 275%attr(755,root,root) %{_libdir}/libgnunettracekit_protocol.so
e21d52e6 276%{_libdir}/libgnunettracekit_protocol.la
755a0de5 277%attr(755,root,root) %{_libdir}/libgnunettransport_http.so
e21d52e6 278%{_libdir}/libgnunettransport_http.la
f5d9b148 279%attr(755,root,root) %{_libdir}/libgnunettransport_nat.so
280%{_libdir}/libgnunettransport_nat.la
281%attr(755,root,root) %{_libdir}/libgnunettransport_smtp.so
282%{_libdir}/libgnunettransport_smtp.la
755a0de5 283%attr(755,root,root) %{_libdir}/libgnunettransport_tcp.so
e21d52e6 284%{_libdir}/libgnunettransport_tcp.la
755a0de5 285%attr(755,root,root) %{_libdir}/libgnunettransport_udp.so
e21d52e6 286%{_libdir}/libgnunettransport_udp.la
f5d9b148 287%if %{with ipv6}
288%attr(755,root,root) %{_libdir}/libgnunettransport_tcp6.so
289%{_libdir}/libgnunettransport_tcp6.la
acb10246 290%attr(755,root,root) %{_libdir}/libgnunettransport_udp6.so
291%{_libdir}/libgnunettransport_udp6.la
f5d9b148 292%endif
e21d52e6 293
bd59aed7 294%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnunet.conf
91f06b25 295/etc/skel/.gnunet
e21d52e6 296%attr(754,root,root) /etc/rc.d/init.d/gnunet
f5d9b148 297%{_mandir}/man1/gnunet-chat.1*
298%{_mandir}/man1/gnunet-check.1*
6ad3cf51 299%{_mandir}/man1/gnunet-convert.1*
6ad3cf51 300%{_mandir}/man1/gnunet-delete.1*
f5d9b148 301%{_mandir}/man1/gnunet-directory.1*
302%{_mandir}/man1/gnunet-download-manager.1*
303%{_mandir}/man1/gnunet-download.1*
304%{_mandir}/man1/gnunet-gtk.1*
6ad3cf51 305%{_mandir}/man1/gnunet-insert.1*
6ad3cf51 306%{_mandir}/man1/gnunet-peer-info.1*
755a0de5 307%{_mandir}/man1/gnunet-pseudonym.1*
f5d9b148 308%{_mandir}/man1/gnunet-search.1*
309%{_mandir}/man1/gnunet-stats.1*
310%{_mandir}/man1/gnunet-tbench.1*
755a0de5 311%{_mandir}/man1/gnunet-testbed.1*
f5d9b148 312%{_mandir}/man1/gnunet-tracekit.1*
313%{_mandir}/man1/gnunet-transport-check.1*
314%{_mandir}/man1/gnunet-update.1*
315%{_mandir}/man1/gnunetd.1*
755a0de5 316%{_mandir}/man5/gnunet.conf.5*
fbaab881 317%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}
fbaab881 318%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data
755a0de5
TP
319%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/afs
320%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/credit
fbaab881 321%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/data/hosts
755a0de5 322%attr(2770,gnunet,gnunet) %dir %{_gnunethomedir}/state.sdb
1b503169 323
e21d52e6 324# these (and *.so for them) should be in -devel or /dev/null
e21d52e6 325#%{_libdir}/libgnunetutil.la
755a0de5 326#%{_libdir}/libgnunet_afs_esed2.la
f5d9b148 327#%{_libdir}/libgnunetdht_api.la
328#%{_libdir}/libgnunetdht_datastore_memory.la
329#%{_libdir}/libgnunetrpc_util.la
e21d52e6
JB
330
331%files bdb
332%defattr(644,root,root,755)
755a0de5 333%attr(755,root,root) %{_libdir}/libgnunetafs_database_bdb.so
e21d52e6
JB
334%{_libdir}/libgnunetafs_database_bdb.la
335
336%files gdbm
337%defattr(644,root,root,755)
755a0de5 338%attr(755,root,root) %{_libdir}/libgnunetafs_database_gdbm.so
e21d52e6
JB
339%{_libdir}/libgnunetafs_database_gdbm.la
340
1b503169 341%files mysql
342%defattr(644,root,root,755)
755a0de5 343%attr(755,root,root) %{_libdir}/libgnunetafs_database_mysql.so
e21d52e6 344%{_libdir}/libgnunetafs_database_mysql.la
1b503169 345
e21d52e6
JB
346%files tdb
347%defattr(644,root,root,755)
755a0de5 348%attr(755,root,root) %{_libdir}/libgnunetafs_database_tdb.so
e21d52e6 349%{_libdir}/libgnunetafs_database_tdb.la
This page took 0.127988 seconds and 4 git commands to generate.