LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pre_checkin.sh of Package libatlas3 (Project home:X0F:branches:multimedia)

#!/bin/bash

for x in sse.60 sse2.70 sse3.80; do
	f="${x%.*}"
	p="${x##*.}"
	cp libatlas3.spec "libatlas3-$f.spec"
	perl -i -pe 's{^\%define flavor .*}{\%define flavor '"$f"'};
		s{^\%define fdevel\b.*}{\%define fdevel '"$f-devel"'};
		s{^\%define uaprio \d+}{\%define uaprio '"$p"'}' "libatlas3-$f.spec"
done