Release: 1.1.1 -> 1.1.2cvs
[udpgate.git] / udpgate.spec.in
1 # $Id$
2 # rpm package description file for building
3 # Copyright (C) 2004 Jan Kratochvil <project-udpgate@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 # Temporary cludge before full 'devel' package gets deployed
20 %define _unpackaged_files_terminate_build 0
21
22 Summary: UDP packets gatewaying utility
23 Name: @PACKAGE@
24 %define release 0
25 Version: @VERSION@
26 Release: %{release}
27 Group: Applications/Communications
28 Packager: Jan Kratochvil <project-udpgate@jankratochvil.net>
29 URL: http://www.jankratochvil.net/project/udpgate/
30 Source: http://www.jankratochvil.net/project/udpgate/dist/@PACKAGE@-@VERSION@.tar.gz
31 License: GPL
32 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
33 BuildRequires: popt
34 Requires: popt
35 BuildRequires: glib2-devel
36 Requires: glib2
37 BuildRequires: libgnomeui-devel
38 Requires: libgnomeui
39
40 %description
41 Utility will transparently provide virtual MMS center on your personal
42 computer.  As GSM operators usually block all the alternate service gateways
43 they should not be able to block all the personal gateways of all their
44 customers.
45
46 %prep
47 %setup
48
49 %build
50 %configure \
51                 --enable-shared --disable-static \
52                 --enable-man-pages \
53                 --disable-bundle
54 make
55
56 %install
57 make DESTDIR=$RPM_BUILD_ROOT install-strip
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 %{_bindir}/@PACKAGE@ --text --startup-on  || true
64
65 %preun
66 %{_bindir}/@PACKAGE@ --text --startup-off || true
67
68 %files
69 %defattr(-,root,root)
70 %doc README NEWS AUTHORS
71 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@.*
72 # Do not: /etc/rc.d/init.d/...
73 # to comply with http://www.linuxbase.org/spec/booksets/LSB-Core/LSB-Core.html#INITSRCINSTRM
74 %attr(755,root,root) %{_sysconfdir}/init.d/@PACKAGE@
75 # %config(noreplace) %{_sysconfdir}/sysconfig/@PACKAGE@
76 %{_bindir}/@PACKAGE@
77 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo