CBL-Mariner/SPECS/asciidoc/asciidoc.spec

106 строки
3.4 KiB
Plaintext

Summary: AsciiDoc is a human readable text document format
Name: asciidoc
Version: 10.2.0
Release: 2%{?dist}
License: GPLv2
URL: https://asciidoc.org/
Group: System Environment/Development
Vendor: Microsoft Corporation
Distribution: Azure Linux
Source0: https://github.com/%{name}-py/%{name}-py/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3
BuildRequires: python3-xml
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
BuildRequires: docbook-dtd-xml
BuildRequires: python3-pip
Requires: python3
Requires: python3-xml
Requires: libxslt
Requires: docbook-style-xsl
Requires: docbook-dtd-xml
%description
AsciiDoc is a human readable text document format that can be easily converted to other document formats.
%prep
%autosetup -n %{name}-%{version}
%build
autoreconf -v
export CFLAGS="%{optflags}"
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
make %{?_smp_mflags}
%install
rm -rf %{buildroot}%{_infodir}
make install docs manpages DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}/share/doc/doc/{asciidoc.1,a2x.1,testasciidoc.1} %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}/%{_pkgdocdir}/doc
mv %{buildroot}/share/doc/doc/ %{buildroot}/%{_pkgdocdir}/doc
mkdir -p %{buildroot}/%{_pkgdocdir}/doc/images
mv %{buildroot}/share/doc/images/ %{buildroot}/%{_pkgdocdir}/doc/images
rm %{buildroot}/share/doc/{BUGS.adoc,CHANGELOG.adoc,INSTALL.adoc,README.md,dblatex/dblatex-readme.txt,docbook-xsl/asciidoc-docbook-xsl.txt}
%check
python3 tests/testasciidoc.py update
python3 tests/testasciidoc.py run
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYRIGHT
%doc BUGS.adoc CHANGELOG.adoc README.md
%{_bindir}/*
%{_mandir}/*
%{python3_sitelib}/asciidoc/
%{_pkgdocdir}/doc
%{python3_sitelib}/asciidoc-*
%dir %{python3_sitelib}/asciidoc/resources/filters/latex
%dir %{python3_sitelib}/asciidoc/resources/filters/music
%changelog
* Fri Feb 02 2024 Andrew Phelps <anphel@microsoft.com> - 10.2.0-2
- Fix path for egg-info
* Mon Jan 15 2024 Suresh Thelkar <sthelkar@microsoft.com> - 10.2.0-1
- Upgraded to 10.2.0
- Added BR for python3-pip
- Added doc and man pages related changes as well
* Wed May 05 2021 Nick Samson <nisamson@microsoft.com> - 9.1.0-1
- Updated to 9.1.0, removed python2 support, verified license
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 8.6.10-4
- Added %%license line automatically
* Tue May 05 2020 Emre Girgin <mrgirgin@microsoft.com> 8.6.10-3
- Renaming docbook-xsl to docbook-style-xsl
* Tue May 05 2020 Emre Girgin <mrgirgin@microsoft.com> 8.6.10-2
- Renaming docbook-xml to docbook-dtd-xml
* Wed Mar 25 2020 Emre Girgin <mrgirgin@microsoft.com> 8.6.10-1
- Update to verison 8.6.10 and python3 implementation. License verified.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 8.6.9-5
- Initial CBL-Mariner import from Photon (license: Apache2).
* Wed Sep 06 2017 Anish Swaminathan <anishs@vmware.com> 8.6.9-4
- Use system sysconfdir
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.6.9-3
- Fix arch
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.6.9-2
- GA - Bump release of all rpms
* Fri Jun 5 2015 Touseef Liaqat <tliaqat@vmware.com> 8.6.9-1
- Initial build. First version