{"action":"created","issue":{"url":"https://api.github.com/repos/ascherer/debbuild/issues/23","labels_url":"https://api.github.com/repos/ascherer/debbuild/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/ascherer/debbuild/issues/23/comments","events_url":"https://api.github.com/repos/ascherer/debbuild/issues/23/events","html_url":"https://github.com/ascherer/debbuild/issues/23","id":127140527,"number":23,"title":"[RFE] %autosetup and %autopatch (or... lua powered macros)","user":{"login":"Conan-Kudo","id":276796,"avatar_url":"https://avatars.githubusercontent.com/u/276796?v=3","gravatar_id":"","url":"https://api.github.com/users/Conan-Kudo","html_url":"https://github.com/Conan-Kudo","followers_url":"https://api.github.com/users/Conan-Kudo/followers","following_url":"https://api.github.com/users/Conan-Kudo/following{/other_user}","gists_url":"https://api.github.com/users/Conan-Kudo/gists{/gist_id}","starred_url":"https://api.github.com/users/Conan-Kudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Conan-Kudo/subscriptions","organizations_url":"https://api.github.com/users/Conan-Kudo/orgs","repos_url":"https://api.github.com/users/Conan-Kudo/repos","events_url":"https://api.github.com/users/Conan-Kudo/events{/privacy}","received_events_url":"https://api.github.com/users/Conan-Kudo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ascherer/debbuild/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ascherer/debbuild/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-18T01:59:54Z","updated_at":"2016-01-22T14:25:09Z","closed_at":"2016-01-22T14:25:09Z","body":"As of RPM 4.11.x, there are the `%autosetup` and `%autopatch` macros ([see them here in RPM git master](https://github.com/rpm-software-management/rpm/blob/master/macros.in#L1062)). These macros are special as they are implemented with a mix of traditional macros and Lua scripting.\r\n\r\nI don't know if it's possible to implement [the Lua interface](http://www.rpm.org/wiki/PackagerDocs/RpmLua), though if it is possible, that would be preferred. \r\n\r\nHowever, it would be nice if we could have` %autosetup` and `%autopatch` in debbuild, as it does make some annoying stuff go away (like doing `%patchN` macros for each Patch, or crazy numbers of `%setup` invocations with multiple Sources)."},"comment":{"url":"https://api.github.com/repos/ascherer/debbuild/issues/comments/173933713","html_url":"https://github.com/ascherer/debbuild/issues/23#issuecomment-173933713","issue_url":"https://api.github.com/repos/ascherer/debbuild/issues/23","id":173933713,"user":{"login":"ascherer","id":51143,"avatar_url":"https://avatars.githubusercontent.com/u/51143?v=3","gravatar_id":"","url":"https://api.github.com/users/ascherer","html_url":"https://github.com/ascherer","followers_url":"https://api.github.com/users/ascherer/followers","following_url":"https://api.github.com/users/ascherer/following{/other_user}","gists_url":"https://api.github.com/users/ascherer/gists{/gist_id}","starred_url":"https://api.github.com/users/ascherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascherer/subscriptions","organizations_url":"https://api.github.com/users/ascherer/orgs","repos_url":"https://api.github.com/users/ascherer/repos","events_url":"https://api.github.com/users/ascherer/events{/privacy}","received_events_url":"https://api.github.com/users/ascherer/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T14:25:09Z","updated_at":"2016-01-22T14:25:09Z","body":"Hooray! It works, `-S git` inclusive."}}