Blob Blame History Raw
%global commit aeb8d6843cbf95149af8d66b06ca5b82aed1268f
%global shortcommit %(c=%{commit}; echo ${c:0:7})


Name:           irma_configuration
Version:        0.1
Release:        0.5.%{shortcommit}%{?dist}
Summary:        IRMA Card configuration data

License:        CC0
URL:            https://github.com/credentials/irma_configuration
Source0:        https://github.com/credentials/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:      noarch

#BuildRequires:  
#Requires:       

%description
Configuration of issuers and verifiers in the public IRMA system.

This package is used by other packages that want to verify/issue IRMA cards.


%prep
%setup -q -n %{name}-%{commit}

%build

%install
# generate_keys.sh makes no sense at all in a system-wide package
rm -f generate_keys.sh
mkdir -p %{buildroot}%{_datadir}/%{name}
# We need everything except for generate_keys.sh and README.md
cp -pr * %{buildroot}%{_datadir}/%{name}
# We only delete these ones from here because they are installed as documentation
rm -f %{buildroot}%{_datadir}/%{name}/{README.md,AUTHORS,LICENSE}

%files
%doc README.md AUTHORS LICENSE
%attr(-,root,root) %{_datadir}/%{name}

%changelog
* Thu Jul 03 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.1-0.5.aeb8d68
- Fix permissions

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-0.4.aeb8d68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Mar 14 2014 Patrick Uiterwijk (LOCAL) <puiterwijk@redhat.com> - 0.1-0.3.aeb8d68
- Using %attr(0644, root, root)

* Wed Mar 12 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.1-0.2.aeb8d68
- Using shortcommit in version
- Set permissions explicitely

* Tue Mar 11 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.1-0.1.9c3105d863739a43bb13a51721bcd73a5fa75e18
- Initial Package