3 %bcond_without static_libs # static library
5 Summary: GNU libtextstyle - Text styling library
6 Summary(pl.UTF-8): GNU libtextstyle - biblioteka do obsługi stylu tekstu
12 Source0: http://alpha.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
13 # Source0-md5: 30be56f2428ff2add624caf3a1700d3e
14 Patch0: %{name}-libdir.patch
15 Patch1: %{name}-info.patch
16 URL: https://www.gnu.org/software/gettext/libtextstyle/manual/
17 BuildRequires: make >= 3.79.1
18 BuildRequires: ncurses-devel
19 Conflicts: gettext-libs < 0.20.2-2
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This library provides an easy way to add styling to programs that
24 produce output to a console or terminal emulator window.
26 libtextstyle is for you if your application produces text that is more
27 readable when it is accompanied with styling information, such as
28 color, font attributes (weight, posture), or underlining.
30 %description -l pl.UTF-8
31 Ta biblioteka zapewnia łatwy sposób dodawania styli do programów
32 produkujących wyjście na konsoli lub w oknie emulatora terminala.
34 libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst,
35 który jest bardziej czytelny, jeśli jest wzbogacony o informacje o
36 stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub
40 Summary: Header files for libtextstyle library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtextstyle
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: ncurses-devel
45 Conflicts: gettext-devel < 0.20.2-2
48 Header files for libtextstyle library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libtextstyle.
54 Summary: Static libtextstyle library
55 Summary(pl.UTF-8): Statyczna biblioteka libtextstyle
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
58 Conflicts: gettext-static < 0.20.2-2
61 Static libtextstyle library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libtextstyle.
74 --disable-silent-rules \
75 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
94 %post devel -p /sbin/postshell
95 -/usr/sbin/fix-info-dir -c %{_infodir}
97 %postun devel -p /sbin/postshell
98 -/usr/sbin/fix-info-dir -c %{_infodir}
101 %defattr(644,root,root,755)
102 %doc AUTHORS NEWS README
103 %attr(755,root,root) %{_libdir}/libtextstyle.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libtextstyle.so.0
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libtextstyle.so
109 %{_libdir}/libtextstyle.la
110 %{_includedir}/textstyle.h
111 %{_includedir}/textstyle
112 %{_infodir}/libtextstyle.info*
114 %if %{with static_libs}
116 %defattr(644,root,root,755)
117 %{_libdir}/libtextstyle.a