discount/discount.spec

89 lines
2.5 KiB
RPMSpec

Name: discount
Version: 2.2.7d
Release: 1mamba
Summary: A implementation of John Gruber & Aaron Swartz's Markdown markup language
Group: Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.pell.portland.or.us/~orc/Code/discount/
Source: https://github.com/Orc/discount.git/v%{version}/discount-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: libmarkdown = %{?epoch:%epoch:}%{version}-%{release}
%description
DISCOUNT is a implementation of John Gruber & Aaron Swartz's Markdown markup language.
%package -n libmarkdown
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libmarkdown
DISCOUNT is a implementation of John Gruber & Aaron Swartz's Markdown markup language.
This package contains shared libraries for %{name}.
%package -n libmarkdown-devel
Group: Development/Libraries
Summary: Development files for libmarkdown
Requires: libmarkdown = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n libmarkdown-devel
This package contains libraries and header files for developing applications that use libmarkdown.
%debug_package
%prep
%setup -q
%build
./configure.sh \
--shared --pkg-config --cxx-binding
%make -j1 \
BINDIR=%{_bindir} MANDIR=%{_mandir} \
LIBDIR=%{_libdir} INCDIR=%{_includedir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
sed -i "/\/sbin\/ldconfig/d" librarian.sh
%makeinstall \
BINDIR=%{_bindir} MANDIR=%{_mandir} \
LIBDIR=%{_libdir} INCDIR=%{_includedir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libmarkdown -p /sbin/ldconfig
%postun -n libmarkdown -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/markdown
%files -n libmarkdown
%defattr(-,root,root)
%{_libdir}/libmarkdown.so.*
%doc COPYRIGHT CREDITS
%files -n libmarkdown-devel
%defattr(-,root,root)
%{_libdir}/libmarkdown.so
%{_libdir}/pkgconfig/libmarkdown.pc
%{_includedir}/mkdio.h
%doc README
%changelog
* Sat Sep 02 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.7d-1mamba
- update to 2.2.7d
* Fri Aug 28 2020 Automatic Build System <autodist@mambasoft.it> 2.2.7-1mamba
- automatic version update by autodist
* Sat Jul 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.6-1mamba
- package created using the webbuild interface