diff --git a/golang-github-abbot-go-http-auth.spec b/golang-github-abbot-go-http-auth.spec index dc4d1c1..10a49ef 100644 --- a/golang-github-abbot-go-http-auth.spec +++ b/golang-github-abbot-go-http-auth.spec @@ -127,11 +127,6 @@ for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list done %endif -cp -pav test.htdigest %{buildroot}/%{gopath}/src/%{import_path}/ -echo "%%{gopath}/src/%%{import_path}/test.htdigest" >> devel.file-list -cp -pav test.htpasswd %{buildroot}/%{gopath}/src/%{import_path}/ -echo "%%{gopath}/src/%%{import_path}/test.htpasswd" >> devel.file-list - # testing files for this project %if 0%{?with_unit_test} @@ -142,6 +137,10 @@ for file in $(find . -iname "*_test.go"); do cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list done +cp -pav test.htdigest %{buildroot}/%{gopath}/src/%{import_path}/ +echo "%%{gopath}/src/%%{import_path}/test.htdigest" >> unit-test.file-list +cp -pav test.htpasswd %{buildroot}/%{gopath}/src/%{import_path}/ +echo "%%{gopath}/src/%%{import_path}/test.htpasswd" >> unit-test.file-list %endif %check