|
5 | 5 | |
6 | 6 |
|
7 | 7 |
|
8 | | -# This is pda GIT tag from https://github.com/cbm-fles/pda |
9 | | -GIT_TAG=11.8.7 |
| 8 | +# This is pda GIT tag from upstream repository |
| 9 | +GIT_REPO=https://github.com/cbm-fles/pda |
| 10 | +GIT_TAG=11.9.7 |
| 11 | +# This is the branch name to take from, if not using the tag. Leave blank to use tag. |
| 12 | +GIT_BRANCH=bug_sched_atomic |
10 | 13 |
|
11 | 14 | # This is the base name and version for this dkms package |
12 | 15 | PKG_NAME=pda-kadapter-dkms |
13 | | -PKG_VERSION=2.1.3 |
| 16 | +PKG_VERSION=2.1.4 |
14 | 17 |
|
15 | 18 | # local build directory |
16 | 19 | TMPDIR=/tmp/rpm |
@@ -47,11 +50,14 @@ mkdir -p ${TMPDIR}/SOURCES ${TMPDIR}/SPECS ${TMPDIR}/BUILD ${TMPDIR}/RPMS ${TMPD |
47 | 50 | # get source code from upstream |
48 | 51 | echo "Generating source tarball ${TMPDIR}/SOURCES/${PKG_DIR}.src.tar.gz" |
49 | 52 | cd ${WDIR} |
50 | | -git clone https://github.com/cbm-fles/pda.git -c advice.detachedHead=false |
| 53 | +git clone ${GIT_REPO} -c advice.detachedHead=false |
51 | 54 | cd pda |
52 | 55 | git fetch |
53 | | -#git checkout -b fix_sysfs_attr origin/fix_sysfs_attr |
54 | | -git checkout tags/${GIT_TAG} |
| 56 | +if [ "$GIT_BRANCH" != "" ]; then |
| 57 | + git checkout -b ${GIT_BRANCH} origin/${GIT_BRANCH} |
| 58 | +else |
| 59 | + git checkout tags/${GIT_TAG} |
| 60 | +fi |
55 | 61 | cd patches/linux_uio |
56 | 62 |
|
57 | 63 | # update source code with local files, if present |
@@ -90,25 +96,33 @@ rm -f ${TMPDIR}/SPECS/${SPECFILE} |
90 | 96 |
|
91 | 97 | echo "%define version ${VERSION}" >> ${TMPDIR}/SPECS/${SPECFILE} |
92 | 98 | echo "%define module ${PKG_NAME}" >> ${TMPDIR}/SPECS/${SPECFILE} |
| 99 | +echo "URL: ${GIT_REPO}" >> ${TMPDIR}/SPECS/${SPECFILE} |
93 | 100 |
|
94 | 101 | echo ' |
95 | 102 | Summary: PDA kernel adapter DKMS package |
96 | 103 | Name: %{module} |
97 | 104 | Version: %{version} |
98 | 105 | Release: 0 |
99 | 106 | License: BSD |
100 | | -URL: https://github.com/cbm-fles/pda/ |
101 | 107 | Packager: Sylvain Chapeland <[email protected]> |
102 | 108 | Group: System Environment/Kernel |
103 | 109 | BuildArch: noarch |
104 | | -Requires: dkms >= 1.00, kernel-devel, kernel-headers |
| 110 | +Requires: dkms >= 1.00, kernel-devel, kernel-headers, kernel-modules |
105 | 111 | Requires: bash |
106 | 112 | Source0: %{module}-%{version}.src.tar.gz |
107 | 113 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root/ |
108 | 114 |
|
109 | 115 | %description |
110 | | -This package contains the PDA kernel adapter wrapped for the DKMS framework. |
| 116 | +This package contains the PDA kernel adapter wrapped for the DKMS framework.'\ |
| 117 | + >> ${TMPDIR}/SPECS/${SPECFILE} |
| 118 | + |
| 119 | +if [ "$GIT_BRANCH" != "" ]; then |
| 120 | + echo "Built from repository ${GIT_REPO} branch ${GIT_BRANCH}" >> ${TMPDIR}/SPECS/${SPECFILE} |
| 121 | +else |
| 122 | + echo "Built from repository ${GIT_REPO} tag ${GIT_TAG}" >> ${TMPDIR}/SPECS/${SPECFILE} |
| 123 | +fi |
111 | 124 |
|
| 125 | +echo ' |
112 | 126 | %prep |
113 | 127 | %setup |
114 | 128 |
|
|
0 commit comments