From: Vincent Bernat Date: Wed, 20 May 2009 17:50:51 +0000 (+0200) Subject: Adapt .spec file to work with actual tar.gz. X-Git-Tag: 0.5.0~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2681915402514ea00d1c11a1899b7b79e804ac5a;p=thirdparty%2Flldpd.git Adapt .spec file to work with actual tar.gz. lldpd.init and lldpd.sysconfig should be shipped into src.rpm package. --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 60bde090..feadaeab 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -19,6 +19,8 @@ License: MIT Group: System Environment/Daemons URL: https://trac.luffy.cx/lldpd/ Source0: http://www.luffy.cx/lldpd/%{name}-%{version}.tar.gz +Source1: lldpd.init +Source2: lldpd.sysconfig %if %with_snmp BuildRequires: net-snmp-devel @@ -97,8 +99,8 @@ make install DESTDIR=$RPM_BUILD_ROOT install -d -m770 $RPM_BUILD_ROOT/%lldpd_chroot install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install -d $RPM_BUILD_ROOT/etc/sysconfig -install -m644 redhat/lldpd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/lldpd -install -m755 redhat/lldpd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd +install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/lldpd +install -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd %pre # Create lldpd user/group