Open leaeasy opened 8 years ago
But 'make archive' does include the VERSION file in the created archive.
But something want this file, so I also interested how it works in OpenSuse.
I tried do something like exist in src.rpm from OpenSuse on UPLOS Linux ( PCLinuxOS based ) but I download from https://github.com/openSUSE/gfxboot/releases and unpack
[tele@localhost gfxboot-4.5.18]$ mkdir build
[tele@localhost gfxboot-4.5.18]$ pwd
/home/tele/Downloads/NEW/gfxboot-4.5.18
[tele@localhost gfxboot-4.5.18]$ make DESTDIR=/home/tele/Downloads/NEW/gfxboot-4.5.18/build installsrc
no git repo
cat: VERSION: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
install -d -m 755 /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot/themes
cp -a themes/example* /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot/themes
cp -a bin test /home/tele/Downloads/NEW/gfxboot-4.5.18/build/usr/share/gfxboot
[tele@localhost gfxboot-4.5.18]$ make X11LIBS=/usr/X11R6/lib
no git repo
cat: VERSION: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
./git2log --update --changelog changelog
no git repo
Makefile:18: recipe for target 'changelog' failed
make: *** [changelog] Error 2
I want write something else From README.md
You can find more information about this workflow in the linuxrc-devtools documentation.
we going to this website and ...
tobs
Commit current git state to build service.
There must be a make target archive that has created:
a VERSION file a changelog file a source archive package/<name>-<version>.tar.xz optionally other source files (that will be mentioned in *.spec) below package/
Ideally, repeated make runs should produce exactly the same archive file as long as the git repo stays unchanged.
So, If you can, write how you doing it.
When build package with the release source, we cannot get the package version. I wonder if the VERSION file should be shipped in then archive source.
Makefile: 6 VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION) 7 BRANCH := $(shell git branch | perl -ne 'print $$_ if s/^\s//') 8 PREFIX := gfxboot-$(VERSION)