Commit 45674b3d authored by Vitaly Lipatov's avatar Vitaly Lipatov

make build

parent 141bb385
pkgdatadir=$(datadir)/erc
pkgdatadir=$(datadir)/evz
# due using %makeinstallstd in spec
instpkgdatadir=/usr/share/erc
instpkgdatadir=/usr/share/evz
install:
mkdir -p $(DESTDIR)$(bindir)/
mkdir -p $(DESTDIR)$(sbindir)/
# breaks link
#install -m 755 `ls -1 bin/* | grep -v "-"` $(DESTDIR)$(bindir)/
cp -a `ls -1 bin/* | grep -v "-"` $(DESTDIR)$(bindir)/
chmod 0755 $(DESTDIR)$(bindir)/*
#install -m 755 `ls -1 bin/* | grep -v "-"` $(DESTDIR)$(sbindir)/
cp -a `ls -1 bin/* | grep -v "-"` $(DESTDIR)$(sbindir)/
chmod 0755 $(DESTDIR)$(sbindir)/*
# hack to replace path
sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" -e "s|@VERSION@|$(version)|g" <bin/erc >$(DESTDIR)$(bindir)/erc
sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" -e "s|@VERSION@|$(version)|g" <bin/ercat >$(DESTDIR)$(bindir)/ercat
#sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" -e "s|@VERSION@|$(version)|g" <bin/erc >$(DESTDIR)$(bindir)/erc
#sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" -e "s|@VERSION@|$(version)|g" <bin/ercat >$(DESTDIR)$(bindir)/ercat
mkdir -p $(DESTDIR)$(pkgdatadir)/
install -m 644 `ls -1 bin/* | grep "-"` $(DESTDIR)$(pkgdatadir)/
#mkdir -p $(DESTDIR)$(pkgdatadir)/
#install -m 644 `ls -1 bin/* | grep "-"` $(DESTDIR)$(pkgdatadir)/
mkdir -p $(DESTDIR)$(mandir)/man8
cp -a `ls -1 man/*` $(DESTDIR)$(mandir)/man8/
......@@ -27,63 +27,18 @@ See detailed description in russian here: http://wiki.etersoft.ru/EVZ
# install to datadir and so on
%makeinstall version=%version-%release
mkdir -p %buildroot%_sysconfdir/bash_completion.d/
install -m 0644 bash_completion/evz
install -D -m 0644 bash_completion/evz %buildroot%_sysconfdir/bash_completion.d/evz
# shebang.req.files
#chmod a+x %buildroot%_datadir/%name/{erc-}*
%files
#doc README LICENSE TODO
%_bindir/evz
%_sbindir/evz
#_datadir/%name/
%_man8dir/*
%_sysconfdir/bash_completion.d/evz
%changelog
* Sun Oct 22 2017 Vitaly Lipatov <lav@altlinux.ru> 0.9.3-alt1
- add support for pack to zip if one dir arg was received
* Sat Jul 22 2017 Vitaly Lipatov <lav@altlinux.ru> 0.9.2-alt1
- fix get extension: check for tar.* firstly
- allow get type of archive for nonexists files too
* Mon Jul 10 2017 Vitaly Lipatov <lav@altlinux.ru> 0.9.1-alt1
- ercat: add lz4 support
* Fri Apr 22 2016 Vitaly Lipatov <lav@altlinux.ru> 0.9-alt1
- skip repack for the same input and output file
- erc: add add command
- erc: add tgz format recognize
- pack unerc
* Sat Aug 15 2015 Vitaly Lipatov <lav@altlinux.ru> 0.8-alt1
- erc: add -f (--force) for override target, improve test
* Tue Aug 04 2015 Vitaly Lipatov <lav@altlinux.ru> 0.7-alt1
- add zpaq and pax to supported formats
- erc: add options support and implement --quiet
- add unerc command
* Fri Feb 20 2015 Vitaly Lipatov <lav@altlinux.ru> 0.6-alt1
- improve is_target_format to check against supported target formats
* Tue Oct 15 2013 Vitaly Lipatov <lav@altlinux.ru> 0.5-alt1
- erc-archive: fix basename issues
- use bash for all scripts (welcome to debug with dash!)
* Tue Sep 03 2013 Vitaly Lipatov <lav@altlinux.ru> 0.4-alt1
- ercat: add support for plain text files too
- update README, add man pages
* Fri Jul 26 2013 Vitaly Lipatov <lav@altlinux.ru> 0.3-alt1
- small fixes
- erc: enable search and improve help
* Fri Jul 26 2013 Vitaly Lipatov <lav@altlinux.ru> 0.2-alt1
- erc: unpack archive by default
- erc: add support for target arch to create and repack
- introduce ercat: cat any archive to stdout (like bzcat)
* Thu Jul 25 2013 Vitaly Lipatov <lav@altlinux.ru> 0.1-alt1
* Sat Oct 28 2017 Vitaly Lipatov <lav@altlinux.ru> 0.0.1-alt1
- initial build for ALT Linux Sisyphus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment