]> git.pld-linux.org Git - packages/libtextstyle.git/blame - libtextstyle.spec
- use system glib2, libcroco, libxml2
[packages/libtextstyle.git] / libtextstyle.spec
CommitLineData
dcce3ed6
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
beb4bd2e 4%bcond_without system_libs # system libcroco, glib2, libxml2
dcce3ed6
JB
5#
6Summary: GNU libtextstyle - Text styling library
7Summary(pl.UTF-8): GNU libtextstyle - biblioteka do obsługi stylu tekstu
8Name: libtextstyle
9Version: 0.20.5
10Release: 1
11License: GPL v3+
12Group: Libraries
13Source0: http://alpha.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
14# Source0-md5: 30be56f2428ff2add624caf3a1700d3e
af3518ff 15Patch0: %{name}-libdir.patch
4ccff835 16Patch1: %{name}-info.patch
dcce3ed6
JB
17URL: https://www.gnu.org/software/gettext/libtextstyle/manual/
18BuildRequires: make >= 3.79.1
19BuildRequires: ncurses-devel
beb4bd2e
JB
20%if %{with system_libs}
21BuildRequires: glib2-devel >= 2.0
22BuildRequires: libcroco-devel >= 0.6.1
23BuildRequires: libxml2-devel >= 2.0
24BuildRequires: sed >= 4.0
25%endif
26%{?with_system_libs:Requires: libcroco >= 0.6.1}
9685ec34 27Conflicts: gettext-libs < 0.20.2-2
dcce3ed6
JB
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31This library provides an easy way to add styling to programs that
32produce output to a console or terminal emulator window.
33
34libtextstyle is for you if your application produces text that is more
35readable when it is accompanied with styling information, such as
36color, font attributes (weight, posture), or underlining.
37
38%description -l pl.UTF-8
39Ta biblioteka zapewnia łatwy sposób dodawania styli do programów
40produkujących wyjście na konsoli lub w oknie emulatora terminala.
41
42libtextstyle ma zastosowanie tam, gdzie aplikacja produkuje tekst,
43który jest bardziej czytelny, jeśli jest wzbogacony o informacje o
44stylu, takie jak kolor, atrybuty czcionek (grubość, nachylenie) lub
45podkreślenie.
46
47%package devel
48Summary: Header files for libtextstyle library
49Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtextstyle
50Group: Development/Libraries
51Requires: %{name} = %{version}-%{release}
52Requires: ncurses-devel
beb4bd2e
JB
53%if %{with system_libs}
54Requires: glib2-devel >= 2.0
55Requires: libcroco-devel >= 0.6.1
56Requires: libxml2-devel >= 2.0
57%endif
9685ec34 58Conflicts: gettext-devel < 0.20.2-2
dcce3ed6
JB
59
60%description devel
61Header files for libtextstyle library.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe biblioteki libtextstyle.
65
66%package static
67Summary: Static libtextstyle library
68Summary(pl.UTF-8): Statyczna biblioteka libtextstyle
69Group: Development/Libraries
70Requires: %{name}-devel = %{version}-%{release}
9685ec34 71Conflicts: gettext-static < 0.20.2-2
dcce3ed6
JB
72
73%description static
74Static libtextstyle library.
75
76%description static -l pl.UTF-8
77Statyczna biblioteka libtextstyle.
78
79%prep
80%setup -q
af3518ff 81%patch0 -p1
4ccff835 82%patch1 -p1
dcce3ed6 83
beb4bd2e
JB
84%if %{with system_libs}
85%{__sed} -i -e '/gl_LIBCROCO\|gl_LIBGLIB\|gl_LIBXML/s/(\[yes\])//' gnulib-m4/gnulib-comp.m4
86%endif
87
dcce3ed6
JB
88%build
89%configure \
90 --disable-rpath \
91 --disable-silent-rules \
92 %{!?with_static_libs:--disable-static}
93
af3518ff 94%{__make}
dcce3ed6
JB
95
96%install
97rm -rf $RPM_BUILD_ROOT
98
99%{__make} install \
100 DESTDIR=$RPM_BUILD_ROOT
101
102# duplicates info
103%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
104
105%clean
106rm -rf $RPM_BUILD_ROOT
107
108%post -p /sbin/ldconfig
109%postun -p /sbin/ldconfig
110
111%post devel -p /sbin/postshell
112-/usr/sbin/fix-info-dir -c %{_infodir}
113
114%postun devel -p /sbin/postshell
115-/usr/sbin/fix-info-dir -c %{_infodir}
116
117%files
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
122
123%files devel
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*
130
131%if %{with static_libs}
132%files static
133%defattr(644,root,root,755)
134%{_libdir}/libtextstyle.a
135%endif
This page took 0.122842 seconds and 4 git commands to generate.