diff --git a/README.md b/README.md index fdeef4c..7f758b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # discount +DISCOUNT is a implementation of John Gruber & Aaron Swartz's Markdown markup language. + diff --git a/discount.spec b/discount.spec new file mode 100644 index 0000000..da3dc14 --- /dev/null +++ b/discount.spec @@ -0,0 +1,85 @@ +Name: discount +Version: 2.2.6 +Release: 1mamba +Summary: A implementation of John Gruber & Aaron Swartz's Markdown markup language +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.pell.portland.or.us/~orc/Code/discount/ +## GITSOURCE https://github.com/Orc/discount.git v2.2.6 +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} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 Jul 27 2019 Silvan Calarco 2.2.6-1mamba +- package created using the webbuild interface