update code

This commit is contained in:
zhuchunyi 2019-11-06 19:44:50 +08:00
parent 659d0b7056
commit 7443f6a675

View File

@ -1,12 +1,12 @@
Name: openslp
Version: 2.0.0
Release: 21
Release: 22
Summary: Open-source inplementation of the IETF Service Location Protocol
License: BSD
License: BSD
URL: https://sourceforge.net/projects/openslp/
Source0: https://downloads.sf.net/openslp/openslp-%{version}.tar.gz
Source2: slpd.8.gz
Source3: slptool.1.gz
Source3: slptool.1.gz
Source4: slpd.service
Patch1: openslp-2.0.0-multicast-set.patch
@ -50,7 +50,7 @@ Provides a framework for applications to discover information about corporate ne
%package_help
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%autosetup -n %{name}-%{version} -p1 -S git
autoreconf -fi
find . -name "CVS" | xargs rm -rf
@ -75,8 +75,8 @@ mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
install -p -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_unitdir}/slpd.service
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1/
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8/
cp %SOURCE2 ${RPM_BUILD_ROOT}%{_mandir}/man8/
cp %SOURCE3 ${RPM_BUILD_ROOT}%{_mandir}/man1/
cp %SOURCE2 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
cp %SOURCE3 ${RPM_BUILD_ROOT}/%{_mandir}/man1/
rm -rf $RPM_BUILD_ROOT/usr/doc
%delete_la
@ -86,7 +86,7 @@ rm -rf $RPM_BUILD_ROOT/usr/doc
%post server
%systemd_post slpd.service
%preun server
%preun server
%systemd_preun slpd.service
%postun server
@ -94,7 +94,8 @@ rm -rf $RPM_BUILD_ROOT/usr/doc
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%doc AUTHORS
%license COPYING
%config(noreplace) %{_sysconfdir}/slp.conf
%{_unitdir}/slpd.service
%{_bindir}/slptool
@ -124,5 +125,11 @@ rm -rf $RPM_BUILD_ROOT/usr/doc
%{_mandir}/man8/slpd.*
%changelog
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.6-18
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the location of COPYING
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-21
- Package init