SPECS: sethdlc.spec - updated to 1.18 - tahoe patch replaced with ...
qboosh
qboosh at pld-linux.org
Sun May 27 00:32:51 CEST 2007
Author: qboosh Date: Sat May 26 22:32:51 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 1.18
- tahoe patch replaced with less invasive and more compatible one, dropped tahoe bcond
- don't install init script (moved to doc; to be dropped or replaced by some
README after integrating hdlc support into rc-scripts)
---- Files affected:
SPECS:
sethdlc.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/sethdlc.spec
diff -u SPECS/sethdlc.spec:1.19 SPECS/sethdlc.spec:1.20
--- SPECS/sethdlc.spec:1.19 Mon Feb 12 23:09:14 2007
+++ SPECS/sethdlc.spec Sun May 27 00:32:44 2007
@@ -1,26 +1,19 @@
# $Revision$, $Date$
+# TODO: integrate hdlc support into rc-scripts, drop sethdlc.init from doc
#
-# Conditional build:
-%bcond_with tahoe # - build sethdlc for tahoe (special version)
-#
-%define _ver 1.15
Summary: Tool for synchronous cards
Summary(pl.UTF-8): Narzędzie do konfiguracji kart synchronicznych
Name: sethdlc
-Version: 1.1%{?with_tahoe:6t}%{!?with_tahoe:5}
-Release: 3
+Version: 1.18
+Release: 1
License: GPL
Group: Networking/Utilities
-Source0: http://www.kernel.org/pub/linux/utils/net/hdlc/%{name}-%{_ver}.tar.gz
-# Source0-md5: 3bc714ee98e6215e8560598ff1e1eb8f
+Source0: http://www.kernel.org/pub/linux/utils/net/hdlc/%{name}-%{version}.tar.gz
+# Source0-md5: 9016878156a5eadb06c0bae71cc5c9ab
Source1: %{name}.init
Patch0: %{name}-tahoe.patch
URL: http://www.kernel.org/pub/linux/utils/net/hdlc/
BuildRequires: rpmbuild(macros) >= 1.268
-%if %{with tahoe}
-Requires(post,preun): /sbin/chkconfig
-Requires: rc-scripts
-%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -30,50 +23,31 @@
Narzędzie do konfiguracji kart synchronicznych.
%prep
-%setup -q -n %{name}-%{_ver}
-%if %{with tahoe}
+%setup -q
%patch0 -p1
-%endif
+
+cp %{SOURCE1} .
+rm -f sethdlc
%build
-echo %{version}
%{__make} \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}"\
-%if !%{with tahoe}
- INCLUDES=""
-%endif
+ INCLUDES=
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_sbindir}
install sethdlc $RPM_BUILD_ROOT%{_sbindir}
-%if %{with tahoe}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sethdlc
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with tahoe}
-%post
-/sbin/chkconfig --add sethdlc
-%service sethdlc restart "TPNET Frame Relay"
-
-%preun
-if [ "$1" = "0" ]; then
- %service sethdlc stop
- /sbin/chkconfig --del sethdlc
-fi
-%endif
-
%files
%defattr(644,root,root,755)
+%doc sethdlc.init
%attr(755,root,root) %{_sbindir}/sethdlc
-%if %{with tahoe}
-%attr(754,root,root) /etc/rc.d/init.d/sethdlc
-%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -81,6 +55,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2007/05/26 22:32:44 qboosh
+- updated to 1.18
+- tahoe patch replaced with less invasive and more compatible one, dropped tahoe bcond
+- don't install init script (moved to doc; to be dropped or replaced by some
+ README after integrating hdlc support into rc-scripts)
+
Revision 1.19 2007/02/12 22:09:14 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sethdlc.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list