From kdevelop-bugs Sat Jul 22 17:04:04 2006 From: arenamaster () sbcglobal ! net Date: Sat, 22 Jul 2006 17:04:04 +0000 To: kdevelop-bugs Subject: [Bug 131216] New: Building source and/or binary RPM fails Message-Id: <20060722190402.131216.arenamaster () sbcglobal ! net> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306952209954 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=131216 Summary: Building source and/or binary RPM fails Product: kdevelop Version: 3.3.3 Platform: RedHat RPMs OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: kdevelop-bugs kdevelop org ReportedBy: arenamaster sbcglobal net Version: 3.3.3 (using KDE KDE 3.5.3) Installed from: RedHat RPMs OS: Linux When trying to build an RPM for my new program (which has never been distributed as an RPM before), I follow this procedure: 1) Project | Distribution & Publishing 2) Select Package Information and fill in the empty fields (version,release,vendor,license,summary,group,packager) 3) Click "Build Binary Package", which shows that the .spec file doesn't exist. 4) Click "Export Build Files" to create spec file. 5) Click "Build Binary Package". The application window shows: cd " && rpmbuild -ba [myprogram].kdevelop.spec error: Legacy syntax is unsupported: copyright error: line 9: Unknown tag: Copyright: GPL *** Exited with status: 1 *** Note that the double quote on the rpmbuild line appears verbatim in the KDevelop Application output tab, and was not a typo on my part. I don't know how rpmbuild syntax works, so I'm pointing this out as what seems to me to be an oddity. The GPL reference in the text above is probably because I entered GPL in the license field. If I delete the Copyright line from the spec file, and try again to build a binary package, rpmbuild complains about an empty Source tag (I haven't made a source package yet). If I change Copyright to License, go to the "Source Distribution" tab, click "Create Source Archive", manually copy the created archive file to "/usr/src/redhat/SOURCES", then try to build the binary package again, the process begins. However, it produces many errors along the lines of: tar: [myprogram].kdevelop/[some file in my archive]: Cannot open: File exists The above repeats for every file in the source archive, including subdirectories.