Skip to content

Commit

Permalink
packages UPDATE main branch has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jun 2, 2021
1 parent 2f70331 commit c3fd42c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/create-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ fi
cat ../$package.spec | sed -e '1,/%changelog/d' >>$package.spec

# download source and update to opensuse build
wget "${url}/archive/master.tar.gz" -O master.tar.gz
wget "${url}/archive/libyang1.tar.gz" -O libyang1.tar.gz
osc addremove
osc commit -m travis-update
4 changes: 2 additions & 2 deletions packages/libnetconf2.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: @LIBNETCONF2_VERSION@
Release: 0
Summary: @PACKAGE_BRIEF@
Url: @GITHUB_URL@
Source: @GITHUB_URL@/archive/master.tar.gz
Source: @GITHUB_URL@/archive/libyang1.tar.gz
Source1: @[email protected]
License: BSD-3-Clause
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Expand Down Expand Up @@ -47,7 +47,7 @@ Requires: libssh-devel
@PACKAGE_DESC@

%prep
%setup -n @PACKAGE@-master
%setup -n @PACKAGE@-libyang1
mkdir build

%build
Expand Down
4 changes: 2 additions & 2 deletions packages/local-rpm.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

LOCAL_LC_TIME=$LC_TIME
export LC_TIME="en_US.UTF-8"
cd "@PROJECT_SOURCE_DIR@" && tar --exclude="@EXCLUDE_BUILD_DIR@" --exclude=./.git* -zcvf "@PROJECT_BINARY_DIR@/master.tar.gz" . --transform 's/./@PACKAGE@-master/'
cd "@PROJECT_SOURCE_DIR@" && tar --exclude="@EXCLUDE_BUILD_DIR@" --exclude=./.git* -zcvf "@PROJECT_BINARY_DIR@/libyang1.tar.gz" . --transform 's/./@PACKAGE@-libyang1/'
cd @PROJECT_BINARY_DIR@
mkdir -p rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
mv master.tar.gz rpms/SOURCES
mv libyang1.tar.gz rpms/SOURCES
sed -e '7d' build-packages/@[email protected] > rpms/SPECS/@[email protected]
git log -1 --date=format:'%a %b %d %Y' --pretty=format:"* %ad %aN <%aE>" 2>/dev/null >>rpms/SPECS/@[email protected] || printf "* `date +"%a %b %d %Y"` ${USER} <${USER}@`hostname`>" >>rpms/SPECS/@[email protected]
echo " @LIBNETCONF2_VERSION@" >>rpms/SPECS/@[email protected]
Expand Down

0 comments on commit c3fd42c

Please sign in to comment.