11Vendor: Microsoft Corporation
22Distribution: Azure Linux
3+ # FTBFS with GCC 14 -Werror=incompatible-pointer-types
4+ # https://bugzilla.redhat.com/show_bug.cgi?id=2261063
5+ %global build_type_safety_c 2
6+
37Name: discount
4- Version: 2.2.4
5- Release: 5 %{?dist }
8+ Version: 2.2.7
9+ Release: 10 %{?dist }
610Summary: A command-line utility for converting Markdown files into HTML
711License: BSD
812URL: http://www.pell.portland.or.us/~orc/Code/%{name }
9- Source0: %{ url }/ %{name }- %{version }.tar.bz2
13+ Source0: https://github.com/Orc/ %{name }/archive/v %{version }.tar.gz
1014Patch0: discount-dont-run-ldconfig.patch
15+ Patch1: define_destructor.patch
16+ Patch2: set_deps.patch
17+ Patch3: discount-c99.patch
1118
1219BuildRequires: gcc
20+ BuildRequires: make
21+ BuildRequires: cmake
1322Requires: libmarkdown%{?_isa } = %{version }-%{release }
1423
1524%description
@@ -38,7 +47,10 @@ libmarkdown.
3847%prep
3948%setup -q
4049
41- %patch 0 -p1
50+ %patch -P 0 -p1
51+ %patch -P 1 -p1
52+ %patch -P 2 -p1
53+ %patch -P 3 -p1
4254
4355
4456%build
@@ -51,41 +63,42 @@ CFLAGS='%{optflags}' ./configure.sh \
5163 --enable-all-features \
5264 --with-fenced-code \
5365 --pkg-config
54- make %{?_smp_mflags }
66+ #make
67+ %make_build %{?_smp_flags }
5568
5669
5770%install
58- make install.everything DESTDIR=%{buildroot }
71+ % make_install install.man install.samples DESTDIR=%{buildroot }
5972install -D -m 644 libmarkdown.pc %{buildroot }%{_libdir }/pkgconfig/
6073cp -pav libmarkdown.pc %{buildroot }%{_libdir }/pkgconfig/
6174# Rename sample programs (names are too generic) and matching man1 pages
6275mv %{buildroot }%{_bindir }/makepage %{buildroot }%{_bindir }/discount-makepage
6376mv %{buildroot }%{_bindir }/mkd2html %{buildroot }%{_bindir }/discount-mkd2html
6477mv %{buildroot }%{_bindir }/theme %{buildroot }%{_bindir }/discount-theme
65- mv %{buildroot }%{_mandir }/man1/makepage.1 \
66- %{buildroot }%{_mandir }/man1/discount-makepage.1
67- mv %{buildroot }%{_mandir }/man1/mkd2html.1 \
68- %{buildroot }%{_mandir }/man1/discount-mkd2html.1
69- mv %{buildroot }%{_mandir }/man1/theme.1 \
70- %{buildroot }%{_mandir }/man1/discount-theme.1
71-
78+ mv %{buildroot }%{_mandir }/man1/makepage.1 %{buildroot }%{_mandir }/man1/discount-makepage.1
79+ mv %{buildroot }%{_mandir }/man1/mkd2html.1 %{buildroot }%{_mandir }/man1/discount-mkd2html.1
80+ mv %{buildroot }%{_mandir }/man1/theme.1 %{buildroot }%{_mandir }/man1/discount-theme.1
7281
7382%ldconfig_scriptlets -n libmarkdown
7483
7584
7685%check
77- make test
86+ for x in tests/* .t; do
87+ LD_LIBRARY_PATH=$( pwd) sh " ${x} " || exit 1;
88+ done
7889
7990
8091%files
8192%{_bindir }/markdown
8293%{_bindir }/discount-makepage
8394%{_bindir }/discount-mkd2html
8495%{_bindir }/discount-theme
85- %{_mandir }/man1/markdown.1*
86- %{_mandir }/man7/markdown.7*
8796%{_mandir }/man1/discount-* .1*
88- %{_mandir }/man7/mkd-* .7*
97+ %{_mandir }/man1/markdown.1.gz
98+ %{_mandir }/man3/markdown.3.gz
99+ %{_mandir }/man3/mkd*
100+ %{_mandir }/man7/markdown.7.gz
101+ %{_mandir }/man7/mkd-extensions.7.gz
89102
90103
91104%files -n libmarkdown
@@ -97,14 +110,53 @@ make test
97110%{_libdir }/libmarkdown.so
98111%{_libdir }/pkgconfig/libmarkdown.pc
99112%{_includedir }/mkdio.h
100- %{_mandir }/man3/markdown.3*
101- %{_mandir }/man3/mkd_* .3*
102- %{_mandir }/man3/mkd-* .3*
103113
104114
105115%changelog
106- * Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.2.4-5
107- - Initial CBL-Mariner import from Fedora 32 (license: MIT).
116+ * Wed Oct 24 2024 Sreenivasulu Malavathula <v-smalavathu@microsoft.com> - 2.2.7-10
117+ - Initial Azure Linux import from Fedora 41 (license: MIT)
118+ - License verified
119+
120+ * Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-9
121+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
122+
123+ * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-8
124+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
125+
126+ * Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-7
127+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
128+
129+ * Tue Nov 28 2023 Greg Hellings <greg.hellings@gmail.com> - 2.2.7-6
130+ - Use upstream manpage install command
131+ - Rename man pages whose names are bad
132+
133+ * Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-5
134+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
135+
136+ * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-4
137+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
138+
139+ * Fri Nov 25 2022 Florian Weimer <fweimer@redhat.com> - 2.2.7-3
140+ - Fix building in C99 mode
141+
142+ * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-2
143+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
144+
145+ * Fri Mar 18 2022 Greg Hellings - 2.2.7-1
146+ - Upstream version 2.2.7
147+ - Add two patches
148+
149+ * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-8
150+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
151+
152+ * Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-7
153+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
154+
155+ * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-6
156+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
157+
158+ * Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-5
159+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
108160
109161* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-4
110162- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0 commit comments