Skip to content

Commit

Permalink
Added fedora 25 packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxc0re committed Mar 30, 2017
1 parent c460ecd commit 856e4a8
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ script: |
docker run -v `pwd`:/out panopticon-build &&
curl -vT panopticon_0.16_amd64.deb -u upload:$FTP_PASSWD -Q "-SITE CHMOD 664 panopticon-master-stretch.deb" ftp://files.panopticon.re/panopticon-master-stretch.deb
;;
"fedora")
cd pkg/fedora &&
docker build -t panopticon-build . &&
docker run -v `pwd`:/out panopticon-build &&
curl -vT panopticon_0.16_amd64.rpm -u upload:$FTP_PASSWD -Q "-SITE CHMOD 664 panopticon-master-fedora-25.deb" ftp://files.panopticon.re/panopticon-master-fedora-25.deb
;;
"")
cargo build --verbose &&
cargo test --verbose
Expand Down
20 changes: 20 additions & 0 deletions pkg/fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM fedora:25

MAINTAINER sphinxc0re <sphinxc0re@panopticon.re>

RUN dnf install -y gcc-c++ cmake make \
qt5-qtdeclarative-devel \
qt5-qtquickcontrols \
qt5-qtgraphicaleffects \
qt5-qtsvg-devel \
adobe-source-sans-pro-fonts \
adobe-source-code-pro-fonts \
fedora-packager \
fedora-review \
rustc \
cargo

COPY panopticon.spec /panopticon.spec
COPY package.sh /package.sh

CMD /package.sh
5 changes: 5 additions & 0 deletions pkg/fedora/package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
spectool -g panopticon.spec
fedpkg --release f25 local

cp /x86_64/panopticon*.rpm /out/panopticon_0.16_amd64.rpm
32 changes: 32 additions & 0 deletions pkg/fedora/panopticon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Name: panopticon
Version: master
Release: 1%{?dist}
Summary: A libre cross-platform disassembler

License: GPLv3
Source0: https://github.com/das-labor/panopticon/archive/%{version}.tar.gz

%description
Panopticon is a cross platform disassembler for reverse engineering written in
Rust. It can disassemble AMD64, x86, AVR and MOS 6502 instruction sets and open
ELF files. Panopticon comes with Qt GUI for browsing and annotating control
flow graphs.

%global debug_package %{nil}

%prep
%autosetup

%build
cargo build --release

%install
%{__install} -d -m755 %{buildroot}/usr/bin
%{__install} -D -s -m555 target/release/qtpanopticon %{buildroot}/usr/bin/qtpanopticon
%{__install} -d -m755 %{buildroot}/usr/share/panopticon/qml
cp -R qml/* %{buildroot}/usr/share/panopticon/qml
chown -R root:root %{buildroot}/usr/share/panopticon/qml

%files
%{_bindir}/qtpanopticon
%{_datarootdir}/panopticon/qml

0 comments on commit 856e4a8

Please sign in to comment.