[packages/lowdown] - new
qboosh
qboosh at pld-linux.org
Mon Jul 4 20:50:55 CEST 2022
commit e41e8effdbba56df1bdf7cbbda615ddf7c0e7909
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 4 20:52:27 2022 +0200
- new
lowdown-link.patch | 11 ++++++
lowdown.spec | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 113 insertions(+)
---
diff --git a/lowdown.spec b/lowdown.spec
new file mode 100644
index 0000000..cbd83d1
--- /dev/null
+++ b/lowdown.spec
@@ -0,0 +1,102 @@
+Summary: Simple markdown translator library and tools
+Summary(pl.UTF-8): Prosta biblioteka i narzędzia do tłumaczenia formatu markdown
+Name: lowdown
+Version: 1.0.0
+Release: 1
+License: ISC
+Group: Applications/Text
+Source0: https://kristaps.bsd.lv/lowdown/snapshots/%{name}-%{version}.tar.gz
+# Source0-md5: 383323ac828001ad601737bbf5b7a95f
+Patch0: %{name}-link.patch
+URL: https://kristaps.bsd.lv/lowdown/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+lowdown is a Markdown translator producing HTML5, roff documents in
+the ms and man formats, LaTeX, gemini, OpenDocument, and terminal
+output.
+
+%description -l pl.UTF-8
+lowdown to translator formatu Markdown, generujący HTML5, dokumenty
+roff w formatach ms i man, LaTeXa, gemini, OpenDocument oraz tekst.
+
+%package devel
+Summary: Header file for lowdown library
+Summary(pl.UTF-8): Plik nagłówkowy biblioteki lowdown
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header file for lowdown library.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy biblioteki lowdown.
+
+%package static
+Summary: Static lowdown library
+Summary(pl.UTF-8): Statyczna biblioteka lowdown
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static lowdown library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka lowdown.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+# not autoconf configure
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+./configure \
+ CPPFLAGS="%{rpmcppflags}" \
+ LDFLAGS="%{rpmldflags}" \
+ PREFIX="%{_prefix}" \
+ LIBDIR="%{_libdir}" \
+ MANDIR="%{_mandir}"
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install install_libs \
+ DESTDIR=$RPM_BUILD_ROOT \
+ INSTALL_PROGRAM="install -m755" \
+ INSTALL_LIB="install -m755" \
+ INSTALL_MAN="install -m644" \
+ INSTALL_DATA="install -m644"
+
+ln -sf liblowdown.so.1 $RPM_BUILD_ROOT%{_libdir}/liblowdown.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md
+%attr(755,root,root) %{_bindir}/lowdown
+%attr(755,root,root) %{_bindir}/lowdown-diff
+%attr(755,root,root) %{_libdir}/liblowdown.so.1
+%{_datadir}/lowdown
+%{_mandir}/man1/lowdown.1*
+%{_mandir}/man1/lowdown-diff.1*
+%{_mandir}/man5/lowdown.5*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblowdown.so
+%{_includedir}/lowdown.h
+%{_pkgconfigdir}/lowdown.pc
+%{_mandir}/man3/lowdown*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblowdown.a
diff --git a/lowdown-link.patch b/lowdown-link.patch
new file mode 100644
index 0000000..af78fbc
--- /dev/null
+++ b/lowdown-link.patch
@@ -0,0 +1,11 @@
+--- lowdown-1.0.0/Makefile.orig 2022-05-28 19:48:08.000000000 +0200
++++ lowdown-1.0.0/Makefile 2022-07-04 20:16:37.742257784 +0200
+@@ -183,7 +183,7 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
+ $(AR) rs $@ $(OBJS) $(COMPAT_OBJS)
+
+ liblowdown.so: $(OBJS) $(COMPAT_OBJS)
+- $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -Wl,-soname,$@.$(LIBVER)
++ $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -lm -Wl,-soname,$@.$(LIBVER)
+ ln -sf $@.$(LIBVER) $@
+
+ install: bins
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lowdown.git/commitdiff/e41e8effdbba56df1bdf7cbbda615ddf7c0e7909
More information about the pld-cvs-commit
mailing list