Пакет whoson: Specfile
Загрузка whoson.spec
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | %def_disable static
Name: whoson
Version: 2.05
Release: alt2.1
Packager: Victor Forsyuk <force@altlinux.org>
Summary: Protocol for Keeping Track of Dynamically Allocated IP
License: Public Domain
Group: Networking/Other
URL: http://whoson.sf.net/
Source0: http://download.sf.net/whoson/whoson-%version.tar.gz
Source1: whosond.init
Source2: whoson.conf
Requires: lib%name = %version-%release
# Automatically added by buildreq on Sun Oct 16 2011
BuildRequires: chrpath groff-base
%description
Simple method for Internet server programs to know if a particular (dynamically
allocated) IP address is currently allocated to a known (trusted) user and,
optionally, the identity of the said user.
%package server
Summary: Whoson server binary and scripts
Group: Networking/Other
Requires: %name = %version-%release
%description server
Whoson server binary and scripts
%package -n lib%name
Summary: Whoson library
Group: Development/C
%description -n lib%name
This is whoson library package.
%package -n lib%name-devel
Summary: Header files and development documentation for whoson
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This is whoson development package. It includes files and development
documentation for whoson.
%package -n lib%name-devel-static
Summary: Static libraries for whoson
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
You should install the lib%name-devel-static package if you would like to
develop statically linked whoson applications.
%prep
%setup
%build
%configure %{subst_enable static}
# Parallel make broken in whoson 2.03 :(
%make
# Build with disabled static will insert rpath in whoson binary. Instead of
# patching build system we simply delete rpath from built executable.
chrpath -d whoson
chrpath -d .libs/whosond
%install
install -d %buildroot{%_initdir,/var/lib/whosond}
%make_install DESTDIR=%buildroot install
install -m0755 %SOURCE1 %buildroot%_initdir/whosond
install -m0644 %SOURCE2 %buildroot%_sysconfdir/
for i in wso_login wso_logout wso_query wso_version; do
rm -f %buildroot%_man3dir/$i.3
echo ".so whoson.3" > %buildroot%_man3dir/$i.3
done
%post server
%post_service whosond
%preun server
%preun_service whosond
%files
%_sbindir/whoson
%config(noreplace) %verify(not size mtime md5) %_sysconfdir/whoson.conf
%_man5dir/*
%_man8dir/whoson.*
%files server
%_sbindir/whosond
%_initdir/whosond
%dir /var/lib/whosond
%_man8dir/whosond.*
%files -n lib%name
%_libdir/lib*.so.*
%files -n lib%name-devel
%_libdir/lib*.so
%_includedir/*
%_man3dir/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib*.a
%endif
%changelog
* Sun Oct 16 2011 Alexey Tourbin <at@altlinux.ru> 2.05-alt2.1
- fixed circular dependencies
* Sun Oct 16 2011 Alexey Tourbin <at@altlinux.ru> 2.05-alt2
- rebuilt for debuginfo and soname set-versioning
* Sat Jul 11 2009 Victor Forsyuk <force@altlinux.org> 2.05-alt1
- 2.05
* Thu Jan 08 2009 Victor Forsyuk <force@altlinux.org> 2.04-alt1
- 2.04
- Remove obsolete ldconfig calls.
* Thu May 13 2004 Victor Forsyuk <force@altlinux.ru> 2.03-alt2
- libwhoson-devel depends on libwhoson package, not whoson.
* Wed Dec 31 2003 Victor Forsyuk <force@altlinux.ru> 2.03-alt1
- New version.
- Removed *.la files.
- Do not build devel-static subpackage by default.
* Fri May 23 2003 Victor Forsyuk <force@altlinux.ru> 2.02a-alt1
- Rewritten start/stop script to new rc scheme.
* Tue Jan 14 2003 Victor Forsyuk <force@altlinux.ru> 2.02a-alt0
- Initial build for Sisyphus.
|