|
Alain Reguera Delgado |
2fcc87 |
NAME=tcar
|
|
Alain Reguera Delgado |
2fcc87 |
DATADIR=/usr/share
|
|
Alain Reguera Delgado |
2fcc87 |
BINDIR=/usr/bin
|
|
Alain Reguera Delgado |
2fcc87 |
|
|
Alain Reguera Delgado |
2fcc87 |
GITREPO=gitolite@centos.org.cu
|
|
Alain Reguera Delgado |
2fcc87 |
GITREPO_ARTWORK=${GITREPO}:centos-artwork.git
|
|
Alain Reguera Delgado |
2fcc87 |
GITREPO_PACKAGES=${GITREPO}:centos-packages.git
|
|
Alain Reguera Delgado |
2fcc87 |
|
|
Alain Reguera Delgado |
2fcc87 |
archive:
|
|
Alain Reguera Delgado |
2fcc87 |
git archive --format=tar --remote=${GITREPO_PACKAGES} ${NAME} \
|
|
Alain Reguera Delgado |
2fcc87 |
| tar -x -C $$HOME/rpmbuild/SPECS/; \
|
|
Alain Reguera Delgado |
2fcc87 |
export SPEC="$$HOME/rpmbuild/SPECS/${NAME}/${NAME}.spec"; \
|
|
Alain Reguera Delgado |
2fcc87 |
export VERSION=`gawk '/^Version/ { print $$2 }' $$SPEC`; \
|
|
Alain Reguera Delgado |
2fcc87 |
export TAG="${NAME}-$$VERSION"; \
|
|
Alain Reguera Delgado |
2fcc87 |
export SOURCE="$$HOME/rpmbuild/SOURCES/$$TAG.tar.bz2"; \
|
|
Alain Reguera Delgado |
2fcc87 |
git archive --format=tar --remote=${GITREPO_ARTWORK} ${NAME} \
|
|
Alain Reguera Delgado |
2fcc87 |
--prefix=$$TAG/ | bzip2 > $$SOURCE; \
|
|
Alain Reguera Delgado |
2fcc87 |
rpmlint $$SPEC && rpmbuild --sign -ba $$SPEC;
|
|
Alain Reguera Delgado |
2fcc87 |
|
|
Alain Reguera Delgado |
2fcc87 |
install:
|
|
Alain Reguera Delgado |
2fcc87 |
for i in scripts brushes fonts palettes;do \
|
|
Alain Reguera Delgado |
2fcc87 |
mkdir -p ${DESTDIR}${DATADIR}/${NAME}/$i; \
|
|
Alain Reguera Delgado |
2fcc87 |
cp -rp ${NAME}-$i/* ${DESTDIR}${DATADIR}/${NAME}/$i/; \
|
|
Alain Reguera Delgado |
2fcc87 |
done; \
|
|
Alain Reguera Delgado |
2fcc87 |
mkdir -p ${DESTDIR}${BINDIR}; \
|
|
Alain Reguera Delgado |
2fcc87 |
ln -s ${DATADIR}/${NAME}/scripts/${NAME}.sh ${DESTDIR}${BINDIR}/${NAME}; \
|
|
Alain Reguera Delgado |
2fcc87 |
for i in hello prepare render locale tuneup;do \
|
|
Alain Reguera Delgado |
2fcc87 |
mkdir -p ${DESTDIR}${DATADIR}/${NAME}/scripts/modules/$i; \
|
|
Alain Reguera Delgado |
2fcc87 |
cp -rp ${NAME}-scripts-$i/* ${DESTDIR}${DATADIR}/${NAME}/scripts/modules/$i/ ; \
|
|
Alain Reguera Delgado |
2fcc87 |
done; \
|
|
Alain Reguera Delgado |
2fcc87 |
for i in brands dist docs icons promo webenv;do \
|
|
Alain Reguera Delgado |
2fcc87 |
mkdir -p ${DESTDIR}${DATADIR}/${NAME}/models/$i ; \
|
|
Alain Reguera Delgado |
2fcc87 |
cp -rp ${NAME}-models-$i/* ${DESTDIR}${DATADIR}/${NAME}/models/$i/ ;\
|
|
Alain Reguera Delgado |
2fcc87 |
done;
|