added rpmlint to rpm dist step

This commit is contained in:
Nick Bolton 2014-04-10 09:04:31 +00:00
parent 66a59428ea
commit 925e3a17aa
3 changed files with 12 additions and 7 deletions

View File

@ -1054,12 +1054,18 @@ class InternalCommands:
try:
self.try_chdir(rpmDir)
cmd = 'rpmbuild -bb --define "_topdir `pwd`" synergy.spec'
print "RPM command: " + cmd
print "Command: " + cmd
err = os.system(cmd)
if err != 0:
raise Exception('Package failed: ' + str(err))
raise Exception('rpmbuild failed: ' + str(err))
self.unixMove('RPMS/*/*.rpm', target)
cmd = 'rpmlint ' + target
print "Command: " + cmd
err = os.system(cmd)
if err != 0:
raise Exception('rpmlint failed: ' + str(err))
finally:
self.restore_chdir()

View File

@ -4,4 +4,4 @@ Comment=Share your keyboard and mouse over a network
Exec=synergy
Icon=/usr/share/icons/synergy.ico
Type=Application
Categories=Utility
Categories=Utility;

View File

@ -1,9 +1,9 @@
# -*- rpm-spec -*-
Summary: Synergy
Summary: Keyboard and mouse sharing utility
Name: synergy
Release: 1
License: GPLv2
Group: Applications/Accessories
Group: Applications/Productivity
URL: http://synergy-foss.org/
Source: http://synergy-foss.org/download/
Vendor: The Synergy Project
@ -12,8 +12,7 @@ Version: ${in:version}
%description
Synergy is free and open source software for sharing one mouse and keyboard
between multiple computers. Works on Windows, Mac OS X, Linux, Android and
Apple iOS.
between multiple computers. Works on Windows, Mac OS X, Linux.
%prep
source=%{_topdir}/../..