]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
debian/redhat: update packaging
authorVincent Bernat <bernat@luffy.cx>
Wed, 26 Sep 2012 21:04:46 +0000 (23:04 +0200)
committerVincent Bernat <bernat@luffy.cx>
Wed, 26 Sep 2012 21:30:11 +0000 (23:30 +0200)
debian/control
debian/rules
redhat/lldpd.spec

index 7c6be507979170c8672f6854e89b9220223557b3..61e72e755be3a77274861b0a8528ed84e38b114c 100644 (file)
@@ -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
index 5ad3ecf76e3467e78105da3082c595b1cdc8318c..26f01d5b8eb4d5e23b908715d741c032d45251e5 100755 (executable)
@@ -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
index a9240924c386a273e68c0707ddebc5c2589b7a13..800a1ad08e9c5cbff28dfb63a208bf65d1db7d1e 100644 (file)
@@ -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
 
 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 <bernat@luffy.cx> - 0.6.1-1
+- New upstream version
+- Do not require libevent, use embedded copy.
+- Provide a -devel package.
+
 * Fri Jun 11 2010 Vincent Bernat <bernat@luffy.cx> - 0.5.1-1
 - New upstream version
 - Define bcond_without and with macros if not defined to be compatible