]> git.pld-linux.org Git - packages/m4.git/blob - m4.spec
a170b415b20bf0282d7905db7d46c9a8770da2cc
[packages/m4.git] / m4.spec
1 #
2 # Conditional build
3 %bcond_with     tests   # perform "make check"
4 #
5 Summary:        GNU Macro Processor
6 Summary(de.UTF-8):      GNU-Makro-Prozessor
7 Summary(fr.UTF-8):      Processeur de macros de GNU
8 Summary(pl.UTF-8):      GNU procesor języka makrodefinicji
9 Summary(tr.UTF-8):      GNU Makroİşlemcisi
10 Name:           m4
11 Version:        1.4.17
12 Release:        1
13 Epoch:          3
14 License:        GPL v3+
15 Group:          Applications/Text
16 Source0:        http://ftp.gnu.org/gnu/m4/%{name}-%{version}.tar.xz
17 # Source0-md5:  12a3c829301a4fd6586a57d3fcf196dc
18 Patch0:         %{name}-info.patch
19 URL:            http://www.gnu.org/software/m4/
20 BuildRequires:  libsigsegv
21 BuildRequires:  tar >= 1:1.22
22 BuildRequires:  texinfo
23 BuildRequires:  xz
24 Requires(post,postun):  /sbin/ldconfig
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 A GNU implementation of the traditional UNIX macro processor. M4 is
29 useful for writing text files which can be logically parsed, and is
30 used by many programs as part of their build process. M4 has built-in
31 functions for including files, running shell commands, doing
32 arithmetic, etc. The autoconf program needs m4 for generating
33 configure scripts, but not for running configure scripts.
34
35 %description -l de.UTF-8
36 Dies ist die GNU-Makroverarbeitungssprache. Es ist zum Schreiben von
37 Textdateien geeignet, die logisch geparst werden können. Viele
38 Programme nutzen dies als Teil des Build-Vorgangs.
39
40 %description -l fr.UTF-8
41 Le langage de macro commande GNU. Il est utile pour constituer des
42 fichiers textes devant etre parcourues logiquement. De nombreux
43 programmes l'utilisent lors de leur processus de construction.
44
45 %description -l pl.UTF-8
46 W pakiecie znajduje się m4 - GNU procesor języka makrodefinicji.
47 Używany jest do tworzenia plików tekstowych, które mogą być logicznie
48 parsowane. Wiele programów korzysta z m4 podczas procesu kompilacji
49 kodu źródłowego.
50
51 %package devel
52 Summary:        Files to develop application with embedded m4 interpreter
53 Summary(pl.UTF-8):      Pliki do tworzenia aplikacji z wbudowanym interpreterem m4
54 Group:          Development/Libraries
55 Requires:       %{name} = %{epoch}:%{version}-%{release}
56
57 %description devel
58 Files to develop application with embedded m4 interpreter.
59
60 %description devel -l pl.UTF-8
61 Pliki do tworzenia aplikacji z wbudowanym interpreterem m4.
62
63 %package static
64 Summary:        Static m4 library
65 Summary(pl.UTF-8):      Statyczna biblioteka m4
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
68
69 %description static
70 Static m4 library.
71
72 %description static -l pl.UTF-8
73 Statyczna biblioteka m4.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78
79 %build
80 %configure \
81         PACKAGE=m4 \
82         %{!?debug:--without-dmalloc}
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %{?with_tests:%{__make} check}
93
94 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/postshell
100 -/usr/sbin/fix-info-dir -c %{_infodir}
101
102 %postun -p /sbin/postshell
103 -/usr/sbin/fix-info-dir -c %{_infodir}
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README THANKS TODO
108 %attr(755,root,root) %{_bindir}/m4
109 %{_infodir}/m4.info*
110 %{_mandir}/man1/m4.1*
This page took 0.057404 seconds and 2 git commands to generate.