{"action":"created","issue":{"url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/43","repository_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin","labels_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/43/comments","events_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/43/events","html_url":"https://github.com/mojohaus/rpm-maven-plugin/issues/43","id":140688428,"number":43,"title":"2.1.4 -> 2.1.5 changes spec file from a included directory to list of files.","user":{"login":"snigel","id":1345499,"avatar_url":"https://avatars.githubusercontent.com/u/1345499?v=3","gravatar_id":"","url":"https://api.github.com/users/snigel","html_url":"https://github.com/snigel","followers_url":"https://api.github.com/users/snigel/followers","following_url":"https://api.github.com/users/snigel/following{/other_user}","gists_url":"https://api.github.com/users/snigel/gists{/gist_id}","starred_url":"https://api.github.com/users/snigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snigel/subscriptions","organizations_url":"https://api.github.com/users/snigel/orgs","repos_url":"https://api.github.com/users/snigel/repos","events_url":"https://api.github.com/users/snigel/events{/privacy}","received_events_url":"https://api.github.com/users/snigel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-14T14:28:26Z","updated_at":"2016-03-15T10:21:01Z","closed_at":null,"body":"When updating from 2.1.4 to 2.1.5 the generated spec file becomes different for one of my projects.\r\n\r\nInstead of including the source directory (as in 2.1.4), it creates a list of the files inside the directory.\r\nThis causes issues, since that means that the RPM no longer owns the root directory, only the files inside.\r\n\r\nI have tried to create a simple test case for reproducing this, but strangely my minimal pom is working fine.\r\n\r\nFor my broken project, I managed to get the directory included again by enabling:\r\n`<recurseDirectories>true</recurseDirectories>`\r\nBut if I do that, I get both the directory and a list of all files in my spec file.\r\nThe build log will also complain about `warning: File listed twice`\r\n\r\nI see that some code regarding creation of spec files has been changed in 2.1.5 but I can't figure out what is happening in my case."},"comment":{"url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/comments/196755466","html_url":"https://github.com/mojohaus/rpm-maven-plugin/issues/43#issuecomment-196755466","issue_url":"https://api.github.com/repos/mojohaus/rpm-maven-plugin/issues/43","id":196755466,"user":{"login":"snigel","id":1345499,"avatar_url":"https://avatars.githubusercontent.com/u/1345499?v=3","gravatar_id":"","url":"https://api.github.com/users/snigel","html_url":"https://github.com/snigel","followers_url":"https://api.github.com/users/snigel/followers","following_url":"https://api.github.com/users/snigel/following{/other_user}","gists_url":"https://api.github.com/users/snigel/gists{/gist_id}","starred_url":"https://api.github.com/users/snigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snigel/subscriptions","organizations_url":"https://api.github.com/users/snigel/orgs","repos_url":"https://api.github.com/users/snigel/repos","events_url":"https://api.github.com/users/snigel/events{/privacy}","received_events_url":"https://api.github.com/users/snigel/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T10:21:01Z","updated_at":"2016-03-15T10:21:01Z","body":"Yes"}}