diff --git a/asn1c.spec b/asn1c.spec index 9e51885..b54d435 100644 --- a/asn1c.spec +++ b/asn1c.spec @@ -1,12 +1,14 @@ Name: asn1c Version: 0.9.27 -Release: 4%{?dist} +Release: 5%{?dist} Summary: An ASN.1 Compiler License: BSD URL: http://lionet.info/asn1c Source0: http://lionet.info/soft/%{name}-%{version}.tar.gz +BuildRequires: perl + %description Compiles ASN.1 data structures into C source structures that can be simply marshalled to/unmarshalled from: BER, DER, CER, BASIC-XER, @@ -16,21 +18,27 @@ CXER, EXTENDED-XER, PER. %setup -q %build -%configure +%configure --docdir=%{_pkgdocdir} make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/%{name} # Remove duplicate docs +# Do not install COPYING into %%_pkgdocdir +rm $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}/COPYING %files -%doc BUGS COPYING ChangeLog FAQ README TODO doc/asn1c-quick.pdf doc/asn1c-usage.pdf +%doc %{_pkgdocdir} +%license COPYING %{_bindir}/* %{_mandir}/man1/* %{_datadir}/%{name} %changelog +* Thu Feb 16 2017 Ralf Corsépius - 0.9.27-5 +- Add BR: perl (Fix F26FTBFS). +- Introduce %%license. +- Rework doc handling. + * Fri Feb 10 2017 Fedora Release Engineering - 0.9.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild