]> git.pld-linux.org Git - packages/libtextstyle.git/blob - libtextstyle.spec
3a5e96d3167e9a151ddb0d004cea7f118be04196
[packages/libtextstyle.git] / libtextstyle.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        GNU libtextstyle - Text styling library
6 Summary(pl.UTF-8):      GNU libtextstyle - biblioteka do obsługi stylu tekstu
7 Name:           libtextstyle
8 Version:        0.20.5
9 Release:        1
10 License:        GPL v3+
11 Group:          Libraries
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)
21
22 %description
23 This library provides an easy way to add styling to programs that
24 produce output to a console or terminal emulator window.
25
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.
29
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.
33
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
37 podkreślenie.
38
39 %package devel
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
46
47 %description devel
48 Header files for libtextstyle library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki libtextstyle.
52
53 %package static
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
59
60 %description static
61 Static libtextstyle library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libtextstyle.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch1 -p1
70
71 %build
72 %configure \
73         --disable-rpath \
74         --disable-silent-rules \
75         %{!?with_static_libs:--disable-static}
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 # duplicates info
86 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libtextstyle
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %post   devel -p /sbin/postshell
95 -/usr/sbin/fix-info-dir -c %{_infodir}
96
97 %postun devel -p /sbin/postshell
98 -/usr/sbin/fix-info-dir -c %{_infodir}
99
100 %files
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
105
106 %files devel
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*
113
114 %if %{with static_libs}
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libtextstyle.a
118 %endif
This page took 0.090035 seconds and 3 git commands to generate.