juhp / cabal-rpm

Haskell Cabal RPM packaging tool
https://hackage.haskell.org/package/cabal-rpm
GNU General Public License v3.0
25 stars 8 forks source link

RFE: cabal-rpm should detect os from /etc/os-release #31

Closed mimi1vx closed 8 years ago

juhp commented 8 years ago

Could you attach an os-release from SUSE?

mimi1vx commented 8 years ago

os-release.tar.gz

os-release files for Tumbleweed, SLE12Spx and Leap

juhp commented 8 years ago

Thanks. It looks like ID is the best thing to look at.

mimi1vx commented 8 years ago

possibility is also rpm --eval '%{suse_version}'

juhp commented 8 years ago

So using %{suse_version} would be better than /etc/os-release for now?

mimi1vx commented 8 years ago

it will be consistent with rpm --eval used for RH / Fedora detection

juhp commented 8 years ago

Okay, could you check if this works okay?

mimi1vx commented 8 years ago

works without any problem :+1:

juhp commented 8 years ago

Good, thanks :-)