Build rpm - extract source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is part of my spec file:

-----------------------------------------------
Name: mattermost
Version: 3.4.0
Release: 1%{?dist}
Summary: Mattermost is an open source, self-hosted Slack-alternative
URL: http://www.mattermost.org
Source0: https://releases.mattermost.com/%{version}/mattermost-%{version}-linux-amd64.tar.gz
License: MIT
Group: System Environment/Daemons
........
%prep
%autosetup

---------------------------
Now testing:
$  fedpkg --dist f24 prep 

leaves me with this error:  mattermost-3.4.0: No such file or directory
$ ls returns in fact mattermost. I guess the difference is due to untar.

How can I tell in my spec file that the source directory will be named %{name} and not %{name}.%{version} ?

Then, I though the %autosetup macro would have download the source, which is not the case. I need to run $ spectool -g *spec to get the source. Is it the normal behavior?

Thank you for help.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux