diff --git a/.gitignore b/.gitignore index 5fdb670..dbfa852 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -/linuxptp-20120920git6ce135.tar.gz -/linuxptp-20121109git4e8107.tar.gz -/linuxptp-1.0.tgz -/linuxptp-1.1.tgz -/linuxptp-1.2.tgz +/linuxptp-20130719git46db40.tar.xz diff --git a/linuxptp.spec b/linuxptp.spec index 7f6e9ba..7e3a491 100644 --- a/linuxptp.spec +++ b/linuxptp.spec @@ -1,13 +1,19 @@ +%global gitdate 20130719 +%global gitrev 46db40 Name: linuxptp Version: 1.2 -Release: 1%{?dist} +Release: 1.%{gitdate}git%{gitrev}%{?dist} Summary: PTP implementation for Linux Group: System Environment/Base License: GPLv2+ URL: http://linuxptp.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz +# git clone git://git.code.sf.net/p/linuxptp/code linuxptp; cd linuxptp +# git archive --prefix=linuxptp-%{version}/ %{gitrev} | \ +# gzip > linuxptp-%{gitdate}git%{gitrev}.tar.gz +Source0: %{name}-%{gitdate}git%{gitrev}.tar.xz +#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz Source1: phc2sys.service Source2: ptp4l.service @@ -29,7 +35,6 @@ Supporting legacy APIs and other platforms is not a goal. %build make %{?_smp_mflags} \ - INC="" \ EXTRA_CFLAGS="$RPM_OPT_FLAGS -pie -fpie" \ EXTRA_LDFLAGS="-Wl,-z,relro,-z,now" @@ -41,7 +46,7 @@ install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir} echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \ $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l -echo 'OPTIONS="-w -i eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys +echo 'OPTIONS="-w -s eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys echo '.so man8/ptp4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/ptp4l.conf.5 diff --git a/sources b/sources index d739171..e12ffc3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b5e82a83d1dff895610bd809641ed7f6 linuxptp-1.2.tgz +8bb3786766a983ce25a095cf2875f41d linuxptp-20130719git46db40.tar.xz