From Mads Kiilerich.
[tinc] / redhat / tinc.spec
index b0a4d4e..5419e8f 100644 (file)
@@ -1,14 +1,13 @@
 Summary: tinc vpn daemon
 Name: tinc
 Summary: tinc vpn daemon
 Name: tinc
-Version: cvs_2000_04_17
-Release: mk1
+Version: 1.0
+Release: pre1
 Copyright: GPL
 Group: Networking
 URL: http://tinc.nl.linux.org/
 Copyright: GPL
 Group: Networking
 URL: http://tinc.nl.linux.org/
-Source0: cabal.tgz
-Source1: tinc
-Buildroot: /var/tmp/%{name}-%{version}
-#Requires: 
+Source0: %{name}-%{version}.tar.gz
+Buildroot: /var/tmp/%{name}-%{version}-%{release}
+Requires: /usr/bin/texi2html /usr/bin/install /usr/bin/patch
 
 %description
 tinc is cool!
 
 %description
 tinc is cool!
@@ -16,24 +15,24 @@ See http://tinc.nl.linux.org/
 
 %prep
 
 
 %prep
 
-%setup -q -n cabal
+%setup -q -n %{name}-%{version}
 
 %build
 
 %build
-autoconf
-automake
+#autoconf
+#automake
 ./configure --prefix=/usr --sysconfdir=/etc
 make
 ./configure --prefix=/usr --sysconfdir=/etc
 make
+texi2html doc/tinc.texi
 
 %install
 
 %install
-ME=my.vpn.ip.number
-PEER=peer.vpn.ip.number
-PEEREAL=peer.real.ip.number
-
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
-
 make install DESTDIR=$RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT
 
-install -D $RPM_SOURCE_DIR/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
+install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
+
+ME=my.vpn.ip.number
+PEER=peer.vpn.ip.number
+PEEREAL=peer.real.ip.number
 
 mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
 
 mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
@@ -77,7 +76,7 @@ END
 
 %files
 
 
 %files
 
-%doc AUTHORS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS ChangeLog NEWS README THANKS *.html
 
 #%defattr(-,root,root)
 %config /etc/tinc
 
 #%defattr(-,root,root)
 %config /etc/tinc