]>
Commit | Line | Data |
---|---|---|
eba5ab10 | 1 | Summary: A command-line utility for converting Markdown files into HTML |
46a2955d | 2 | Summary(pl.UTF-8): Działające z linii poleceń narzędzie do konwersji plików Markdown do HTML-a |
eba5ab10 | 3 | Name: discount |
46a2955d | 4 | Version: 2.1.8a |
eba5ab10 ER |
5 | Release: 1 |
6 | License: BSD | |
46a2955d JB |
7 | Group: Applications/Text |
8 | Source0: http://www.pell.portland.or.us/~orc/Code/discount/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: edada8cc01accc2c0a634871991b4e08 | |
eba5ab10 | 10 | Patch0: %{name}-ldconfig.patch |
46a2955d | 11 | URL: http://www.pell.portland.or.us/~orc/Code/discount |
eba5ab10 ER |
12 | Requires: libmarkdown = %{version}-%{release} |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | DISCOUNT is an implementation of John Gruber's Markdown language in C. | |
17 | It includes all of the original Markdown features, along with a few | |
18 | extensions, and passes the Markdown test suite. | |
19 | ||
46a2955d JB |
20 | %description -l pl.UTF-8 |
21 | DISCOUNT to implementacja języka Markdown Johna Grubera w C. Obejmuje | |
22 | wszystkie oryginalne cechy języka Markdown wraz z kilkoma | |
23 | rozszerzeniami, przechodzi zestaw testów Markdown. | |
24 | ||
eba5ab10 ER |
25 | %package -n libmarkdown |
26 | Summary: A fast implementation of the Markdown language in C | |
46a2955d | 27 | Summary(pl.UTF-8): Szybka implementacja języka Markdown w C |
eba5ab10 ER |
28 | Group: Libraries |
29 | ||
30 | %description -n libmarkdown | |
31 | libmarkdown is the library portion of discount, a fast Markdown | |
32 | language implementation, written in C. | |
33 | ||
46a2955d JB |
34 | %description -n libmarkdown -l pl.UTF-8 |
35 | libmarkdown to biblioteka z projektu discount, będąca szybką | |
36 | implementacją języka Markdown, napisaną w C. | |
37 | ||
eba5ab10 ER |
38 | %package -n libmarkdown-devel |
39 | Summary: Development headers for the libmarkdown library | |
46a2955d | 40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmarkdown |
eba5ab10 ER |
41 | Group: Development/Libraries |
42 | Requires: libmarkdown = %{version}-%{release} | |
43 | ||
44 | %description -n libmarkdown-devel | |
45 | This package contains development headers and developer-oriented man | |
46 | pages for libmarkdown. | |
47 | ||
46a2955d JB |
48 | %description -n libmarkdown-devel -l pl.UTF-8 |
49 | Ten pakiet zawiera pliki nagłówkowe oraz dokumentację programisty do | |
50 | biblioteki libmarkdown. | |
51 | ||
eba5ab10 ER |
52 | %prep |
53 | %setup -q | |
54 | %patch0 | |
55 | ||
56 | %build | |
57 | # NOTE: not autoconf based configure | |
58 | CC="%{__cc}" \ | |
59 | CFLAGS="%{rpmcflags}" \ | |
60 | LDFLAGS="%{rpmldflags}" \ | |
61 | ./configure.sh \ | |
62 | --shared \ | |
63 | --prefix=%{_prefix} \ | |
64 | --execdir=%{_bindir} \ | |
65 | --libdir=%{_libdir} \ | |
66 | --mandir=%{_mandir} \ | |
67 | --enable-all-features \ | |
68 | --with-fenced-code | |
69 | ||
70 | %{__make} | |
71 | ||
72 | %if %{with tests} | |
73 | %{__make} test | |
74 | %endif | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | %{__make} install.everything \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | # Rename sample programs (names are too generic) and matching man1 pages | |
46a2955d JB |
82 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/makepage $RPM_BUILD_ROOT%{_bindir}/discount-makepage |
83 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/mkd2html $RPM_BUILD_ROOT%{_bindir}/discount-mkd2html | |
84 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/theme $RPM_BUILD_ROOT%{_bindir}/discount-theme | |
85 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/makepage.1 \ | |
86 | $RPM_BUILD_ROOT%{_mandir}/man1/discount-makepage.1 | |
87 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/mkd2html.1 \ | |
88 | $RPM_BUILD_ROOT%{_mandir}/man1/discount-mkd2html.1 | |
89 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/theme.1 \ | |
90 | $RPM_BUILD_ROOT%{_mandir}/man1/discount-theme.1 | |
eba5ab10 ER |
91 | |
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -n libmarkdown -p /sbin/ldconfig | |
96 | %postun -n libmarkdown -p /sbin/ldconfig | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_bindir}/markdown | |
101 | %attr(755,root,root) %{_bindir}/discount-makepage | |
102 | %attr(755,root,root) %{_bindir}/discount-mkd2html | |
103 | %attr(755,root,root) %{_bindir}/discount-theme | |
104 | %{_mandir}/man1/markdown.1* | |
105 | %{_mandir}/man7/markdown.7* | |
106 | %{_mandir}/man1/discount-*.1* | |
107 | %{_mandir}/man7/mkd-*.7* | |
108 | ||
109 | %files -n libmarkdown | |
110 | %defattr(644,root,root,755) | |
111 | %doc README COPYRIGHT CREDITS | |
112 | %attr(755,root,root) %{_libdir}/libmarkdown.so.*.*.* | |
46a2955d | 113 | %attr(755,root,root) %ghost %{_libdir}/libmarkdown.so.2 |
eba5ab10 ER |
114 | |
115 | %files -n libmarkdown-devel | |
116 | %defattr(644,root,root,755) | |
46a2955d | 117 | %attr(755,root,root) %{_libdir}/libmarkdown.so |
eba5ab10 ER |
118 | %{_includedir}/mkdio.h |
119 | %{_mandir}/man3/markdown.3* | |
120 | %{_mandir}/man3/mkd_*.3* | |
121 | %{_mandir}/man3/mkd-*.3* |