Fixed compatibilitu with recent: rpmbuild(1)
[udpgate.git] / udpgate.spec.in
index aa30ca4..13389d1 100644 (file)
@@ -26,8 +26,9 @@ Version: @VERSION@
 Release: %{release}
 Group: Applications/Communications
 Packager: Jan Kratochvil <project-udpgate@jankratochvil.net>
+URL: http://www.jankratochvil.net/project/udpgate/
 Source: http://www.jankratochvil.net/project/udpgate/dist/@PACKAGE@-@VERSION@.tar.gz
-Copyright: GPL
+License: GPL
 BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
 BuildRequires: popt
 Requires: popt
@@ -37,15 +38,10 @@ BuildRequires: libgnomeui-devel
 Requires: libgnomeui
 
 %description
-Existing binary Microsoft Windows file system drivers were exploited
-for accessing drives with possibly proprietary file system data structures.
-Open file system API is provided to access these file system drivers.
-Microsoft Windows system components required by these drivers
-were analyzed and successfuly emulated in the GNU/Linux operating system.
-
-The implementation allows applications running under the GNU/Linux operating
-system to access NTFS drives. File system driver compatibility with VFAT,
-ISO9660 and EXT2 is also provided.
+Utility will transparently provide virtual MMS center on your personal
+computer.  As GSM operators usually block all the alternate service gateways
+they should not be able to block all the personal gateways of all their
+customers.
 
 %prep
 %setup
@@ -53,7 +49,8 @@ ISO9660 and EXT2 is also provided.
 %build
 %configure \
                --enable-shared --disable-static \
-               --enable-man-pages
+               --enable-man-pages \
+               --disable-bundle
 make
 
 %install
@@ -62,9 +59,19 @@ make DESTDIR=$RPM_BUILD_ROOT install-strip
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%{_bindir}/@PACKAGE@ --text --startup-on  || true
+
+%preun
+%{_bindir}/@PACKAGE@ --text --startup-off || true
+
 %files
 %defattr(-,root,root)
 %doc README NEWS AUTHORS
 %attr(644,root,root) %{_mandir}/man?/@PACKAGE@.*
+# Do not: /etc/rc.d/init.d/...
+# to comply with http://www.linuxbase.org/spec/booksets/LSB-Core/LSB-Core.html#INITSRCINSTRM
+%attr(755,root,root) %{_sysconfdir}/init.d/@PACKAGE@
+# %config(noreplace) %{_sysconfdir}/sysconfig/@PACKAGE@
 %{_bindir}/@PACKAGE@
 %{_datadir}/locale/*/LC_MESSAGES/@PACKAGE@.mo