3 %bcond_without static_libs # static library
4 %bcond_without system_libs # system libcroco, glib2, libxml2
6 Summary: GNU libtextstyle - Text styling library
7 Summary(pl.UTF-8): GNU libtextstyle - biblioteka do obsługi stylu tekstu
13 Source0: http://alpha.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
14 # Source0-md5: 30be56f2428ff2add624caf3a1700d3e
15 Patch0: %{name}-libdir.patch
16 Patch1: %{name}-info.patch
17 URL: https://www.gnu.org/software/gettext/libtextstyle/manual/
18 BuildRequires: make >= 3.79.1
19 BuildRequires: ncurses-devel
20 %if %{with system_libs}
21 BuildRequires: glib2-devel >= 2.0
22 BuildRequires: libcroco-devel >= 0.6.1
23 BuildRequires: libxml2-devel >= 2.0
24 BuildRequires: sed >= 4.0
26 %{?with_system_libs:Requires: libcroco >= 0.6.1}
27 Conflicts: gettext-libs < 0.20.2-2
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This library provides an easy way to add styling to programs that
32 produce output to a console or terminal emulator window.
34 libtextstyle is for you if your application produces text that is more
35 readable when it is accompanied with styling information, such as
36 color, font attributes (weight, posture), or underlining.
38 %description -l pl.UTF-8
39 Ta biblioteka zapewnia łatwy sposób dodawania styli do programów
40 produkujących wyjście na konsoli lub w oknie emulatora terminala.
42 libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst,
43 który jest bardziej czytelny, jeśli jest wzbogacony o informacje o
44 stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub
48 Summary: Header files for libtextstyle library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtextstyle
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: ncurses-devel
53 %if %{with system_libs}
54 Requires: glib2-devel >= 2.0
55 Requires: libcroco-devel >= 0.6.1
56 Requires: libxml2-devel >= 2.0
58 Conflicts: gettext-devel < 0.20.2-2
61 Header files for libtextstyle library.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe biblioteki libtextstyle.
67 Summary: Static libtextstyle library
68 Summary(pl.UTF-8): Statyczna biblioteka libtextstyle
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
71 Conflicts: gettext-static < 0.20.2-2
74 Static libtextstyle library.
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libtextstyle.
84 %if %{with system_libs}
85 %{__sed} -i -e '/gl_LIBCROCO\|gl_LIBGLIB\|gl_LIBXML/s/(\[yes\])//' gnulib-m4/gnulib-comp.m4
91 --disable-silent-rules \
92 %{!?with_static_libs:--disable-static}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
103 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
111 %post devel -p /sbin/postshell
112 -/usr/sbin/fix-info-dir -c %{_infodir}
114 %postun devel -p /sbin/postshell
115 -/usr/sbin/fix-info-dir -c %{_infodir}
118 %defattr(644,root,root,755)
119 %doc AUTHORS NEWS README
120 %attr(755,root,root) %{_libdir}/libtextstyle.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libtextstyle.so.0
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libtextstyle.so
126 %{_libdir}/libtextstyle.la
127 %{_includedir}/textstyle.h
128 %{_includedir}/textstyle
129 %{_infodir}/libtextstyle.info*
131 %if %{with static_libs}
133 %defattr(644,root,root,755)
134 %{_libdir}/libtextstyle.a