commit 0505ff011b9c5676c523e8f6ce5a1278b1749841 Author: Morgan McMillian Date: Fri Mar 3 06:03:46 2023 -0800 initial package setup diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3f58894 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +PKGNAME = tarsnap +SPECFILE = $(PKGNAME).spec +ARCH = $(shell rpm --eval "%{_arch}") +RPMBUILD = $(shell rpm --eval "%{_builddir}") +RPMSOURCE = $(shell rpm --eval "%{_sourcedir}") +RPMDIR = $(shell rpm --eval "%{_rpmdir}") + +version = $(shell egrep "^Version" $(SPECFILE) | awk '{ print $$2}') +release = $(shell egrep "^Release" $(SPECFILE) | awk '{ print $$2}' | cut -d% -f1) +dist = $(shell rpm --eval "%{?dist}") + +sourceurl = https://www.tarsnap.com/download/tarsnap-autoconf-$(version).tgz +source = $(RPMSOURCE)/tarsnap-autoconf-$(version).tgz + +RPM = $(RPMDIR)/$(ARCH)/$(PKGNAME)-$(version)-$(release)$(dist).$(ARCH).rpm +SHA = $(PKGNAME)-$(version)-$(release)$(dist).$(ARCH).rpm.sha256 + +all: $(RPM) + +$(RPM): $(SPECFILE) $(source) + rpmbuild -bb $< + +$(source): + wget -O $@ $(sourceurl) + +release: $(RPM) + sha256sum $< > $(SHA) + tea release create --draft --title "v$(version)" --tag v$(version) \ + --asset $< --asset $(SHA) + +clean: + rm $(RPM) $(source) $(SHA) + +.PHONY: clean diff --git a/tarsnap.spec b/tarsnap.spec new file mode 100644 index 0000000..596d6a0 --- /dev/null +++ b/tarsnap.spec @@ -0,0 +1,77 @@ +Name: tarsnap +Version: 1.0.40 +Release: 1%{?dist} +Summary: Secure, efficient online backup service + +License: Proprietary +URL: https://www.tarsnap.com/ +Source0: https://www.tarsnap.com/download/tarsnap-autoconf-%{version}.tgz + +BuildRequires: gcc +BuildRequires: bzip2-devel +BuildRequires: e2fsprogs-devel +BuildRequires: libacl-devel +BuildRequires: libattr-devel +BuildRequires: openssl-devel +BuildRequires: xz-devel +BuildRequires: zlib-devel +BuildRequires: pkgconfig(bash-completion) + +%description +This package contains the client for Tarsnap: a secure, efficient online +backup service. + - Your data is encrypted with your personal keys. + - The client source code is available. + - Deduplication finds unique data between your current data and encrypted + archives. + + +%prep +%setup -qn tarsnap-autoconf-%{version} + + +%build +%configure --with-bash-completion-dir +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +mkdir -p $RPM_BUILD_ROOT/%{_pkgdocdir} +mv $RPM_BUILD_ROOT/%{_sysconfdir}/tarsnap.conf.sample \ + $RPM_BUILD_ROOT/%{_pkgdocdir} + + +%files +%{_bindir}/* +%{_datarootdir}/bash-completion/completions/* +%{_mandir}/man*/* +%{_pkgdocdir}/* +%license COPYING + + +%changelog +* Fri Feb 11 2022 Graham Percival 1.0.40-1 +- Upstream version 1.0.40 + +* Thu May 6 2021 Adam Thiede 1.0.39-2 +- lzma-devel dependency removed as it was replaced by xz-devel + +* Sun Sep 3 2017 David Sastre Medina 1.0.39-1 +- Upstream version 1.0.39 +- Switch to HTTPS URLs. + +* Mon Mar 7 2016 Graham Percival 1.0.37-1 +- Upstream version 1.0.37 +- Reinstate libattr dependency, and add lzma. + +* Fri Mar 4 2016 Benjamin Gilbert 1.0.36.1-3 +- Drop unneeded libattr dependency +- Only use pkgconfig() BuildRequires for packages detected via pkg-config + +* Tue Mar 1 2016 Benjamin Gilbert 1.0.36.1-2 +- Link against libacl and libattr + +* Tue Mar 1 2016 Benjamin Gilbert 1.0.36.1-1 +- Initial package