Skip to content

Commit

Permalink
#253: Dont require rsync just for packaging (#257)
Browse files Browse the repository at this point in the history
* #253: Dont require rsync just for building

* #253: Remove rsync from buildreqs again

* #253: Update Dockerfile.fedora
  • Loading branch information
mcdope authored Nov 3, 2024
1 parent 7755a4f commit 38a32d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ENV TERM=xterm
WORKDIR /usr/local/src/pam_usb

RUN dnf upgrade --refresh -y
RUN dnf install -y gcc make rsync libxml2-devel pam-devel libudisks2-devel glib2-devel python3-gobject rpmdevtools rpmlint
RUN dnf install -y gcc make libxml2-devel pam-devel libudisks2-devel glib2-devel python3-gobject rpmdevtools rpmlint
5 changes: 3 additions & 2 deletions fedora/SPECS/pam_usb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Version: %{version}
Release: %{release}
Prefix: /usr
Group: System Environment/Base
BuildRequires: rsync libudisks2-devel libxml2-devel
BuildRequires: libudisks2-devel libxml2-devel
Requires: pam python3-gobject gawk

%description
Expand All @@ -25,7 +25,8 @@ Adds auth over usb-stick to pam
cd %{_topdir}/BUILD
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
rsync -a %{_topdir}/../ %{name}-%{version} --exclude fedora --exclude arch_linux --exclude .build --exclude .github --exclude .idea --exclude .vscode
shopt -s extglob
cp -a %{_topdir}/../!(fedora|arch_linux|.build|.github|.idea|.vscode) %{name}-%{version}
cd %{name}-%{version}
chmod -Rf a+rX,u+w,g-w,o-w .

Expand Down

0 comments on commit 38a32d5

Please sign in to comment.