From 2e86d09db21bb06098264344553ac6c42a338e01 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:27:58 +0100 Subject: [PATCH] package created by autospec [release 9.31.0-1mamba;Sat Sep 10 2022] --- README.md | 2 + postman-bin-autoupdate | 4 ++ postman-bin.spec | 87 ++++++++++++++++++++++++++++++++++++++++++ postman.desktop | 12 ++++++ 4 files changed, 105 insertions(+) create mode 100644 postman-bin-autoupdate create mode 100644 postman-bin.spec create mode 100644 postman.desktop diff --git a/README.md b/README.md index 97f2542..56b8460 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # postman-bin +Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster. + diff --git a/postman-bin-autoupdate b/postman-bin-autoupdate new file mode 100644 index 0000000..815c902 --- /dev/null +++ b/postman-bin-autoupdate @@ -0,0 +1,4 @@ +#!/bin/bash +VERSION=$1 +[ "${VERSION}" ] || exit 1 +curl -L "https://dl.pstmn.io/download/version/${VERSION}/linux64" -o postman-${VERSION}-linux-x64.tar.gz diff --git a/postman-bin.spec b/postman-bin.spec new file mode 100644 index 0000000..f19349d --- /dev/null +++ b/postman-bin.spec @@ -0,0 +1,87 @@ +Name: postman-bin +Version: 9.31.0 +Release: 1mamba +Summary: API platform for building and using APIs (official binary distribution) +Group: Graphical Desktop/Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.postman.com/ +Source: postman-%{version}-linux-x64.tar.gz +Source1: postman-bin-autoupdate +Source2: postman.desktop +License: Custom +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXcomposite-devel +BuildRequires: libXdamage-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libXrandr-devel +BuildRequires: libalsa-devel +BuildRequires: libat-spi2-atk-devel +BuildRequires: libat-spi2-core-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libcups-devel +BuildRequires: libdbus-devel +BuildRequires: libdrm-devel +BuildRequires: libexpat-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgtk3-devel +BuildRequires: libmesa-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libpango-devel +BuildRequires: libxcb-devel +BuildRequires: libxkbcommon-devel +BuildRequires: libxshmfence-devel +## AUTOBUILDREQ-END + +%description +Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster. + +%debug_package + +%define _build_id_links none +%global __requires_exclude ^libffmpeg.so.*$ +%global __provides_exclude_from ^%{_datadir}/postman/.*$ + +%prep +%setup -q -n Postman + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -dm755 %{buildroot}%{_datadir}/postman +cp -r * %{buildroot}%{_datadir}/postman +install -dm755 %{buildroot}%{_bindir} +ln -s ../share/postman/Postman %{buildroot}%{_bindir}/postman + +install -D -m644 %{SOURCE2} \ + %{buildroot}%{_datadir}/applications/postman.desktop + +install -D -m0644 app/resources/app/assets/icon.png \ + %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/postman.png + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/postman +%dir %{_datadir}/postman +%{_datadir}/postman/Postman +%dir %{_datadir}/postman/app +%{_datadir}/postman/app/* +%{_datadir}/applications/postman.desktop +%{_datadir}/icons/hicolor/128x128/apps/postman.png + +%changelog +* Sat Sep 10 2022 Silvan Calarco 9.31.0-1mamba +- package created by autospec diff --git a/postman.desktop b/postman.desktop new file mode 100644 index 0000000..12487b7 --- /dev/null +++ b/postman.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Postman +Comment=Build, test, and document your APIs faster +Path=/usr/share/postman +Exec=postman %U +Icon=postman +Type=Application +StartupNotify=true +Categories=Development;Utility; +StartupWMClass=postman +MimeType=x-scheme-handler/postman +