]> git.pld-linux.org Git - packages/libtextstyle.git/blob - libtextstyle.spec
ca89c28a163fa92f25e36f860a7dcabde6d7dfe1
[packages/libtextstyle.git] / libtextstyle.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 %bcond_without  system_libs     # system libcroco, glib2, libxml2
5 #
6 Summary:        GNU libtextstyle - Text styling library
7 Summary(pl.UTF-8):      GNU libtextstyle - biblioteka do obsługi stylu tekstu
8 Name:           libtextstyle
9 Version:        0.20.5
10 Release:        1
11 License:        GPL v3+
12 Group:          Libraries
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
25 %endif
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)
29
30 %description
31 This library provides an easy way to add styling to programs that
32 produce output to a console or terminal emulator window.
33
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.
37
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.
41
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
45 podkreślenie.
46
47 %package devel
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
57 %endif
58 Conflicts:      gettext-devel < 0.20.2-2
59
60 %description devel
61 Header files for libtextstyle library.
62
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe biblioteki libtextstyle.
65
66 %package static
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
72
73 %description static
74 Static libtextstyle library.
75
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libtextstyle.
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83
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
88 %build
89 %configure \
90         --disable-rpath \
91         --disable-silent-rules \
92         %{!?with_static_libs:--disable-static}
93
94 %{__make}
95
96 %install
97 rm -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
106 rm -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.073215 seconds and 3 git commands to generate.