[opensuse-buildservice] Help with %files for monopod spec file
Greetings, Anyone willing to help in the creation of %files for my monopod spec file. The project is under home:cseader monopod. Unless anyone has any good docs on how to create your %files that would be great too. I'm still learning this stuff, and any help would be appreciated. Thanks, Cameron
On Tuesday 26 September 2006 1:25 pm, Cameron Seader wrote:
Greetings, Anyone willing to help in the creation of %files for my monopod spec file. The project is under home:cseader monopod. Unless anyone has any good docs on how to create your %files that would be great too. I'm still learning this stuff, and any help would be appreciated.
I usually just build it with an empty %files section, and look at the log. At the end you'll see a complete list of files that got installed that were not in the %files section. Don't just copy the list, though. You will want to use %{_lib} for /usr/lib, %{_mandir} for /usr/share/man, %{_includedir} for /usr/share/include, etc. You should look at other spec files to see what other people do. -- James Oakley jfunk@funktronics.ca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 9/26/06, James Oakley <jfunk@funktronics.ca> wrote:
On Tuesday 26 September 2006 1:25 pm, Cameron Seader wrote:
Greetings, Anyone willing to help in the creation of %files for my monopod spec file. The project is under home:cseader monopod. Unless anyone has any good docs on how to create your %files that would be great too. I'm still learning this stuff, and any help would be appreciated.
I usually just build it with an empty %files section, and look at the log. At the end you'll see a complete list of files that got installed that were not in the %files section.
Yeah, thats what I do, there sure must be a better way of doing this? -J --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 26 September 2006 1:43 pm, Jigish Gohil wrote:
On 9/26/06, James Oakley <jfunk@funktronics.ca> wrote:
On Tuesday 26 September 2006 1:25 pm, Cameron Seader wrote:
Greetings, Anyone willing to help in the creation of %files for my monopod spec file. The project is under home:cseader monopod. Unless anyone has any good docs on how to create your %files that would be great too. I'm still learning this stuff, and any help would be appreciated.
I usually just build it with an empty %files section, and look at the log. At the end you'll see a complete list of files that got installed that were not in the %files section.
Yeah, thats what I do, there sure must be a better way of doing this?
For autoconf projects you can look through all the Makefile.am files for installable targets. Perl modules are very predictable, if you've built a lot of them. Python's distutils can save the installed file list to be picked up with %files -f <filename>. You still need to manually add your licensing/documentation files as %doc. -- James Oakley jfunk@funktronics.ca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 2006-09-26 22:13:56 +0530, Jigish Gohil wrote:
On 9/26/06, James Oakley <jfunk@funktronics.ca> wrote:
On Tuesday 26 September 2006 1:25 pm, Cameron Seader wrote:
Greetings, Anyone willing to help in the creation of %files for my monopod spec file. The project is under home:cseader monopod. Unless anyone has any good docs on how to create your %files that would be great too. I'm still learning this stuff, and any help would be appreciated.
I usually just build it with an empty %files section, and look at the log. At the end you'll see a complete list of files that got installed that were not in the %files section.
Yeah, thats what I do, there sure must be a better way of doing this?
Hmm there's another way but i really don't like it. For instance you can build your file-list with some 'find' commands: cd %{buildroot} find . -type d | sed -e 's/^\./%dir /g' > filelist find . -type f | sed -e 's/^\.//g' >> filelist ... %files -f %{buildroot}/filelist But if you want to build good and proper package create your file list manually. (just my 2 cents) Marcus Ps. sorry for not replying to the list directly.. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Cameron Seader
-
James Oakley
-
Jigish Gohil
-
Marcus Hüwe