|
|
@ -1,12 +1,21 @@
|
|
|
|
Summary: Yet Another Dotfiles Manager
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
Name: yadm
|
|
|
|
Name: yadm
|
|
|
|
|
|
|
|
Summary: Yet Another Dotfiles Manager
|
|
|
|
Version: 1.12.0
|
|
|
|
Version: 1.12.0
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
URL: https://github.com/TheLocehiliosan/yadm
|
|
|
|
URL: https://yadm.io
|
|
|
|
License: GPLv3
|
|
|
|
License: GPL-3.0-only
|
|
|
|
BuildRequires: hostname git gnupg bats expect
|
|
|
|
Requires: bash
|
|
|
|
Requires: bash hostname git
|
|
|
|
Requires: git
|
|
|
|
Source: https://github.com/TheLocehiliosan/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} >= 700
|
|
|
|
|
|
|
|
Requires: /usr/bin/hostname
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Requires: /bin/hostname
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Source: %{name}.tar.gz
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -17,24 +26,31 @@ yadm supplies the ability to manage a subset of secure files, which are
|
|
|
|
encrypted before they are included in the repository.
|
|
|
|
encrypted before they are included in the repository.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -c
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
bats test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
# this is done to allow paths other than yadm-x.x.x (for example, when building
|
|
|
|
install -m 755 yadm ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
# from branches instead of release tags)
|
|
|
|
install -m 644 yadm.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
cd *yadm-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__mkdir} -p %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
%{__cp} yadm %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__mkdir} -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
%{__cp} yadm.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__mkdir} -p %{buildroot}%{_pkgdocdir}
|
|
|
|
|
|
|
|
%{__cp} README.md %{buildroot}%{_pkgdocdir}/README
|
|
|
|
|
|
|
|
%{__cp} CHANGES CONTRIBUTORS LICENSE %{buildroot}%{_pkgdocdir}
|
|
|
|
|
|
|
|
%{__cp} -r completion contrib %{buildroot}%{_pkgdocdir}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%attr(755,root,root) %{_bindir}/yadm
|
|
|
|
%attr(755,root,root) %{_bindir}/yadm
|
|
|
|
%attr(644,root,root) %{_mandir}/man1/*
|
|
|
|
%attr(644,root,root) %{_mandir}/man1/*
|
|
|
|
%license LICENSE
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
%doc CHANGES CONTRIBUTORS README.md completion/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Oct 25 2017 Tim Byrne <sultan@locehilios.com> - 1.12.0-1
|
|
|
|
* Wed Oct 25 2017 Tim Byrne <sultan@locehilios.com> - 1.12.0-1
|
|
|
|