generic rpm .spec.in

Elrond elrond at samba-tng.org
Thu Nov 13 16:56:24 CET 2003


Hi there,

I made up a very simple and generic rpm .spec.in.

It's .in, so autoconf can replace the VERSION in it, so
there's only one place to maintain the version number.


This .spec.in is independent of any distribution and does
not include any "advanced" features. It just packages the
installed files up.

There are two things that it does do extra:
1) create ${sysconfdir}/tinc
   (IMHO the normal "make install" should do this)
2) Create html versions of the texinfo docs and include
   them in the doc section of rpm.


I can act as a "maintainer" for this .spec.in, but only in
the sense of "fixing bugs".
I will refuse to add any extra features.
And if someone else adds extra features, this person will
take over the complete responsibility for this .spec.in.
(I don't want to fix other people's features!)

And I'm not going to support any problems that are not
related to the .spec.in as well.
(So before asking me, please ask people, if they can build
happily without the .spec)


And of course the usual "no warranties" applies.


    Elrond

p.s.: I'm not on the list.
-------------- next part --------------
Name: tinc
Version: @VERSION@
Release: 1
Copyright: GPL
Group: System Environment/Daemons
URL: http://tinc.nl.linux.org/
Source0: http://tinc.nl.linux.org/packages/%{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-root
Summary: tinc Virtual Private Network daemon

%description
# taken from doc/tinc.texi
tinc is a Virtual Private Network (VPN) daemon that uses tunneling and
encryption to create a secure private network between hosts on the
Internet.

Because the tunnel appears to the IP level network code as a normal
network device, there is no need to adapt any existing software.

This tunneling allows VPN sites to share information with each other
over the Internet without exposing any information to others.

See http://tinc.nl.linux.org/

%prep
%setup -q

%build
%configure
make
texi2html doc/tinc.texi

%install
rm -rf $RPM_BUILD_ROOT
umask 022
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tinc

%clean
# rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README THANKS *.html
%dir %{_sysconfdir}/tinc
# %{_bindir}/*
%{_sbindir}/*
%{_mandir}/man?/*
%{_infodir}/tinc*
%{_datadir}/locale/*/LC_MESSAGES/*.mo


More information about the Tinc mailing list