-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages UPDATE main branch has changed
- Loading branch information
1 parent
2f70331
commit c3fd42c
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} | ||
|
@@ -47,7 +47,7 @@ Requires: libssh-devel | |
@PACKAGE_DESC@ | ||
|
||
%prep | ||
%setup -n @PACKAGE@-master | ||
%setup -n @PACKAGE@-libyang1 | ||
mkdir build | ||
|
||
%build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|