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