{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/743","repository_url":"https://api.github.com/repos/jordansissel/fpm","labels_url":"https://api.github.com/repos/jordansissel/fpm/issues/743/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/fpm/issues/743/comments","events_url":"https://api.github.com/repos/jordansissel/fpm/issues/743/events","html_url":"https://github.com/jordansissel/fpm/issues/743","id":38903878,"number":743,"title":"Package Naming Convention","user":{"login":"kitingChris","id":757762,"avatar_url":"https://avatars.githubusercontent.com/u/757762?v=3","gravatar_id":"","url":"https://api.github.com/users/kitingChris","html_url":"https://github.com/kitingChris","followers_url":"https://api.github.com/users/kitingChris/followers","following_url":"https://api.github.com/users/kitingChris/following{/other_user}","gists_url":"https://api.github.com/users/kitingChris/gists{/gist_id}","starred_url":"https://api.github.com/users/kitingChris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitingChris/subscriptions","organizations_url":"https://api.github.com/users/kitingChris/orgs","repos_url":"https://api.github.com/users/kitingChris/repos","events_url":"https://api.github.com/users/kitingChris/events{/privacy}","received_events_url":"https://api.github.com/users/kitingChris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-28T15:52:19Z","updated_at":"2016-03-22T09:37:50Z","closed_at":"2014-07-28T16:19:44Z","body":"Hi there,\r\n\r\nI have troubles to meet with a package naming convention, that forces me to use \r\n\r\n```\r\nNAME-VERSION-TIMESTAMP.arch.rpm\r\n```\r\nWhich should look like this: \r\n```\r\nMyPackage-1.0-20140728091026.i386.rpm\r\n```\r\nI tried to use \r\n\r\n```\r\n-v {package.version}-{package.timestamp}\r\n```\r\n but that produces warnings like: \r\n```\r\nPackage version '0.1a-20140728173919' includes dashes, converting to underscores\r\n```"},"comment":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/comments/199718018","html_url":"https://github.com/jordansissel/fpm/issues/743#issuecomment-199718018","issue_url":"https://api.github.com/repos/jordansissel/fpm/issues/743","id":199718018,"user":{"login":"glensc","id":199095,"avatar_url":"https://avatars.githubusercontent.com/u/199095?v=3","gravatar_id":"","url":"https://api.github.com/users/glensc","html_url":"https://github.com/glensc","followers_url":"https://api.github.com/users/glensc/followers","following_url":"https://api.github.com/users/glensc/following{/other_user}","gists_url":"https://api.github.com/users/glensc/gists{/gist_id}","starred_url":"https://api.github.com/users/glensc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glensc/subscriptions","organizations_url":"https://api.github.com/users/glensc/orgs","repos_url":"https://api.github.com/users/glensc/repos","events_url":"https://api.github.com/users/glensc/events{/privacy}","received_events_url":"https://api.github.com/users/glensc/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T09:37:49Z","updated_at":"2016-03-22T09:37:49Z","body":"rpm filename consists of several parts.\r\n\r\nso taking MyPackage-1.0-20140728091026.i386.rpm as input it is likely:\r\n\r\n- %{NAME}: MyPackage\r\n- %{VERSION}: 1.0\r\n- %{RELEASE}: 20140728091026\r\n- %{ARCH}: i386\r\n\r\nnone of them can contain `-` as it's the separator of these.\r\n\r\nyou can check this with `rpm -qp --qf '%{NAME}\\n' rpmfile.rpm`"}}