From: Vincent Bernat Date: Wed, 26 Sep 2012 21:04:46 +0000 (+0200) Subject: debian/redhat: update packaging X-Git-Tag: 0.7.0~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2160607425075797c23cea52374e1486830bbbe;p=thirdparty%2Flldpd.git debian/redhat: update packaging --- diff --git a/debian/control b/debian/control index 7c6be507..61e72e75 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 5), cdbs, autotools-dev, libsnmp15-dev | libsnmp9-dev | libsnmp-dev, libxml2-dev, libevent-dev, pkg-config Standards-Version: 3.8.4 -Homepage: https://trac.luffy.cx/lldpd/ +Homepage: https://github.com/vincentbernat/lldpd/wiki Package: lldpd Architecture: any diff --git a/debian/rules b/debian/rules index 5ad3ecf7..26f01d5b 100755 --- a/debian/rules +++ b/debian/rules @@ -4,4 +4,4 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml -DEB_INSTALL_CHANGELOGS_ALL = CHANGELOG +DEB_INSTALL_CHANGELOGS_ALL = NEWS ChangeLog diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index a9240924..800a1ad0 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -15,8 +15,8 @@ %bcond_without dot1 %bcond_without dot3 -# On RHEL 4, disable SNMP, Net-SNMP installation seems broken -%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 500 +# On RHEL < 5, disable SNMP, Net-SNMP installation seems broken +%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 600 %bcond_with snmp %else %bcond_without snmp @@ -28,17 +28,16 @@ Summary: Implementation of IEEE 802.1ab (LLDP) Name: lldpd -Version: 0.5.2 +Version: 0.6.1 Release: 1%{?dist} License: MIT Group: System Environment/Daemons -URL: https://trac.luffy.cx/lldpd/ -Source0: http://www.luffy.cx/lldpd/%{name}-%{version}.tar.gz +URL: https://github.com/vincentbernat/lldpd/wiki +Source0: http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz Source1: lldpd.init%{?suse_version:.suse} Source2: lldpd.sysconfig BuildRequires: pkgconfig -BuildRequires: libevent-devel %if %{with snmp} BuildRequires: net-snmp-devel BuildRequires: openssl-devel @@ -72,6 +71,14 @@ to adjacent network devices. This daemon is also able to deal with CDP, FDP, SONMP and EDP protocol. It also handles LLDP-MED extension. +%package devel +Summary: Implementation of IEEE 802.1ab - Tools and header files for developers +Group: Development/Libraries +Requires: lldpd = %{version}-%{release} + +%description devel +This package is required to develop alternate clients for lldpd. + %prep %setup -q %build @@ -182,22 +189,33 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%dir %_docdir/lldpd -%doc %_docdir/lldpd/CHANGELOG -%doc %_docdir/lldpd/README -%_sbindir/lldpd -%_sbindir/lldpctl -%doc %_mandir/man8/lldp* +%dir %{_docdir}/lldpd +%doc %{_docdir}/lldpd/NEWS +%doc %{_docdir}/lldpd/README.md +%{_sbindir}/lldpd +%{_sbindir}/lldpctl +%{_libdir}/liblldpctl.* +%doc %{_mandir}/man8/lldp* %dir %attr(750,root,root) %lldpd_chroot -%config %{_initrddir}/lldpd -%attr(755,root,root) %{_initrddir}/* +%config %attr(755,root,root) %{_initrddir}/lldpd %if 0%{?suse_version} %attr(644,root,root) /var/adm/fillup-templates/sysconfig.lldpd %else %config(noreplace) /etc/sysconfig/lldpd %endif +%files devel +%defattr(-,root,root) +%{_libdir}/pkgconfig/lldpctl.pc +%{_includedir}/lldpctl.h +%{_includedir}/lldp-const.h + %changelog +* Wed Sep 27 2012 Vincent Bernat - 0.6.1-1 +- New upstream version +- Do not require libevent, use embedded copy. +- Provide a -devel package. + * Fri Jun 11 2010 Vincent Bernat - 0.5.1-1 - New upstream version - Define bcond_without and with macros if not defined to be compatible