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: try:
self.try_chdir(rpmDir) self.try_chdir(rpmDir)
cmd = 'rpmbuild -bb --define "_topdir `pwd`" synergy.spec' cmd = 'rpmbuild -bb --define "_topdir `pwd`" synergy.spec'
print "RPM command: " + cmd print "Command: " + cmd
err = os.system(cmd) err = os.system(cmd)
if err != 0: if err != 0:
raise Exception('Package failed: ' + str(err)) raise Exception('rpmbuild failed: ' + str(err))
self.unixMove('RPMS/*/*.rpm', target) 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: finally:
self.restore_chdir() self.restore_chdir()

View File

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

View File

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